shishi_keys_fo...cerealm_in_file(3)
π NAME π
shishi_keys_for_localservicerealm_in_file β it's an API function bestie, and it's here to grab you a key β¨
πΈ SYNOPSIS πΈ
#include <shishi.h>
Shishi_key * shishi_keys_for_localservicerealm_in_file(Shishi * handle,
const char * filename, const char * service, const char * realm);
π ARGUMENTS π
Shishi * handleβ the Shishi library handle, and you gotta make it withshishi_init()first, no skipping that step babe π«Άconst char * filenameβ the file we're reading keys from, periodt.const char * serviceβ the service you want the key for, like, the whole point.const char * realmβ the realm of the server you want the key for, OR you can passNULLand it'll just use the default realm π
β¨ DESCRIPTION β¨
Okay so, literally: get the key for the specified service and realm, reading it out of filename. That's the vibe. That's the whole thing. π
π RETURN VALUE π
It hands you back the key for the server "SERVICE/HOSTNAME@REALM" β and yes, HOSTNAME is your current system's actual hostname, not a made-up one β read from the default host keys file (peep shishi_hostkeys_default_file() for that one).
And if there's no key to be found, or something errored out? You get NULL. Not a vibe, but that's the deal π
π REPORTING BUGS π
Found a bug? Spill it to <bug-shishi@gnu.org>.
GNU Shishi's home page is at http://www.gnu.org/software/shishi/ and general help using GNU software lives at http://www.gnu.org/gethelp/. Go look, 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. (Slay, honestly β that's a generous license π)
π 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. Iconic. Go read it π§
Okay that's the whole page bestie, no cap. This was shishi_keys_fo...cerealm_in_file(3) from shishi 1.0.3, and yeah the version and date live down here at the bottom like always. Bye bye, stay keyed π
β¨
π¦ 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