shishi_der2asn1_etype_info(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_etype_info ✨

okay bestie, pull up a chair πŸŽ€ this one's from the shishi manual, section 3 (that's the library-functions section, iykyk), and it's literally just a lil decoder function that turns DER bytes into an ASN.1 struct. no cap. it's giving "glorified translation service" and honestly? we love her for it πŸ’…


🌸 NAME 🌸

shishi_der2asn1_etype_info β€” an API function, periodt. that's it, that's the whole name, she's not hiding anything πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <shishi.h>

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

like, include the header, call the function, get a Shishi_asn1 back. simple as πŸ“


πŸ’œ ARGUMENTS πŸ’œ

  • Shishi * handle β€” the shishi handle, allocated by shishi_init(). bestie you gotta have a handle first, this function does not spawn one for you 😭
  • const char * der β€” input character array with the DER encoding. yes, it's a char * even though it's binary data, that's just how it is, don't @ me πŸ™ˆ
  • size_t derlen β€” length of input character array with DER encoding. tell her how big the blob is, she cannot read minds πŸ’€

🌈 DESCRIPTION 🌈

Decode DER encoding of ETYPE-INFO and create an ASN.1 structure.

that's the whole vibe. you hand her the DER bytes, she hands you back the ASN.1 glow-up ✨ it's giving glow-up montage, it's giving makeover scene, it's giving decoding πŸ‘‘


⭐ RETURN VALUE ⭐

Returns ASN.1 structure corresponding to DER data. so like, the structure, matching your data. that's the return, that's the whole thing, go off πŸ‘‘


😭 REPORTING BUGS 😭

found a bug? spill the tea, not to me, to the maintainers:

Report bugs to <bug-shishi@gnu.org>.

fr fr, they wanna hear it 🫢


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.

like, go ahead, copy it, remix it, distribute it, just keep the receipts (the copyright notice and this notice) attached πŸ’– iconic behaviour honestly.


🧚 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. the whole lore, the deep cuts, the extended universe 🌌


lowkey important: if that info shishi command doesn't work, your info/shishi install is not "properly installed at your site" and that's a whole other side quest bestie 😭

and that's the page!! this was shishi version 1.0.3, from the shishi_der2asn1_etype_info(3) manual page, and if you made it this far you're a real one πŸŽ€ mwah, go decode something cute πŸ’–βœ¨πŸ¦‹