diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2013-11-13 13:55:14 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2013-11-13 13:55:16 +0100 |
commit | c5a9cfaf1bc008a2b4b7bbd544a8f3ab3d62d953 (patch) | |
tree | 5d67b0c9adeb443dad2518b88699842b2b0f4968 /lib/libtasn1.h | |
parent | ef90ba764f1032f097ae77443651656b3d712ebf (diff) | |
download | libtasn1-c5a9cfaf1bc008a2b4b7bbd544a8f3ab3d62d953.tar.gz libtasn1-c5a9cfaf1bc008a2b4b7bbd544a8f3ab3d62d953.tar.bz2 libtasn1-c5a9cfaf1bc008a2b4b7bbd544a8f3ab3d62d953.zip |
Added asn1_delete_structure2().
The new function accepts additional flags to be used during deinitialization.
For the moment the only available flag is ASN1_DELETE_FLAG_ZEROIZE which zeroizes
all values in the structure prior to deinitialization.
Diffstat (limited to 'lib/libtasn1.h')
-rw-r--r-- | lib/libtasn1.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libtasn1.h b/lib/libtasn1.h index a2da884..f29e6a4 100644 --- a/lib/libtasn1.h +++ b/lib/libtasn1.h @@ -168,6 +168,12 @@ extern "C" #define ASN1_ETYPE_UTC_TIME 36 #define ASN1_ETYPE_GENERALIZED_TIME 37 +/* Flags used by asn1_delete_structure2() */ + +/* makes sure the values are zeroized prior to deinitialization */ +#define ASN1_DELETE_FLAG_ZEROIZE 1 + + struct asn1_data_node_st { const char *name; /* Node name */ @@ -214,6 +220,8 @@ extern "C" extern ASN1_API int asn1_delete_structure (asn1_node * structure); + extern ASN1_API int asn1_delete_structure2 (asn1_node * structure, unsigned int flags); + extern ASN1_API int asn1_delete_element (asn1_node structure, const char *element_name); |