shishi_hostkeys_for_localservice(3)

πŸ“¦
version 1.0.3 Β· 2 versions
  • 1.0.3 Β· debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.0.2 Β· ubuntu jammy
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 with shishi_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:

they want to hear from you, fr fr πŸ™ˆ


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 πŸ’…πŸ’–πŸŒΈ