asn1_read_tag(3)
π asn1_read_tag β the libtasn1 glow-up π
okay bestie, so you're deep in libtasn1 land and you need to peek at the TAG and the CLASS of one lil' element hiding inside a structure?? say less. this is the function. it's giving "I know exactly what that element is" energy and honestly? obsessed. π¦
β¨ NAME β¨
asn1_read_tag β an API function, periodt. π
πΈ SYNOPSIS πΈ
#include <libtasn1.h>
int asn1_read_tag(asn1_node_const root, const char * name, int *
tagValue, int * classValue);
π ARGUMENTS π
asn1_node_const rootβ a pointer to a structure. your whole little world, basically. πconst char * nameβ the name of the element inside a structure. like calling your friend by name in the group chat, fr fr. π¬int * tagValueβ the variable that will contain the TAG value. it gets β¨filled inβ¨ for you.int * classValueβ the variable that will specify the TAG type. also getting filled in, we love a generous function. π«Ά
π DESCRIPTION π
so what does it actually do? it returns the TAG and the CLASS of one element inside a structure. that's the whole vibe check. π§
and the CLASS? it can be one of these constants, no cap:
ASN1_CLASS_APPLICATIONASN1_CLASS_UNIVERSALASN1_CLASS_PRIVATEASN1_CLASS_CONTEXT_SPECIFIC
those four. that's the whole roster. iconic lineup honestly. π
β RETURNS β
ASN1_SUCCESSβ if successful. we ate. π₯ASN1_ELEMENT_NOT_FOUNDβ if name is not a valid element. π not me passing a name that doesn't even existβ¦
π 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, that means you can share it, 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 tea. π this whole page is libtasn1 4.21.0 energy, asn1_read_tag(3), and it lives in the manual forever and ever. go read some tags, bestie β you've got this. 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