asn1_delete_structure2(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_delete_structure2(3) ✨

okay bestie, pull up a chair 🫢 this one is a libtasn1 API function and it's literally the "bye bye, structure" button. no cap.


🌸 NAME 🌸

asn1_delete_structure2 β€” it's an API function, and it deletes stuff. iconic behavior honestly.


πŸŽ€ SYNOPSIS πŸŽ€

#include <libtasn1.h>

int asn1_delete_structure2(asn1_node * structure, unsigned int flags);

πŸ’– ARGUMENTS πŸ’–

  • asn1_node * structure β€” pointer to the structure that you want to delete. that's the one you're saying goodbye to πŸ₯Ί
  • unsigned int flags β€” extra flags, bestie (peep ASN1_DELETE_FLAG_ZEROIZE if you wanna know more πŸ‘€)

πŸ¦‹ DESCRIPTION πŸ¦‹

so the way this works is: it deletes the structure * structure. and at the end, * structure gets set to NULL. like, it doesn't just leave a dangling pointer hanging around being messy β€” it cleans up after itself. main character energy fr fr πŸ’…


🌈 RETURNS 🌈

  • ASN1_SUCCESS β€” slay, it worked ✨
  • ASN1_ELEMENT_NOT_FOUND β€” this happens if * structure was NULL. yeah, there was nothing there to delete, so 😭

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.


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

not me being obsessed with a delete function πŸ’€ but here we are

and that's the whole page bestie!! this one's from libtasn1, version 4.21.0, and yeah it's the asn1_delete_structure2(3) page, periodt πŸ’œ 🧚 🌸

πŸ“¦ where this page comes from