shishi_der2asn1_asrep(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_asrep ✨

okay bestie, gather round, because we're diving into a lil corner of the shishi manual β€” yes, that shishi, the GNU one, and this particular page is the one for shishi_der2asn1_asrep(3). it's giving "niche but essential" and honestly? we love that for it. 🫢


🌸 NAME 🌸

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


πŸŽ€ SYNOPSIS πŸŽ€

first things first, you gotta pull in the header, no cap:

#include <shishi.h>

and here's the actual function signature, copy it exactly okay, don't freestyle:

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

πŸ¦‹ ARGUMENTS πŸ¦‹

three lil guys walk into a function:

  • Shishi * handle β€” this is your shishi handle, the one you get handed to you when you call shishi_init(). it's like your VIP pass to the whole library, fr fr.
  • const char * der β€” an input character array holding the DER encoding. that's the raw bytes you're feeding in, bestie.
  • size_t derlen β€” the length of that input character array with the DER encoding. gotta tell it how big your lil byte blob is, otherwise how would it know?? 😭

πŸ’– DESCRIPTION πŸ’–

so what does this actually do? it takes the DER encoding of an AS-REP and decodes it, creating an ASN.1 structure out of it. that's it, that's the whole job. decode β†’ structure. iconic behaviour honestly. ✨


⭐ RETURN VALUE ⭐

it hands you back an ASN.1 structure that corresponds to your DER data. that's the treasure at the end of the rainbow. 🌈


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? don't be shy, tell the devs! report bugs to <bug-shishi@gnu.org>. πŸ“§

also here's the lore:


Copyright Β© 2002-2022 Simon Josefsson.

and the legal tea, word for word: 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 off, but keep the receipts. πŸ§ΎπŸ’œ


πŸ”₯ SEE ALSO πŸ”₯

the full documentation for shishi is maintained as a Texinfo manual β€” the whole encyclopedia, not just this page. if the info and shishi programs are properly installed at your site, then this command:

info shishi

should give you access to the complete manual. yw bestie, go read it. πŸ“–βœ¨


lowkey reminder: this whole page is from the shishi manual, version 1.0.3, page shishi_der2asn1_asrep(3) β€” that's the source, the version, and the page name all in one lil sign-off. mwah. πŸ’‹ πŸŽ€