shishi_asn1_to_der_field(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_asn1_to_der_field(3) πŸ’–

okay bestie, welcome to the shishi manual, section 3, and today's main character is shishi_asn1_to_der_field. she's from shishi version 1.0.3 and honestly? she's a whole vibe. let's get into it πŸ¦‹


✨ NAME ✨

shishi_asn1_to_der_field β€” it's an API function, babes. that's the whole job description. πŸ’…


🌸 SYNOPSIS 🌸

#include <shishi.h>

int shishi_asn1_to_der_field(Shishi * handle, Shishi_asn1 node, const
char * field, char ** der, size_t * len);

look at her. five parameters. no notes. iconic. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” the shishi handle, and you gotta get it the legit way: allocated by shishi_init(). no bootleg handles around here bestie πŸ’€
  • Shishi_asn1 node β€” the ASN.1 data that has the field you wanna extract. she's the container, the moment, the source of truth 🫢
  • const char * field β€” the name of the field inside node that you're pulling out. name it, claim it, extract it ✨
  • char ** der β€” output array that holds the DER encoding of the field in node. freshly handed to you, bestie πŸ’–
  • size_t * len β€” output variable with the length of the der output array. so you know exactly how much slay you're working with πŸ“

🌈 DESCRIPTION 🌈

Extract a newly allocated DER representation of the specified ASN.1 field. that's it, that's the whole plot. she takes your field and hands you back a fresh DER blob. the way that she allocates it for you… obsessed 😭


πŸ’œ RETURN VALUE πŸ’œ

  • Returns SHISHI_OK if everything went off without a hitch. we love a success story ⭐
  • Returns SHISHI_ASN1_ERROR if the DER encoding fails. and ngl, the most common reason for that is that the ASN.1 is missing required values. like girl, she can't encode what you didn't give her πŸ™ˆ

πŸ”₯ REPORTING BUGS πŸ”₯

found a bug? not the cute kind? report it to <bug-shishi@gnu.org>. πŸ’Œ

fr fr, they wanna hear from you 🫢


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.

periodt. πŸ’…


🧚 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 πŸ“–βœ¨


and that's the tea, bestie πŸ“ this was shishi_asn1_to_der_field(3) from the shishi manual, version 1.0.3, dated on that page as version 1.0.3 with the same section 3 footer energy. go forth and extract your DER fields, you absolute legend πŸŒΈπŸ’–πŸ¦‹