shishi_authorize_strcmp(3)
π shishi_authorize_strcmp(3) π
okay bestie, so this is a page from the shishi manual β the GNU one, the Kerberos-adjacent cutie β and today we're doing shishi_authorize_strcmp, which is an API function. yes, an API function. nerd shit. we love it here. π
β¨ NAME β¨
shishi_authorize_strcmp β the API function that goes "are these two strings literally the same" and calls it authorization. simple. iconic. no cap.
β¨ SYNOPSIS β¨
#include <shishi.h>
int shishi_authorize_strcmp(Shishi * handle, const char * principal,
const char * authzname);
β¨ ARGUMENTS β¨
Shishi * handleβ the shishi handle, and it HAS to be one that got allocated byshishi_init(). like, that's the whole vibe. don't be passing random garbage in here fr fr.const char * principalβ a string holding the principal name you want. the desired one. the main character principal. πconst char * authznameβ the authorization name. yes. that's the name. that's the one we're checking. π¦
β¨ DESCRIPTION β¨
so what this does is authorize authzname against the desired principal, according to "basic" authentication β which, lowkey, just means testing for identical strings. that's it. that's the whole thing. string equals string. if they match, congrats, you're authorized. if not, you're not. periodt π
it's giving "I have one job and I do it perfectly." not every function needs to be a whole dramatic saga, okay?
β¨ RETURN VALUE β¨
1β returned ifauthznameis authorized for services by the encrypted principal π0β returned otherwise. (yes, that means not authorized. sorry babe. π)
β¨ REPORTING BUGS β¨
found a bug? do NOT just suffer in silence, bestie, that's not the move. report it to <bug-shishi@gnu.org>.
also here's the lore if you need it:
- 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. so like, go off, just keep the receipts. π«Ά
β¨ SEE ALSO β¨
the FULL documentation for shishi lives in a Texinfo manual (yes, a whole Texinfo manual, the way that it's maintained). if the info and shishi programs are properly installed at your site, this command:
info shishi
should give you access to the complete manual. go read it. it's right there. β¨
okay that's the page!! slay π this was shishi version 1.0.3, from the shishi source, and it's the shishi_authorize_strcmp(3) page β thanks for coming to my ted talk, ily, drink some water πΈπ§π
π¦ where this page comes from
- debian bookworm: shishi-doc 1.0.3-1 Β· GPL-3.0-or-later
- debian trixie: shishi-doc 1.0.3-5 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: shishi-doc 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: shishi-doc 1.0.3-5
- ubuntu resolute: shishi-doc 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: shishi-doc 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