shishi_der2asn1_apreq(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

πŸ’– NAME πŸ’–

shishi_der2asn1_apreq β€” bestie, this is an API function and it's about to decode some DER for you ✨

It lives in the shishi manual, so if you're the kind of girl who reads man 3 pages for fun (me, obviously πŸ’…), you're in the right place.


✨ SYNOPSIS ✨

okay so here's the vibe, literally the whole function signature, no cap:

#include <shishi.h>

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

three arguments, one return value, zero drama πŸŽ€


🫢 ARGUMENTS 🫢

  • Shishi * handle β€” the shishi handle, and yes bestie you gotta get it the proper way, as allocated by shishi_init(). no homemade handles, that's not the move πŸ™ˆ
  • const char * der β€” the input character array holding the DER encoding. it's giving "raw bytes, handle with care" πŸ’€
  • size_t derlen β€” the length of that input character array with the DER encoding. yeah you have to tell it how long the thing is, it's not psychic 😭

🌸 DESCRIPTION 🌸

So what does it even do? It decodes the DER encoding of AP-REQ and creates an ASN.1 structure. That's it, that's the whole assignment. DER goes in, ASN.1 comes out, main character energy from start to finish πŸ‘‘


⭐ RETURN VALUE ⭐

It returns the ASN.1 structure corresponding to the DER data. Like, you hand it the encoded situation and it hands you back the actual structure. iconic behaviour fr fr πŸ’œ


πŸ’€ REPORTING BUGS πŸ’€

Found a bug? Don't suffer in silence, bestie, tell the people:

not me begging you to actually file the bug instead of just complaining in the group chat 🫢

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. slay, very generous of them πŸ’–


🌈 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, go read the whole thing, it's worth it 🧚


k bye bestie, go decode something cute πŸ’…βœ¨ this was shishi version 1.0.3, page shishi_der2asn1_apreq(3), dated however old this page is (the manpage footer said so, and I'm just passing the message along πŸŽ€).