mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +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();
|
pmd[SSL_PKEY_DSA_SIGN] = EVP_sha1();
|
||||||
#endif
|
#endif
|
||||||
#ifndef OPENSSL_NO_RSA
|
#ifndef OPENSSL_NO_RSA
|
||||||
|
if (SSL_USE_SIGALGS(s))
|
||||||
pmd[SSL_PKEY_RSA_SIGN] = EVP_sha1();
|
pmd[SSL_PKEY_RSA_SIGN] = EVP_sha1();
|
||||||
pmd[SSL_PKEY_RSA_ENC] = EVP_sha1();
|
else
|
||||||
|
pmd[SSL_PKEY_RSA_SIGN] = EVP_md5_sha1();
|
||||||
|
pmd[SSL_PKEY_RSA_ENC] = pmd[SSL_PKEY_RSA_SIGN];
|
||||||
#endif
|
#endif
|
||||||
#ifndef OPENSSL_NO_EC
|
#ifndef OPENSSL_NO_EC
|
||||||
pmd[SSL_PKEY_ECC] = EVP_sha1();
|
pmd[SSL_PKEY_ECC] = EVP_sha1();
|
||||||
|
Loading…
Reference in New Issue
Block a user