diff options
Diffstat (limited to 'src/lib/libcrypto/evp/m_dss.c')
-rw-r--r-- | src/lib/libcrypto/evp/m_dss.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/m_dss.c b/src/lib/libcrypto/evp/m_dss.c index d393eb3400..a948c77fa4 100644 --- a/src/lib/libcrypto/evp/m_dss.c +++ b/src/lib/libcrypto/evp/m_dss.c | |||
@@ -61,12 +61,16 @@ | |||
61 | #include <openssl/evp.h> | 61 | #include <openssl/evp.h> |
62 | #include <openssl/objects.h> | 62 | #include <openssl/objects.h> |
63 | #include <openssl/x509.h> | 63 | #include <openssl/x509.h> |
64 | #ifndef OPENSSL_NO_DSA | ||
65 | #include <openssl/dsa.h> | ||
66 | #endif | ||
64 | 67 | ||
65 | #ifndef OPENSSL_NO_SHA | 68 | #ifndef OPENSSL_NO_SHA |
69 | |||
66 | static int init(EVP_MD_CTX *ctx) | 70 | static int init(EVP_MD_CTX *ctx) |
67 | { return SHA1_Init(ctx->md_data); } | 71 | { return SHA1_Init(ctx->md_data); } |
68 | 72 | ||
69 | static int update(EVP_MD_CTX *ctx,const void *data,unsigned long count) | 73 | static int update(EVP_MD_CTX *ctx,const void *data,size_t count) |
70 | { return SHA1_Update(ctx->md_data,data,count); } | 74 | { return SHA1_Update(ctx->md_data,data,count); } |
71 | 75 | ||
72 | static int final(EVP_MD_CTX *ctx,unsigned char *md) | 76 | static int final(EVP_MD_CTX *ctx,unsigned char *md) |
@@ -77,7 +81,7 @@ static const EVP_MD dsa_md= | |||
77 | NID_dsaWithSHA, | 81 | NID_dsaWithSHA, |
78 | NID_dsaWithSHA, | 82 | NID_dsaWithSHA, |
79 | SHA_DIGEST_LENGTH, | 83 | SHA_DIGEST_LENGTH, |
80 | EVP_MD_FLAG_FIPS, | 84 | 0, |
81 | init, | 85 | init, |
82 | update, | 86 | update, |
83 | final, | 87 | final, |