shishi_priv_read(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_priv_read β€” the manual page, bestie edition πŸ’–

okay so this is a page from the shishi manual (section 3, library functions, iykyk) and it's literally all about one lil function. let's get into it 🫢

✨ NAME ✨

shishi_priv_read β€” API function. that's it, that's the name, she's simple and she knows it πŸ’…

🌸 SYNOPSIS 🌸

#include <shishi.h>

int shishi_priv_read(Shishi * handle, FILE * fh, Shishi_asn1 * priv);

πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” your shishi handle, the one you got from shishi_init(). she's the main character, everything runs through her ✨
  • FILE * fh β€” a file handle that's open for reading. read mode only, bestie, don't get cute.
  • Shishi_asn1 * priv β€” the output variable, and it's getting a newly allocated PRIV dropped into it. fresh out the box πŸ’œ

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically: this function reads a DER encoded PRIV from a file, and then populates the variable you handed it. that's the whole vibe. read the thing, fill the thing. iconic behaviour honestly 😌

⭐ RETURN VALUE ⭐

returns SHISHI_OK iff it was successful. and yes we said iff, it's giving "if and only if" because we're precise in this house πŸ“šβœ¨

πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? don't just suffer in silence, bestie, report it πŸ’€

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 forth, share the love, just keep the receipts πŸ§ΎπŸ’–

🌈 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 a whole thing 🧚


mwah okay that's the page!! this was from shishi version 1.0.3, page shishi_priv_read(3) β€” stay DER-encoded, stay slaying πŸ’–πŸŽ€πŸ¦‹