提交 e36f6b9c 编写于 作者: A Andy Polyakov

e_rc4_hmac_md5.c: oops, can't use rc4_hmac_md5_cipher on legacy Intel CPUs.

PR: 2792
上级 3e181369
...@@ -287,6 +287,8 @@ static EVP_CIPHER r4_hmac_md5_cipher= ...@@ -287,6 +287,8 @@ static EVP_CIPHER r4_hmac_md5_cipher=
const EVP_CIPHER *EVP_rc4_hmac_md5(void) const EVP_CIPHER *EVP_rc4_hmac_md5(void)
{ {
return(&r4_hmac_md5_cipher); extern unsigned int OPENSSL_ia32cap_P[];
/* RC4_CHAR flag ------------vvvvv */
return(OPENSSL_ia32cap_P[0]&(1<<20) ? NULL : &r4_hmac_md5_cipher);
} }
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册