shishi_encapreppart_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_encapreppart_read β€” the shishi manual, page 3 πŸ’–

okay bestie, pull up a chair because we're reading a manual page from shishi (that's the shishi_encapreppart_read(3) page, section 3, library functions, iykyk) and honestly? it's giving "small function, big feelings." ✨


🌸 NAME 🌸

shishi_encapreppart_read β€” it's an API function, no cap, that's literally the whole job description.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <shishi.h>

int shishi_encapreppart_read(Shishi * handle, FILE * fh, Shishi_asn1 *
       encapreppart);

so you gotta #include <shishi.h> first, that's non-negotiable, that's the vibe check at the door πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” the shishi handle, and bestie you do NOT just make this up yourself, it's the one allocated by shishi_init(). use the real one. πŸ‘‘
  • FILE * fh β€” a file handle that's open for reading. reading!! not writing, not appending, reading. πŸ“
  • Shishi_asn1 * encapreppart β€” an output variable that receives a newly allocated EncAPRepPart. so it hands you a fresh one, main character energy, freshly allocated, periodt. πŸ’–

✨ DESCRIPTION ✨

Read DER encoded EncAPRepPart from file and populate given variable.

that's it. that's the whole thing. you give it a file, it reads the DER-encoded EncAPRepPart out of it, and it populates the variable you handed over. literally so simple and yet so iconic. 🌈


πŸ”₯ RETURN VALUE πŸ”₯

Returns SHISHI_OK iff successful. (and if it's not successful? then it's not returning SHISHI_OK, and you should probably pay attention to that, bestie 😭)


🫢 REPORTING BUGS 🫢

found a bug? not me gatekeeping the bug reports, go tell the people:


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: slay, share it, 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, the command

info shishi

should give you access to the complete manual.

like, that's the whole manual. the entire thing. one command away. obsessed. 🧚


lowkey a reminder: this page is from the shishi manual, version 1.0.3, and yes we're saying goodbye from the shishi_encapreppart_read(3) corner of the internet. bye bestie, go read some DER πŸ’…πŸŒΈπŸ’–