diff options
Diffstat (limited to 'lib/x509/verify.c')
-rw-r--r-- | lib/x509/verify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/verify.c b/lib/x509/verify.c index 5f8d4b0205..fafaff274b 100644 --- a/lib/x509/verify.c +++ b/lib/x509/verify.c @@ -952,7 +952,7 @@ _gnutls_verify_crt_status(const gnutls_x509_crt_t * certificate_list, if (i - 1 < 0) break; - if (purpose != NULL && (flags & GNUTLS_VERIFY_KEY_PURPOSE_ON_INTERMEDIATE)) { + if (purpose != NULL) { ret = _gnutls_check_key_purpose(certificate_list[i], purpose, 1); if (ret != 1) { gnutls_assert(); |