summaryrefslogtreecommitdiff
path: root/lib/x509/verify-high.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-09-08 10:46:39 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-09-08 10:48:08 +0200
commit60afa4f57d547a78b301ddf0018f9eb642c53fb7 (patch)
tree56175531a5310366c621600ef968c56812c4fdab /lib/x509/verify-high.c
parent6615652177b530e16d13f23a61f76a689d672145 (diff)
downloadgnutls-60afa4f57d547a78b301ddf0018f9eb642c53fb7.tar.gz
initialize verification output to zero
Diffstat (limited to 'lib/x509/verify-high.c')
-rw-r--r--lib/x509/verify-high.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/x509/verify-high.c b/lib/x509/verify-high.c
index dd2e2b479b..f870e2d08c 100644
--- a/lib/x509/verify-high.c
+++ b/lib/x509/verify-high.c
@@ -779,6 +779,7 @@ gnutls_x509_trust_list_verify_crt(gnutls_x509_trust_list_t list,
ret = check_if_in_blacklist(cert_list, cert_list_size,
list->blacklisted, list->blacklisted_size);
if (ret != 0) {
+ *voutput = 0;
*voutput |= GNUTLS_CERT_REVOKED;
*voutput |= GNUTLS_CERT_INVALID;
return 0;
@@ -904,6 +905,7 @@ gnutls_x509_trust_list_verify_named_crt(gnutls_x509_trust_list_t list,
unsigned int i;
uint32_t hash;
+
hash =
hash_pjw_bare(cert->raw_issuer_dn.data,
cert->raw_issuer_dn.size);
@@ -912,6 +914,7 @@ gnutls_x509_trust_list_verify_named_crt(gnutls_x509_trust_list_t list,
ret = check_if_in_blacklist(&cert, 1,
list->blacklisted, list->blacklisted_size);
if (ret != 0) {
+ *voutput = 0;
*voutput |= GNUTLS_CERT_REVOKED;
*voutput |= GNUTLS_CERT_INVALID;
return 0;