summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-09-12 23:03:32 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-09-12 23:03:32 +0200
commit7b3839b4fff469a341fbbc125fe72468af9b7df4 (patch)
tree374f8d1ee1b21d5394ea9042cd57322913c9ece1 /tests
parentf558716ec2fe876b8ba85b9c3093aedfd6800243 (diff)
downloadgnutls-7b3839b4fff469a341fbbc125fe72468af9b7df4.tar.gz
When requested gnutls_x509_trust_list_deinit() will deinitialized all certs (including the named)
Diffstat (limited to 'tests')
-rw-r--r--tests/x509cert-tl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/x509cert-tl.c b/tests/x509cert-tl.c
index 0c432723ef..c2ff767ee9 100644
--- a/tests/x509cert-tl.c
+++ b/tests/x509cert-tl.c
@@ -255,9 +255,7 @@ doit (void)
if (ret < 1)
fail("gnutls_x509_trust_list_add_trust_mem: %d\n", __LINE__);
- gnutls_x509_crt_deinit(ca_crt);
- gnutls_x509_crt_deinit(server_crt);
- gnutls_x509_trust_list_deinit(tl, 0);
+ gnutls_x509_trust_list_deinit(tl, 1);
gnutls_global_deinit();