diff options
author | Daniel P. Berrangé | 2021-05-14 14:04:10 +0200 |
---|---|---|
committer | Thomas Huth | 2021-06-02 07:10:45 +0200 |
commit | fd4eddc3a8237987c73fe1981ce9e3a4bd9fee29 (patch) | |
tree | 442d90c963a9204ec314481c2c3a233c3ee2b596 | |
parent | crypto: bump min gnutls to 3.5.18, dropping RHEL-7 support (diff) | |
download | qemu-fd4eddc3a8237987c73fe1981ce9e3a4bd9fee29.tar.gz qemu-fd4eddc3a8237987c73fe1981ce9e3a4bd9fee29.tar.xz qemu-fd4eddc3a8237987c73fe1981ce9e3a4bd9fee29.zip |
crypto: drop used conditional check
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>
-rw-r--r-- | crypto/tlscredsx509.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/crypto/tlscredsx509.c b/crypto/tlscredsx509.c index bc503bab55..d9d6f4421e 100644 --- a/crypto/tlscredsx509.c +++ b/crypto/tlscredsx509.c @@ -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", |