TYPE_new() and TYPE_free()
Ken Goldman
kgoldman at us.ibm.com
Fri Aug 27 21:28:52 UTC 2021
Assuming that I use the ASN1_SEQUENCE, ASN1_SEQUENCE_END,
DECLARE_ASN1_FUNCTIONS, IMPLEMENT_ASN1_FUNCTIONS macros ...
TYPE_free() says that it frees all sub-objects. Can I
assume that, if the sub-objects are also defined
with those macros, that it will iterate all the way?
TYPE_new() allocates the object. Does it set
all the pointers to NULL, and iterate down
through sub-structure - so that the free is safe?
More information about the openssl-users
mailing list