diff options
author | corvid <devnull@localhost> | 2016-07-04 01:51:02 +0000 |
---|---|---|
committer | corvid <devnull@localhost> | 2016-07-04 01:51:02 +0000 |
commit | 3dc29788ec61c47f37f832afc502dbc2a1f60441 (patch) | |
tree | 5787f755bf41c254118bbcb129fd921f734b5220 /src/IO/tls.c | |
parent | 4bdfab5489b4d3eea2436d03913a639b2a0f39ca (diff) |
recognize obsolete hash algorithms when complaining about...obsolete hash algorithms
Diffstat (limited to 'src/IO/tls.c')
-rw-r--r-- | src/IO/tls.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/IO/tls.c b/src/IO/tls.c index 980e0a53..b35756fa 100644 --- a/src/IO/tls.c +++ b/src/IO/tls.c @@ -611,7 +611,10 @@ static void Tls_cert_not_valid_yet(const mbedtls_x509_crt *cert, Dstr *ds) */ static void Tls_cert_bad_hash(const mbedtls_x509_crt *cert, Dstr *ds) { - const char *hash = (cert->sig_md == MBEDTLS_MD_SHA1) ? "SHA1" : + const char *hash = (cert->sig_md == MBEDTLS_MD_MD5) ? "MD5" : + (cert->sig_md == MBEDTLS_MD_MD4) ? "MD4" : + (cert->sig_md == MBEDTLS_MD_MD2) ? "MD2" : + (cert->sig_md == MBEDTLS_MD_SHA1) ? "SHA1" : (cert->sig_md == MBEDTLS_MD_SHA224) ? "SHA224" : (cert->sig_md == MBEDTLS_MD_RIPEMD160) ? "RIPEMD160" : (cert->sig_md == MBEDTLS_MD_SHA256) ? "SHA256" : |