shishi_der2asn1_kdcreq(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_kdcreq β€” bestie, it's a section 3 manual page from the shishi crew ✨

okay so real talk, this page lives in section 3 of the shishi manual, and it's here to walk you through one (1) very specific little function. grab a strawberry πŸ“, we're doing this.


🌸 NAME 🌸

shishi_der2asn1_kdcreq β€” it's an API function, bestie. that's literally its whole job description and honestly? iconic.


✨ SYNOPSIS ✨

#include <shishi.h>

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

look at that. three args, one return, no drama. we love a low-maintenance signature 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” the shishi handle, and no you can't just make one up, it's gotta be allocated by shishi_init(). that's the rules, bestie.
  • const char * der β€” your input character array holding the DER encoding. it's const, so hands off, we're just reading πŸ’…
  • size_t derlen β€” the length of that input character array with the DER encoding in it. yes you have to tell it how long your bytes are. it's not psychic, it's a C library.

πŸ’– DESCRIPTION πŸ’–

so what does it actually DO? it decodes the DER encoding of an AS-REQ, a TGS-REQ or a KDC-REQ and creates an ASN.1 structure out of it.

that's it. that's the whole plot. bytes go in, shiny ASN.1 structure comes out. the way it just transforms them 😭


🌈 RETURN VALUE 🌈

it returns the ASN.1 structure that corresponds to your DER data. give it bytes, get a structure. slay.


πŸ™ˆ REPORTING BUGS πŸ™ˆ

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

they're nice, they'll help you out 🫢


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. so like, be free, just keep the receipts ✨


πŸ¦‹ 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 πŸ“–


ngl, that's the whole page. every flag, every arg, every byte, all present and accounted for πŸ’―

shishi version 1.0.3, page shishi_der2asn1_kdcreq(3) β€” and that's a wrap, bestie, go decode something pretty πŸŒΈπŸ’œπŸŽ€