X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fevp%2Fm_dss1.c;h=4f03fb70e0263e84566c24d333ddd06b7cee71ce;hp=6b65bfd54b88ec7ef15e430f70ff3008c7afdb21;hb=207886cd3a4ec562d74e2e3e49fa09da27044565;hpb=60a938c6bca4c0890ed2d320e29fb43c970094d5 diff --git a/crypto/evp/m_dss1.c b/crypto/evp/m_dss1.c index 6b65bfd54b..4f03fb70e0 100644 --- a/crypto/evp/m_dss1.c +++ b/crypto/evp/m_dss1.c @@ -64,12 +64,14 @@ #include #include #include +#ifndef OPENSSL_NO_DSA #include +#endif static int init(EVP_MD_CTX *ctx) { return SHA1_Init(ctx->md_data); } -static int update(EVP_MD_CTX *ctx,const void *data,unsigned long count) +static int update(EVP_MD_CTX *ctx,const void *data,size_t count) { return SHA1_Update(ctx->md_data,data,count); } static int final(EVP_MD_CTX *ctx,unsigned char *md) @@ -80,7 +82,7 @@ static const EVP_MD dss1_md= NID_dsa, NID_dsaWithSHA1, SHA_DIGEST_LENGTH, - 0, + EVP_MD_FLAG_PKEY_DIGEST, init, update, final,