mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Use MD5+SHA1 for default digest if appropriate.
Reviewed-by: Tim Hudson <tjh@openssl.org>
This commit is contained in:
parent
2f142ada2c
commit
d18d31a16f
@ -2712,8 +2712,11 @@ static void ssl_set_default_md(SSL *s)
|
||||
pmd[SSL_PKEY_DSA_SIGN] = EVP_sha1();
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_RSA
|
||||
pmd[SSL_PKEY_RSA_SIGN] = EVP_sha1();
|
||||
pmd[SSL_PKEY_RSA_ENC] = EVP_sha1();
|
||||
if (SSL_USE_SIGALGS(s))
|
||||
pmd[SSL_PKEY_RSA_SIGN] = EVP_sha1();
|
||||
else
|
||||
pmd[SSL_PKEY_RSA_SIGN] = EVP_md5_sha1();
|
||||
pmd[SSL_PKEY_RSA_ENC] = pmd[SSL_PKEY_RSA_SIGN];
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_EC
|
||||
pmd[SSL_PKEY_ECC] = EVP_sha1();
|
||||
|
Loading…
Reference in New Issue
Block a user