summaryrefslogtreecommitdiff
path: root/tests/Test_tree.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-11-25 20:12:38 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-11-25 20:14:48 +0100
commit1d8e5a89a70b1ffdc0e74770ede172cbeae239e4 (patch)
treed323d3412dc03cdde2f6649663791b6cf5b817dd /tests/Test_tree.c
parent2438faae2cec9c9a2caeba9044560e1546eae571 (diff)
downloadlibtasn1-1d8e5a89a70b1ffdc0e74770ede172cbeae239e4.tar.gz
libtasn1-1d8e5a89a70b1ffdc0e74770ede172cbeae239e4.tar.bz2
libtasn1-1d8e5a89a70b1ffdc0e74770ede172cbeae239e4.zip
include asn1_delete_structure2() to tests
Diffstat (limited to 'tests/Test_tree.c')
-rw-r--r--tests/Test_tree.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/Test_tree.c b/tests/Test_tree.c
index c44777e..b251854 100644
--- a/tests/Test_tree.c
+++ b/tests/Test_tree.c
@@ -24,6 +24,7 @@
/* Description: Test sequences for these functions: */
/* asn1_visit_tree, */
/* asn1_create_element, */
+/* asn1_delete_structure2, */
/* asn1_delete_structure, */
/* asn1_write_value, */
/* asn1_read_value, */
@@ -58,6 +59,7 @@
#define ACT_READ_BIT 19
#define ACT_SET_DER 20
#define ACT_DELETE_ELEMENT 21
+#define ACT_DELETE2 22
typedef struct
@@ -87,7 +89,7 @@ test_type test_array[] = {
{ACT_VISIT, "", "", ASN1_PRINT_ALL, ASN1_SUCCESS, __LINE__},
{ACT_DELETE_ELEMENT, "pvno", "", 0, ASN1_SUCCESS, __LINE__},
{ACT_DELETE_ELEMENT, "pvno", "", 0, ASN1_ELEMENT_NOT_FOUND, __LINE__},
- {ACT_DELETE, "", "", 0, ASN1_SUCCESS, __LINE__},
+ {ACT_DELETE2, "", "", 0, ASN1_SUCCESS, __LINE__},
/* Test: CHOICE */
{ACT_CREATE, "TEST_TREE.CertTemplate", 0, 0, ASN1_SUCCESS, __LINE__},
@@ -531,6 +533,9 @@ main (int argc, char *argv[])
case ACT_DELETE:
result = asn1_delete_structure (&asn1_element);
break;
+ case ACT_DELETE2:
+ result = asn1_delete_structure2 (&asn1_element, ASN1_DELETE_FLAG_ZEROIZE);
+ break;
case ACT_DELETE_ELEMENT:
result = asn1_delete_element (asn1_element, test->par1);
break;