shishi_der2asn1(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_der2asn1 ✨

okay bestie so this is a page from the shishi manual β€” section 3, library calls, the good stuff πŸ’… β€” and it's literally just one tiny little function that does one tiny little glow-up. buckle up, it's a short one πŸŽ€


🌸 NAME 🌸

shishi_der2asn1 β€” the API function that turns your raw DER bytes into a whole ASN.1 situation πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <shishi.h>

Shishi_asn1 shishi_der2asn1(Shishi * handle, const char * der, size_t
derlen);

πŸ’œ ARGUMENTS πŸ’œ

  • Shishi * handle β€” your shishi handle, bestie. the one you got from shishi_init(). no handle, no party πŸ™ˆ
  • const char * der β€” the input character array holding the DER encoding. this is the raw material, the before-picture πŸ“Έ
  • size_t derlen β€” the length of that input character array with the DER encoding. like, how many bytes are we talking. you gotta tell her 🫢

🌈 DESCRIPTION 🌈

okay so the whole vibe here: you hand her arbitrary DER data from a packet, and she converts it into an ASN.1 type. that's it. that's the function. she takes the chaotic little byte blob and gives it structure, main character energy fr fr ✨


⭐ RETURN VALUE ⭐

she returns a newly allocated ASN.1 thing corresponding to your DER data πŸ’–

and if it doesn't work out? she returns NULL. on failure. that's the whole story 😭


πŸ’€ REPORTING BUGS πŸ’€

found a bug? not the vibe. report 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. (iconic of them honestly, no notes 🫢)


🧚 SEE ALSO 🧚

the full documentation for shishi is maintained as a Texinfo manual β€” yes, a whole manual, she's thorough like that πŸ’… if the info and shishi programs are properly installed at your site, this command

info shishi

should give you access to the complete manual. iykyk πŸ“–βœ¨


and that's the page, bestie!! this one's from shishi version 1.0.3, filed under shishi_der2asn1(3) β€” mwah, go convert some DER, slay πŸŽ€πŸ’–πŸŒˆ