asn1_find_node(3)

πŸ“¦
version 4.21.0 Β· 5 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu resolute, ubuntu stonking

✨ NAME ✨

asn1_find_node β€” bestie, it's an API function πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <libtasn1.h>

asn1_node asn1_find_node(asn1_node_const pointer, const char * name);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • asn1_node_const pointer β€” the NODE_ASN element pointer, aka your starting point, your home base, the place you're searching from 🏠
  • const char * name β€” a null terminated string holding the name of the element you're trying to find. yes bestie, null terminated, we do not play about that πŸ’€

🌸 DESCRIPTION 🌸

So basically it searches for an element called name, starting from pointer. That's the whole vibe. πŸ”

Now the name is not just one little word β€” it's composed by different identifiers, and they're separated by dots. . β€” like little breadcrumbs leading you down the tree 🍞✨

And here's the part you actually need to remember, so listen up:

  • When *pointer has a name, the first identifier must be the name of *pointer itself.
  • Otherwise β€” when it doesn't have a name β€” that first identifier must be the name of one child of *pointer.

That's it. That's the rule. Get it wrong and the search is giving nothing, iykyk 😭


πŸ’– RETURNS πŸ’–

The search result, or NULL if it wasn't found. That's the tea. πŸ«–


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. slay, honestly β€” no royalty, just keep the notice, we love a generous king 🫢


🌈 SEE ALSO 🌈

The full documentation for libtasn1 is maintained as a Texinfo manual. So if the info and libtasn1 programs are properly installed at your site, this command:

info libtasn1

should give you access to the complete manual. Iconic behaviour, truly. πŸ“–βœ¨

As an alternative you may obtain the manual from:

https://www.gnu.org/software/libtasn1/manual/

okay that's the whole page bestie, go find those nodes πŸ’…

libtasn1, version 4.21.0 β€” and this little manual page is asn1_find_node(3), dated with all the love. mwah, bye πŸŽ€πŸ’œ

πŸ“¦ where this page comes from