shisa_keys_find(3)
π shisa_keys_find β the manual page, but make it make sense π
okay bestie, so this is shisa_keys_find(3) β a lil function from the shishi library, and honestly? she's giving key-hunting main character energy. π If you've ever needed to go digging through a principal's keys and pull out only the ones that match your vibe, this is literally the function for you. no cap.
β¨ NAME β¨
shisa_keys_find β it's an API function, periodt. π
πΈ SYNOPSIS πΈ
#include <shisa.h>
int shisa_keys_find(Shisa * dbh, const char * realm, const char *
principal, const Shisa_key * hint, Shisa_key *** keys, size_t * nkeys);
yes bestie, that's a lot of asterisks. don't panic. π«Ά
π¦ ARGUMENTS π¦
Shisa * dbhβ your Shisa library handle, the one you got from callingshisa(). she's the whole vibe, you need her. β¨const char * realmβ the name of the realm the principal belongs to. like, which kingdom are we in, yk? πconst char * principalβ the name of the principal whose keys we're examining. this is who we're snooping on (lovingly). πconst Shisa_key * hintβ pointer to aShisa_keystructure stuffed with hints about what matching criteria the relevant keys should have. and if you passNULL? she matches all keys. all of them. every single one. πShisa_key *** keysβ this is where she hands you back a pointer to a newly allocated array ofShisa_keystructures. fresh out the oven. π₯size_t * nkeysβ pointer to an integer that gets updated with the number of allocatedShisa_keystructures sitting in*keys. so you know how many you got. π
π§ DESCRIPTION π§
okay so here's the tea. β
She iterates through the whole set of keys belonging to PRINCIPAL@REALM β selected by principal and realm β and then she extracts any keys that match the criteria in hint. it's giving "shopping for exactly the keys I want" energy. ποΈ
and the best part? not all elements of hint need to be filled in. set only the fields you're interested in, bestie, that's it. for example β and this is iconic β if you want to extract all keys of etype 3, i.e., DES-CBC-MD5, then you set the field key->etype to 3, and all other fields to zero. boom. done. slay. π
β¨
π RETURN VALUE π
Returns SHISA_OK if successful, or an error code. that's it. that's the whole thing. either she ate or she didn't. π
π REPORTING BUGS π
found a bug? don't be shy, report it to <bug-shishi@gnu.org>. π«Ά
GNU Shishi home page: http://www.gnu.org/software/shishi/
General help using GNU software: http://www.gnu.org/gethelp/
ngl, they wanna hear from you. fr fr. πΈ
π COPYRIGHT π
Copyright Β© 2002-2022 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.
(translation: share her, remix her, just keep the receipts. β¨)
β SEE ALSO β
The full documentation for shishi is maintained as a Texinfo manual. If the info and shishi programs are properly installed at your site, the command
info shishi
should give you access to the complete manual. iykyk. π
lowkey reminder bestie: that Shisa_key *** keys is a newly allocated array, so don't just walk away from it. she's yours now. π
okay that's the whole page, mwah π this was shishi version 1.0.3, page shisa_keys_find(3) β go forth and find those keys, bestie. you're gonna eat. πππ
π¦ where this page comes from
- debian bookworm: libshisa-dev 1.0.3-1+b1 Β· GPL-3.0-or-later
- debian trixie: libshisa-dev 1.0.3-5+b1 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: libshisa-dev 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: libshisa-dev 1.0.3-5
- ubuntu resolute: libshisa-dev 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: libshisa-dev 1.0.3-7 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms