asn1_expand_any_defined_by(3)
π NAME π
asn1_expand_any_defined_by β bestie, this is an API function, and it's about to expand your ANYs, no cap β¨
π¦ SYNOPSIS π¦
#include <libtasn1.h>
int asn1_expand_any_defined_by(asn1_node_const definitions, asn1_node *
element);
πΈ ARGUMENTS πΈ
asn1_node_const definitionsβ the ASN1 definitions, like the blueprint of the whole vibe πasn1_node * elementβ a pointer to an ASN1 structure, aka the thing we're about to glow up π
β¨ DESCRIPTION β¨
Okay so picture this: you've got a structure that came out of a DER decoding process (that's the asn1_der_decoding function, iykyk), and inside it there are "ANY DEFINED BY" elements just sitting there like unopened presents. This function expands every single one of them. Not some. Every. π
The catch? The element ANY must be defined by an OBJECT IDENTIFIER β that's the rule, periodt.
And the type it uses to expand that element ANY is the first one following the definition of the actual value of the OBJECT IDENTIFIER. So it's not guessing, it's reading the room and picking the next thing in line. Slay. π₯
π RETURNS π
ASN1_SUCCESSβ substitution OK, we ate, no crumbs πASN1_ERROR_TYPE_ANYβ some"ANY DEFINED BY"element could not be expanded because there was a problem in the OBJECT ID -> TYPE association π like the link-up just didn't happen- other error codes β depending on DER decoding, because sometimes the DER decoding itself is the one acting up π
π 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. (yes bestie, go forth and share, just keep the receipts π«Ά)
π§ SEE ALSO π§
The full documentation for libtasn1 is maintained as a Texinfo manual. If the info and libtasn1 programs are properly installed at your site, the command
info libtasn1
should give you access to the complete manual. As an alternative you may obtain the manual from:
https://www.gnu.org/software/libtasn1/manual/
and that's the whole page, bestie π this was libtasn1 version 4.21.0, from the asn1_expand_any_defined_by(3) era β catch you in the next manpage, mwah πβ¨
π¦ 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