diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2013-02-01 14:29:01 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2013-02-05 16:50:35 +0000 |
commit | 1909df070fb5c5b87246a2de19c17588deba5818 (patch) | |
tree | 3d3d79a67a721f677f11142d950c63f9940807a0 /ssl/s3_cbc.c | |
parent | c23a7458209e773ffcd42bdcfa5cf2564df86bd7 (diff) |
Don't access EVP_MD internals directly.
Diffstat (limited to 'ssl/s3_cbc.c')
-rw-r--r-- | ssl/s3_cbc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/s3_cbc.c b/ssl/s3_cbc.c index 1819f6cf01..9787697945 100644 --- a/ssl/s3_cbc.c +++ b/ssl/s3_cbc.c @@ -371,7 +371,7 @@ char ssl3_cbc_record_digest_supported(const EVP_MD *digest) if (FIPS_mode()) return 0; #endif - switch (digest->type) + switch (EVP_MD_type(digest)) { case NID_md5: case NID_sha1: @@ -439,7 +439,7 @@ void ssl3_cbc_digest_record( * many possible overflows later in this function. */ OPENSSL_assert(data_plus_mac_plus_padding_size < 1024*1024); - switch (digest->type) + switch (EVP_MD_type(digest)) { case NID_md5: MD5_Init((MD5_CTX*)md_state); |