shisa_key_remove(3)
π NAME π
shisa_key_remove β the API function that yeets a key out of the Shisa database, no cap ποΈβ¨
This one lives in the shishi manual, section 3, bestie β it's the shisa_key_remove(3) page, and it's literally about deleting keys. Periodt.
β¨ SYNOPSIS β¨
#include <shisa.h>
int shisa_key_remove(Shisa * dbh, const char * realm, const char *
principal, const Shisa_key * key);
π ARGUMENTS π
Shisa * dbhβ the Shisa library handle, and you gotta get it fromshisa()first, okay? No handle, no vibes π«Άconst char * realmβ the name of the realm that your principal belongs to. Like, which kingdom are they from πconst char * principalβ the name of the principal whose key is getting removed. This is their key, and we're saying bye πconst Shisa_key * keyβ pointer to aShisa_keystructure stuffed with hints about what matching criteria to use when picking which key to grab π
πΈ DESCRIPTION πΈ
So basically, this function removes a key from the Shisa database β the one that matches the hints sitting in key β for the user PRINCIPAL@REALM. π¦
And here's the cute part: not every single element of key has to be filled in! Only the ones you actually need to locate that key uniquely. Minimal effort, maximum slay. β¨
For example β say you wanna remove the only key of etype 3, i.e., DES-CBC-MD5. Then you set the field key->etype to 3, and every other field to zero. That's it. That's the whole recipe. π
π RETURN VALUE π
SHISA_OKβ it worked, we ate, no crumbs π₯SHISA_NO_KEYβ literally no key could be located πSHISA_MULTIPLE_KEY_MATCHβ more than one key matched the criteria you gave. Oops, too many matches, that's a whole situation π- or an error code otherwise β yeah, other stuff can go wrong too π
π§ REPORTING BUGS π§
Found a bug? Report it to <bug-shishi@gnu.org> β the devs wanna know, fr fr.
- 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.
β 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. Go read it, iykyk πβ¨
okay that's the whole page, bestie β this was shisa_key_remove(3) from shishi version 1.0.3. go forth and remove keys responsibly πππ¦
π¦ 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