shishi_priv_encprivpart_der_set(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_encprivpart_der_set β€” bestie, let's talk ✨

okay so real talk, this is a page from the shishi manual (section 3, the library-call girlies 🫢), and it's literally all about one lil function. no cap. let's get into it.


✨ NAME ✨

shishi_priv_encprivpart_der_set β€” it's an API function, bestie. that's the whole vibe. πŸ’…


🌈 SYNOPSIS 🌈

#include <shishi.h>

int shishi_priv_encprivpart_der_set(Shishi_priv * priv, char * der,
       size_t derlen);

like... look at her. three things go in, one int comes out. iconic behavior honestly.


πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi_priv * priv β€” the priv you got from shishi_priv(). like, you gotta have it already, don't just show up with nothing. πŸ¦‹
  • char * der β€” an input array holding a DER encoded ENCPRIVPART. that's the goods. that's what's being handed over. ✨
  • size_t derlen β€” the length of that input array with the DER encoded ENCPRIVPART in it. yes, you have to tell her how long it is. she's not a mind reader, bestie. πŸ’œ

πŸ’… DESCRIPTION πŸ’…

so here's the tea: this function DER decodes ENCPRIVPART and then sets it into the PRIV exchange. that's it. that's the whole job. she decodes, she sets, she slays. πŸ‘‘

but listen β€” if the decoding fails, the ENCPRIVPART in the PRIV exchange remains. meaning nothing gets swapped out, nothing gets clobbered. it just... stays. the old one is still there. so don't panic, but also don't assume your new thing landed. πŸ™ˆ


⭐ RETURN VALUE ⭐

returns SHISHI_OK. that's it. that's the return value. periodt. πŸ’–


😭 REPORTING BUGS 😭

found a bug? spill it to <bug-shishi@gnu.org>. fr fr, they wanna know.


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. 🫢)


🌸 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. iykyk. 🧚


and that's the whole page, babe. this was shishi 1.0.3, the shishi_priv_encprivpart_der_set(3) manual page β€” thanks for coming to my TED talk, mwah πŸ’œβœ¨πŸŽ€