[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU gnutls branch, gnutls_3_1_x, updated. gnutls_3_1_1-4-g981725a
From: |
Nikos Mavrogiannopoulos |
Subject: |
[SCM] GNU gnutls branch, gnutls_3_1_x, updated. gnutls_3_1_1-4-g981725a |
Date: |
Wed, 12 Sep 2012 21:05:19 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU gnutls".
http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=981725a8ae8d34074f94df50a1ae98eb8854d906
The branch, gnutls_3_1_x has been updated
via 981725a8ae8d34074f94df50a1ae98eb8854d906 (commit)
from 8a867c7c7f80386fb60f848fc421188f3c49a242 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 981725a8ae8d34074f94df50a1ae98eb8854d906
Author: Nikos Mavrogiannopoulos <address@hidden>
Date: Wed Sep 12 23:03:32 2012 +0200
When requested gnutls_x509_trust_list_deinit() will deinitialized all certs
(including the named)
-----------------------------------------------------------------------
Summary of changes:
lib/x509/verify-high.c | 5 +++++
tests/x509cert-tl.c | 4 +---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/lib/x509/verify-high.c b/lib/x509/verify-high.c
index 4ecab5b..0c299b1 100644
--- a/lib/x509/verify-high.c
+++ b/lib/x509/verify-high.c
@@ -128,6 +128,11 @@ gnutls_x509_trust_list_deinit(gnutls_x509_trust_list_t
list,
gnutls_x509_crl_deinit(list->node[i].crls[j]);
}
gnutls_free(list->node[i].crls);
+
+ if (all)
+ for (j = 0; j < list->node[i].named_cert_size; j++) {
+ gnutls_x509_crt_deinit(list->node[i].named_certs[j].cert);
+ }
gnutls_free(list->node[i].named_certs);
}
diff --git a/tests/x509cert-tl.c b/tests/x509cert-tl.c
index 0c43272..c2ff767 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();
hooks/post-receive
--
GNU gnutls
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU gnutls branch, gnutls_3_1_x, updated. gnutls_3_1_1-4-g981725a,
Nikos Mavrogiannopoulos <=