asn1_create_element(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

✨ asn1_create_element ✨

okay bestie, welcome to the libtasn1 manual page for asn1_create_element(3) β€” yes that's the whole vibe, we're doing ASN.1 structure creation today and honestly? it's giving main character energy πŸ’…


πŸŽ€ NAME πŸŽ€

asn1_create_element β€” an API function, and she's here to build you a shiny new structure πŸ¦‹


🌸 SYNOPSIS 🌸

#include <libtasn1.h>

int asn1_create_element(asn1_node_const definitions, const char *
source_name, asn1_node * element);

πŸ’– ARGUMENTS πŸ’–

  • asn1_node_const definitions β€” a pointer to the structure that the "parser_asn1" function handed you back. iykyk, that's your definitions source 🫢
  • const char * source_name β€” the name of the type of the new structure. heads up though: it must be inside p_structure, no cap 🧚
  • asn1_node * element β€” a pointer to the structure that got created. yes queen, this is where your baby lives πŸ‘‘

🌈 DESCRIPTION 🌈

So what does it do? It creates a structure of type source_name. periodt.

Here's the example, using "pkix.asn" β€” and I need you to copy it exactly, not me:

rc = asn1_create_element(cert_def, "PKIX1.Certificate", certptr);

look at that. iconic. she ate fr fr πŸ’€βœ¨


⭐ RETURNS ⭐

  • ASN1_SUCCESS β€” if the creation went OK. slay πŸ’–
  • ASN1_ELEMENT_NOT_FOUND β€” if source_name is not known. sad girl hours 😭

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.

(no, that's not me being dramatic, that's literally the license text and I'm not touching it 🌸)


πŸ¦‹ 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, every flag, every arg, every return code, all accounted for πŸ’œ

okay so final vibe check: this is the libtasn1 manual, version 4.21.0, and asn1_create_element(3) is the entry we just vibed through. go build something cute with it πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from