crypto: drop used conditional check
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 14 May 2021 12:04:10 +0000 (13:04 +0100)
committerThomas Huth <thuth@redhat.com>
Wed, 2 Jun 2021 05:10:45 +0000 (07:10 +0200)
The condition being tested has never been set since the day the code was
first introduced.

Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20210514120415.1368922-8-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
crypto/tlscredsx509.c

index bc503bab5585db52f7e3508618b9ba67bc78e564..d9d6f4421e50d54b25ecbabc839cf7e4bb90ecc9 100644 (file)
@@ -354,11 +354,9 @@ qcrypto_tls_creds_check_cert_pair(gnutls_x509_crt_t cert,
             reason = "The certificate has been revoked";
         }
 
-#ifndef GNUTLS_1_0_COMPAT
         if (status & GNUTLS_CERT_INSECURE_ALGORITHM) {
             reason = "The certificate uses an insecure algorithm";
         }
-#endif
 
         error_setg(errp,
                    "Our own certificate %s failed validation against %s: %s",