asn1_copy_node(3)
β¨ 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 destinationasn1node. 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 indstare we putting it π«Άasn1_node_const srcβ the sourceasn1node. the original, the blueprint, the moment πconst char * src_nameβ the field name in the source node. where insrcwe'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
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
- 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