asn1_der_decoding_element(3)
π asn1_der_decoding_element(3) π
okay bestie, welcome to the libtasn1 corner of the manual pages π this one's called asn1_der_decoding_element, and yes it's an API function, no cap.
β¨ NAME β¨
asn1_der_decoding_element β it's an API function, that's the whole vibe π
πΈ SYNOPSIS πΈ
#include <libtasn1.h>
int asn1_der_decoding_element(asn1_node * structure, const char *
elementName, const void * ider, int len, char * errorDescription);
π¦ ARGUMENTS π¦
asn1_node * structureβ a pointer to an ASN1 structure, like the lil container we're working with π«Άconst char * elementNameβ the name of the element you wanna fill, literally just the label bestieconst void * iderβ a vector holding the DER encoding of the whole structure. the entire thing, not just a piece β¨int lenβ how many bytes are in*der:der[0]..der[len-1], count them carefully πchar * errorDescriptionβ a null-terminated string that carries the details when something goes wrong π
π DESCRIPTION π
So here's the tea: this fills the element named ELEMENTNAME with the values from a DER encoding string. π
The structure has to have just been created β using the function asn1_create_element(). And the DER vector has to contain the encoding string of the whole STRUCTURE. Like, the entire thing. No crumbs. π
β οΈ Heads up bestie: if an error pops off during the decoding procedure, the*STRUCTUREgets deleted and set equal toNULL. Gone. Poof. π
π¨ ALSO, super important: this function is deprecated and may just be an alias toasn1_der_decodingin future versions. Useasn1_der_decoding()instead, fr fr. π
π RETURNS π
ASN1_SUCCESSβ DER encoding is OK, we ate πASN1_ELEMENT_NOT_FOUNDβ ELEMENT isNULLorelementName == NULL, oops πASN1_TAG_ERRORorASN1_DER_ERRORβ the DER encoding doesn't match the structurestructure, and heads up,*ELEMENTgets deleted π
π 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, they're being generous, iconic behaviour)
π 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 lil rewrite was brought to you by libtasn1 version 4.21.0, the asn1_der_decoding_element(3) era β go forth and decode responsibly, 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