shishi_hostkeys_for_localservice(3)
π shishi_hostkeys_for_localservice β bestie's guide to grabbing host keys π
okay so this is a page from the shishi manual (section 3, the library-call girlies β¨), and it's all about shishi_hostkeys_for_localservice. it's literally an API function, no cap. let's get into it π«Ά
πΈ SYNOPSIS πΈ
#include <shishi.h>
Shishi_key * shishi_hostkeys_for_localservice(Shishi * handle, const
char * service);
that's the whole vibe. two args, one key, periodt π
π ARGUMENTS π
Shishi * handleβ the Shishi library handle, which you get by creating it withshishi_init(). it's your main character, your anchor, your ride-or-die π¦const char * serviceβ the service you want to get a key for. like, which service bestie. spill. πΈ
β¨ DESCRIPTION β¨
okay so what does it do. it gets you the host key for a service on the current host in the default realm. that's it, that's the whole job. it's giving "errand girl but for keys" π
π RETURN VALUE π
so it hands you back the key for the server "SERVICE/HOSTNAME" β where HOSTNAME is literally the current system's hostname, iykyk β read from the default host keys file (peep shishi_hostkeys_default_file() for that one π).
and if no key could be found, or if an error got encountered? it returns NULL. sad girl hours π no key for you.
π REPORTING BUGS π
found a bug? don't be shy, tell the devs:
- report bugs 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/
they want to 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. so like, go off, but keep the receipts bestie π§
β 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. go read it, it's lowkey iconic πβ¨
and that's a wrap! this page is from shishi 1.0.3, for shishi_hostkeys_for_localservice(3) β stay slay, stay keyed in, mwah π ππΈ
π¦ 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