asn1_array2tree(3)

πŸ“¦
version 4.21.0 Β· 5 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu resolute, ubuntu stonking

πŸ’– asn1_array2tree β€” the libtasn1 glow-up ✨

okay bestie, so this is the asn1_array2tree(3) page from libtasn1, and honestly? it's giving "small function, big main character energy." let's get into it πŸ’…


🌸 NAME 🌸

asn1_array2tree β€” an API function, periodt. that's the whole name, no notes πŸŽ€


✨ SYNOPSIS ✨

#include <libtasn1.h>

int asn1_array2tree(const asn1_static_node * array, asn1_node *
definitions, char * errorDescription);

like… she's short, she's sweet, she takes three args. iconic behavior fr fr πŸ¦‹


🫢 ARGUMENTS 🫢

  • const asn1_static_node * array β€” bestie this is the array holding all your ASN.1 declarations. it's the source of truth, the moment, the blueprint πŸ’œ
  • asn1_node * definitions β€” this is where she returns the pointer to the structure that got created out of that array's ASN.1 declarations. it's the glow-up output, lowkey πŸ‘‘
  • char * errorDescription β€” if something goes sideways, this is where the error description comes back to you. your emotional support string 😭

🌈 DESCRIPTION 🌈

so what she does is: she creates the structures you need to actually manage your ASN.1 definitions. that's the whole vibe ✨

and heads up β€” array is a vector that was created by asn1_parser2array(). so if your array didn't come from there, we're not saying it's a problem, we're just saying that's the lore πŸ“–


πŸ’€ RETURNS πŸ’€

here's the vibe check on what she hands back to you:

  • ASN1_SUCCESS β€” slay! the structure was created correctly. ate and left no crumbs πŸ”₯
  • ASN1_ELEMENT_NOT_EMPTY β€” this happens if * definitions is not NULL. she wanted a blank canvas and you handed her a painted one πŸ™ˆ
  • ASN1_IDENTIFIER_NOT_FOUND β€” there's an identifier in the file that isn't defined. no cap, check errorDescription for more info, it'll tell you what's up 🧚
  • ASN1_ARRAY_ERROR β€” the array pointed to by array is wrong. it's giving "not the moment," bestie πŸ’€

Copyright Β© 2006-2025 Free Software Foundation, Inc..

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.

(translation: you can copy and share her, just keep the receipts. respect the queen πŸ«‘πŸ’–)


🌟 SEE ALSO 🌟

the full documentation for libtasn1 is maintained as a Texinfo manual β€” like, the whole encyclopedia, not just this one page πŸ“š

if the info and libtasn1 programs are properly installed at your site, this command:

info libtasn1

should give you access to the complete manual. obsessed. πŸŽ€

as an alternative, you may also obtain the manual from:

https://www.gnu.org/software/libtasn1/manual/

and that's the page!! πŸ’… this was libtasn1 version 4.21.0, page asn1_array2tree(3), and yes she's still serving. go build something cute with your ASN.1 trees bestie, ily, bye πŸ¦‹βœ¨πŸ’œ

πŸ“¦ where this page comes from