diff options
Diffstat (limited to 'crypto/evp/m_ecdsa.c')
-rw-r--r-- | crypto/evp/m_ecdsa.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/evp/m_ecdsa.c b/crypto/evp/m_ecdsa.c index fad270f..4b15fb0 100644 --- a/crypto/evp/m_ecdsa.c +++ b/crypto/evp/m_ecdsa.c @@ -116,6 +116,8 @@ #include <openssl/x509.h> #ifndef OPENSSL_NO_SHA +#ifndef OPENSSL_FIPS + static int init(EVP_MD_CTX *ctx) { return SHA1_Init(ctx->md_data); } @@ -130,7 +132,7 @@ static const EVP_MD ecdsa_md= NID_ecdsa_with_SHA1, NID_ecdsa_with_SHA1, SHA_DIGEST_LENGTH, - 0, + EVP_MD_FLAG_PKEY_DIGEST, init, update, final, @@ -146,3 +148,4 @@ const EVP_MD *EVP_ecdsa(void) return(&ecdsa_md); } #endif +#endif |