asn1_expand_octet_string(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_expand_octet_string(3) ✨

okay so bestie, you're in the libtasn1 manual (we're on version 4.21.0 btw, iconic) and this page is literally all about the asn1_expand_octet_string API function. she's a glow-up function. let's get into it πŸ’…


🌸 NAME 🌸

asn1_expand_octet_string β€” it's an API function, periodt ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <libtasn1.h>

int asn1_expand_octet_string(asn1_node_const definitions, asn1_node *
element, const char * octetName, const char * objectName);

copy that include, bestie, you need it fr fr 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • asn1_node_const definitions β€” the ASN1 definitions. your whole little schema situation πŸ‘‘
  • asn1_node * element β€” a pointer to an ASN1 structure. she's pointing, she's serving directions πŸ’β€β™€οΈ
  • const char * octetName β€” the name of the OCTET STRING field that we're gonna expand. that's the one getting the glow-up ✨
  • const char * objectName β€” the name of the OBJECT IDENTIFIER field that tells us which type to use for the expansion. she's the main character that decides everything πŸ’…

πŸ’– DESCRIPTION πŸ’–

so what she actually does: she expands an "OCTET STRING" element inside a structure that came out of a DER decoding process β€” like, the one you got from the asn1_der_decoding() function. iykyk 😌

and the type she uses for that expansion? it's the first one that follows the definition of the actual value of the OBJECT IDENTIFIER that's pointed at by OBJECTNAME. that's the whole vibe check right there 🌈


⭐ RETURNS ⭐

  • ASN1_SUCCESS β€” substitution went okay, ate and left no crumbs πŸŽ‰
  • ASN1_ELEMENT_NOT_FOUND β€” if objectName or octetName are not correct. wrong names, bestie, not the move πŸ’€
  • ASN1_VALUE_NOT_VALID β€” if it wasn't possible to find the type to use for expansion 😭
  • or other errors depending on DER decoding. yeah, there's more, it depends πŸ™ˆ

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, that's the whole license, go off πŸ’š


🧚 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/

ngl bestie, if info libtasn1 doesn't hit, that URL is right there. no cap 🫢

and that's the page!! brought to you by libtasn1 version 4.21.0, page asn1_expand_octet_string(3). stay hydrated, read your manuals, mwah πŸ’‹πŸ’–βœ¨

πŸ“¦ where this page comes from