shishi_hostkeys_for_serverrealm(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_serverrealm(3) πŸ’–

okay bestie, welcome to the shishi manual pages, section 3 (that's the library-functions girlies, iykyk). this one is literally about grabbing a host key for a server in a realm. no cap. let's get into it 🫢


✨ NAME ✨

shishi_hostkeys_for_serverrealm β€” it's an API function, bestie. that's the whole vibe.


🌸 SYNOPSIS 🌸

#include <shishi.h>

Shishi_key * shishi_hostkeys_for_serverrealm(Shishi * handle, const char
* server, const char * realm);

like, you include the header, you call the function, you get a key back. iconic behavior honestly πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” the Shishi library handle, and you make it with shishi_init(). it's giving "your main character ticket into the library" πŸ’–
  • const char * server β€” the server name you wanna get a key for, periodt.
  • const char * realm β€” the realm of the server you're getting a key for. yes both. slay.

πŸ¦‹ DESCRIPTION πŸ¦‹

Get host key for server in realm. that's it, that's the function. lowkey simple, highkey useful 🌈


⭐ RETURN VALUE ⭐

Returns the key for specific server and realm β€” and where does it come from? it's read from the default host keys file (peep shishi_hostkeys_default_file() for that one, bestie πŸ‘€).

and if things go sideways? it returns NULL if no key could be found or an error encountered. so like, always check for NULL, don't be that girl who dereferences it anyway 😭


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? not me gatekeeping the bug report πŸ’€ send it to <bug-shishi@gnu.org>.


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. (translation: go off, just 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, the command

info shishi

should give you access to the complete manual. no skimming, it's all there πŸ“–βœ¨


and that's the whole page, bestie!! this lil legend lives in the shishi manual, version 1.0.3, and it's filed under shishi_hostkeys_for_serverrealm(3) β€” go get those host keys, you ate πŸ’…πŸ“πŸ«Ά