diff options
author | Ben Laurie <ben@links.org> | 2015-12-13 05:51:03 +0000 |
---|---|---|
committer | Ben Laurie <ben@links.org> | 2015-12-13 14:59:10 +0000 |
commit | 6c3b566497d3147f3d701268d5280596ba9974d8 (patch) | |
tree | 9578e441dbf1f9db180f9e9e96c7aca70a3897f6 /crypto/evp/m_md2.c | |
parent | 4eacfadedc790244017d88957cbba0f8626c2dbd (diff) | |
download | openssl-6c3b566497d3147f3d701268d5280596ba9974d8.tar.gz |
Remove no longer existant structure member and direct references to EVP_MD_CTX internals.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/evp/m_md2.c')
-rw-r--r-- | crypto/evp/m_md2.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/crypto/evp/m_md2.c b/crypto/evp/m_md2.c index 91b5e18d10..ed2dfd88ea 100644 --- a/crypto/evp/m_md2.c +++ b/crypto/evp/m_md2.c @@ -69,19 +69,21 @@ # include <openssl/rsa.h> # endif +#include "internal/evp_int.h" + static int init(EVP_MD_CTX *ctx) { - return MD2_Init(ctx->md_data); + return MD2_Init(EVP_MD_CTX_md_data(ctx)); } static int update(EVP_MD_CTX *ctx, const void *data, size_t count) { - return MD2_Update(ctx->md_data, data, count); + return MD2_Update(EVP_MD_CTX_md_data(ctx), data, count); } static int final(EVP_MD_CTX *ctx, unsigned char *md) { - return MD2_Final(md, ctx->md_data); + return MD2_Final(md, EVP_MD_CTX_md_data(ctx)); } static const EVP_MD md2_md = { @@ -94,13 +96,12 @@ static const EVP_MD md2_md = { final, NULL, NULL, - EVP_PKEY_RSA_method, MD2_BLOCK, sizeof(EVP_MD *) + sizeof(MD2_CTX), }; const EVP_MD *EVP_md2(void) { - return (&md2_md); + return &md2_md; } #endif |