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:47 +0100
commit5587447fd470600f2303c4ec71f8550804c9a7f2 (patch)
tree61e30cc614ac53b086cbc545ee62a89b184a4b0f
parent421faf2fdd0f145013a7d07c706d3ba621b61037 (diff)
downloadgnutls-5587447fd470600f2303c4ec71f8550804c9a7f2.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 d8f8d256d3..20ea22b42a 100644
--- a/lib/gnutls_x509.c
+++ b/lib/gnutls_x509.c
@@ -349,7 +349,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;