shishi_keys_fo...cerealm_in_file(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

πŸ’– 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 with shishi_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 pass NULL and 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 Β© 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 πŸ’…βœ¨