summaryrefslogtreecommitdiffstats
path: root/ssl/s3_cbc.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2013-02-01 14:53:43 +0100
committerDr. Stephen Henson <steve@openssl.org>2013-02-06 15:19:10 +0100
commitb714a1fe09fc03588b0a0f6f8f14488bd3a2efaf (patch)
tree909b9a56d9d386b20cba8e784322f3d83ce0aa3f /ssl/s3_cbc.c
parents3/s3_cbc.c: allow for compilations with NO_SHA256|512. (diff)
downloadopenssl-b714a1fe09fc03588b0a0f6f8f14488bd3a2efaf.tar.xz
openssl-b714a1fe09fc03588b0a0f6f8f14488bd3a2efaf.zip
Don't access EVP_MD_CTX internals directly.
(cherry picked from commit 04e45b52ee3be81121359cc1198fd01e38096e9f)
Diffstat (limited to 'ssl/s3_cbc.c')
-rw-r--r--ssl/s3_cbc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/s3_cbc.c b/ssl/s3_cbc.c
index da53a6da3b..52e294157e 100644
--- a/ssl/s3_cbc.c
+++ b/ssl/s3_cbc.c
@@ -379,7 +379,7 @@ char ssl3_cbc_record_digest_supported(const EVP_MD_CTX *ctx)
if (FIPS_mode())
return 0;
#endif
- switch (ctx->digest->type)
+ switch (EVP_MD_CTX_type(ctx))
{
case NID_md5:
case NID_sha1:
@@ -452,7 +452,7 @@ void ssl3_cbc_digest_record(
* many possible overflows later in this function. */
OPENSSL_assert(data_plus_mac_plus_padding_size < 1024*1024);
- switch (ctx->digest->type)
+ switch (EVP_MD_CTX_type(ctx))
{
case NID_md5:
MD5_Init((MD5_CTX*)md_state.c);