shishi_safe_safe_der(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_safe_safe_der πŸ’–

okay bestie, welcome to the shishi section 3 manual, page shishi_safe_safe_der(3) β€” yes that's a lot of "safe"s, we don't question the naming gods, we just vibe 🫢


✨ NAME ✨

shishi_safe_safe_der β€” an API function, and she's here to turn your SAFE into DER πŸ’…


✨ SYNOPSIS ✨

#include <shishi.h>

int shishi_safe_safe_der(Shishi_safe * safe, char ** out, size_t *
outlen);

✨ ARGUMENTS ✨

  • Shishi_safe * safe β€” the safe, bestie. as in, the one you already got from shishi_safe(). don't come in here with a random pointer, that's not the vibe πŸŽ€
  • char ** out β€” output array, and it's holding the freshly allocated DER encoding of the SAFE. newly allocated. brand new. main character πŸ¦‹
  • size_t * outlen β€” the length of that output array with the DER encoding of SAFE. so you know how big your little guy is πŸ’œ

✨ DESCRIPTION ✨

so basically she DER encodes the SAFE structure. that's it, that's the job 🌸

ngl, the usual flow is you call shishi_safe_build() first to build the SAFE structure, then you come here. like, build first, encode second, that's the order, periodt.

⚠️ important, and I mean it: out is allocated by this function, and it is the responsibility of the caller to deallocate it. that means YOU. you free it. nobody else is gonna free it for you. not me, not the library, not the universe. free your own out, queen πŸ‘‘

✨ RETURN VALUE ✨

Returns SHISHI_OK iff successful. yes, "iff". that's math speak for "if and only if". slay πŸ’…


✨ REPORTING BUGS ✨

found a bug? tell the people, not me 😭 report bugs to <bug-shishi@gnu.org>.

GNU Shishi home page: http://www.gnu.org/software/shishi/

General help using GNU software: http://www.gnu.org/gethelp/


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. we love a permissive license, fr fr 🌈


✨ 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. go read it, it's giving ✨educated✨


okay that's the whole page, you ate it up πŸ’– this was shishi_safe_safe_der(3) from shishi 1.0.3, and if you need me I'll be right here, being obsessed with DER encoding πŸŽ€πŸ’…πŸ¦‹