提交 b714a1fe 编写于 作者: D Dr. Stephen Henson

Don't access EVP_MD_CTX internals directly.

(cherry picked from commit 04e45b52ee3be81121359cc1198fd01e38096e9f)
上级 bbb4ee85
...@@ -379,7 +379,7 @@ char ssl3_cbc_record_digest_supported(const EVP_MD_CTX *ctx) ...@@ -379,7 +379,7 @@ char ssl3_cbc_record_digest_supported(const EVP_MD_CTX *ctx)
if (FIPS_mode()) if (FIPS_mode())
return 0; return 0;
#endif #endif
switch (ctx->digest->type) switch (EVP_MD_CTX_type(ctx))
{ {
case NID_md5: case NID_md5:
case NID_sha1: case NID_sha1:
...@@ -452,7 +452,7 @@ void ssl3_cbc_digest_record( ...@@ -452,7 +452,7 @@ void ssl3_cbc_digest_record(
* many possible overflows later in this function. */ * many possible overflows later in this function. */
OPENSSL_assert(data_plus_mac_plus_padding_size < 1024*1024); OPENSSL_assert(data_plus_mac_plus_padding_size < 1024*1024);
switch (ctx->digest->type) switch (EVP_MD_CTX_type(ctx))
{ {
case NID_md5: case NID_md5:
MD5_Init((MD5_CTX*)md_state.c); MD5_Init((MD5_CTX*)md_state.c);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册