asn1_array2tree(3)
π 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* definitionsis notNULL. 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, checkerrorDescriptionfor more info, it'll tell you what's up π§ASN1_ARRAY_ERRORβ the array pointed to byarrayis wrong. it's giving "not the moment," bestie π
π COPYRIGHT π
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
- alpine 3.22: libtasn1-doc 4.21.0-r0 Β· LGPL-2.1-or-later
- alpine 3.23: libtasn1-doc 4.21.0-r0 Β· LGPL-2.1-or-later
- alpine 3.24: libtasn1-doc 4.21.0-r0 Β· LGPL-2.1-or-later
- arch rolling: libtasn1 4.21.0-1 Β· GPL-3.0-or-later AND LGPL-2.1-or-later AND GFDL-1.3-or-later
- fedora 43: libtasn1-devel 4.21.0-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: libtasn1-devel 4.21.0-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: libtasn1-devel 4.21.0-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: libtasn1-devel 4.21.0-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libtasn1-devel 4.21.0-160000.1.1 Β· GFDL-1.3-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libtasn1-devel 4.21.0-160000.1.1 Β· GFDL-1.3-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libtasn1-devel 4.21.0-160000.1.1 Β· GFDL-1.3-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libtasn1-devel 4.21.0-160000.1.1 Β· GFDL-1.3-or-later AND LGPL-2.1-or-later
- ubuntu resolute: libtasn1-6-dev 4.21.0-2
- ubuntu stonking: libtasn1-6-dev 4.21.0-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms