shisa_key_update(3)
π shisa_key_update β the glow-up page for your keys β¨
okay bestie, so this is a page from the shishi manual, section 3, and it's literally about shisa_key_update π β the function that gives an existing key in the database a little makeover. no cap.
πΈ SYNOPSIS πΈ
#include <shisa.h>
int shisa_key_update(Shisa * dbh, const char * realm, const char *
principal, const Shisa_key * oldkey, const Shisa_key * newkey);
that's it. that's the whole vibe. π¦
β¨ ARGUMENTS β¨
Shisa * dbhβ the Shisa library handle, and you gotta make it withshisa()first. no handle, no entry, periodt.const char * realmβ the name of the realm your principal lives in. π°const char * principalβ the name of the principal that needs its key updated. main character of this operation fr.const Shisa_key * oldkeyβ a pointer to aShisa_keystructure that gives the matching criteria for finding the key you wanna update. it's like the search filter, not the full story. πconst Shisa_key * newkeyβ a pointer to a completeShisa_keystructure, where all the fields get used for the new key. π note thatoldkeynormally has wayyy fewer fields filled in β like, embarrassingly fewer. π
π«Ά DESCRIPTION π«Ά
so what it does: it modifies data about a key stored in the database β a key that belongs to the principal you picked with principal and realm.
here's the two-step. first, oldkey is used to locate the key to update, exactly like shisa_keys_find() does it. then, the key it found gets modified to carry whatever info is stored in newkey. glow-up complete. π
the way that not all elements of oldkey need to be filled out β you only need sufficiently many of them to uniquely identify the key you're after. β¨ for example: if you wanna modify the info stored about a unique key of etype 3, i.e. DES-CBC-MD5, then set the field key->etype to 3, leaving all other fields as zero. iconic, minimal, effective. π
β RETURN VALUE β
SHISA_OKβ slay, it worked. βSHISA_NO_KEYβ couldn't locate any key. πSHISA_MULTIPLE_KEY_MATCHβ more than a single key matched your criteria, bestie. you gotta be more specific.- or, an error code otherwise. π
π REPORTING BUGS π
found a bug? 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/
π 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. fr fr, 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, this command:
info shishi
should give you access to the complete manual. iykyk πβ¨
and that's the whole page, bestie β this was shishi version 1.0.3, shisa_key_update(3). go update those keys, you absolute icon. ππ¦
π¦ 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