summaryrefslogtreecommitdiff
path: root/lib/libcrypto/evp/m_md5.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/evp/m_md5.c')
-rw-r--r--lib/libcrypto/evp/m_md5.c30
1 files changed, 18 insertions, 12 deletions
diff --git a/lib/libcrypto/evp/m_md5.c b/lib/libcrypto/evp/m_md5.c
index 03c78df9e80..d1c4bc17421 100644
--- a/lib/libcrypto/evp/m_md5.c
+++ b/lib/libcrypto/evp/m_md5.c
@@ -89,18 +89,24 @@ final(EVP_MD_CTX *ctx, unsigned char *md)
}
static const EVP_MD md5_md = {
- NID_md5,
- NID_md5WithRSAEncryption,
- MD5_DIGEST_LENGTH,
- 0,
- init,
- update,
- final,
- NULL,
- NULL,
- EVP_PKEY_RSA_method,
- MD5_CBLOCK,
- sizeof(EVP_MD *) + sizeof(MD5_CTX),
+ .type = NID_md5,
+ .pkey_type = NID_md5WithRSAEncryption,
+ .md_size = MD5_DIGEST_LENGTH,
+ .flags = 0,
+ .init = init,
+ .update = update,
+ .final = final,
+ .copy = NULL,
+ .cleanup = NULL,
+#ifndef OPENSSL_NO_RSA
+ .sign = (evp_sign_method *)RSA_sign,
+ .verify = (evp_verify_method *)RSA_verify,
+ .required_pkey_type = {
+ EVP_PKEY_RSA, EVP_PKEY_RSA2, 0, 0,
+ },
+#endif
+ .block_size = MD5_CBLOCK,
+ .ctx_size = sizeof(EVP_MD *) + sizeof(MD5_CTX),
};
const EVP_MD *