asn1_find_structure_from_oid(3)
π asn1_find_structure_from_oid β the libtasn1 page, bestie edition π
okay so we're in the libtasn1 manpage family, and this one's about asn1_find_structure_from_oid(3). it's an API function, it's cute, it's a little detective π΅οΈβοΈ and it's gonna find a structure for you. let's go.
β¨ NAME β¨
asn1_find_structure_from_oid β API function
like. that's the whole name. no notes. π
πΈ SYNOPSIS πΈ
#include <libtasn1.h>
const char * asn1_find_structure_from_oid(asn1_node_const definitions,
const char * oidValue);
so you pull in <libtasn1.h> and then boom, you got a function that takes two things and hands you back a const char *. iconic signature, honestly. π
π¦ ARGUMENTS π¦
asn1_node_const definitionsβ your ASN1 definitions. that's the whole vibe of this one. it's aconstnode, so we're not messing with it, we're just reading. respect. πconst char * oidValueβ the value of the OID you wanna search for, like for example"1.2.3.4". yes literally that string. that's the example. she's simple, she's effective. πΈ
π₯ DESCRIPTION π₯
so the mission here is: search the structure that is defined just after an OID definition. that's it. that's the whole job.
it's giving "look up the OID, then peek at whatever's sitting right behind it." no cap. β¨
π RETURNS π
- it gives you
NULLwhenoidValueis not found. π (sad girl hours, the search came up empty) - otherwise? it hands you the pointer to a constant string that contains the element name defined just after the OID. π slay.
so like, NULL = not found, and anything else = the element name, as a constant string, and it's the one defined just after the OID. periodt.
π 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.
like, free to copy, free to share, just keep the copyright notice and this notice with it. bestie behaviour fr fr. π«Ά
π 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/
so like, either run info libtasn1 and you're set, or grab the manual from that URL. two paths, same destination, main character energy. β
π reminder bestie: NULL means it wasn't found. don't go dereferencing that. i'm literally begging. π«Ά
and that's the page!! this was libtasn1 version 4.21.0, asn1_find_structure_from_oid(3) β go find those structures, queen. π§ββοΈππ
π¦ 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