asn1_copy_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

✨ asn1_copy_node β€” the libtasn1 glow-up πŸ’…

okay bestie, we're in asn1_copy_node(3) from libtasn1 and this one is literally the "make a whole copy of my node" function. no cap. 🌸


πŸ¦‹ SYNOPSIS

#include <libtasn1.h>

int asn1_copy_node(asn1_node dst, const char * dst_name, asn1_node_const
src, const char * src_name);

πŸŽ€ ARGUMENTS

  • asn1_node dst β€” the destination asn1 node. this is where the copy lands, the main character of the operation πŸ‘‘
  • const char * dst_name β€” the field name over in the destination node. like, which spot in dst are we putting it 🫢
  • asn1_node_const src β€” the source asn1 node. the original, the blueprint, the moment πŸ’–
  • const char * src_name β€” the field name in the source node. where in src we're pulling from ✨

πŸ’œ DESCRIPTION

so basically: create a deep copy of an asn1_node variable. deep copy means it's not just vibes and pointers, it's the whole thing fr fr.

and here's the tea β€” that function requires dst to be expanded using asn1_create_element(). so if you skipped that step, that's not it, bestie, it's not gonna work πŸ™ˆ


⭐ RETURNS

returns ASN1_SUCCESS on success. slay. that's the win condition πŸŽ‰


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, that's the real permission slip, and it's giving generous πŸ’–)


πŸ‘‘ 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, that Texinfo manual is the whole extended lore if you want it. iykyk πŸ“š

mwah, that's a wrap! this page lives in libtasn1 version 4.21.0, and it's been serving asn1_copy_node(3) realness since forever. go forth and deep copy responsibly πŸ¦‹πŸ’…

πŸ“¦ where this page comes from