summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-03-20 10:35:14 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-03-20 10:35:14 +0100
commit1dcf6fce00eea99082a5ad097d6660aa2000e75c (patch)
treea5f873cc3bf2240844aed2260248dd9fcc81fd71
parentc44606433f0b4f9a10bda0cc24ff11d9f76024de (diff)
downloadgnutls-1dcf6fce00eea99082a5ad097d6660aa2000e75c.tar.gz
set the invalid flag when the owner is unexpected.
-rw-r--r--lib/gnutls_x509.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_x509.c b/lib/gnutls_x509.c
index 05ec2a5952..70d58a5d0c 100644
--- a/lib/gnutls_x509.c
+++ b/lib/gnutls_x509.c
@@ -303,7 +303,7 @@ _gnutls_x509_cert_verify_peers(gnutls_session_t session,
gnutls_x509_crt_check_hostname(peer_certificate_list
[0], hostname);
if (ret == 0)
- *status |= GNUTLS_CERT_UNEXPECTED_OWNER;
+ *status |= GNUTLS_CERT_UNEXPECTED_OWNER|GNUTLS_CERT_INVALID;
}
CLEAR_CERTS;