summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/crypto/evp/m_dss.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl/crypto/evp/m_dss.c')
-rw-r--r--crypto/openssl/crypto/evp/m_dss.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/openssl/crypto/evp/m_dss.c b/crypto/openssl/crypto/evp/m_dss.c
index beb8d7f..a948c77 100644
--- a/crypto/openssl/crypto/evp/m_dss.c
+++ b/crypto/openssl/crypto/evp/m_dss.c
@@ -61,12 +61,16 @@
#include <openssl/evp.h>
#include <openssl/objects.h>
#include <openssl/x509.h>
+#ifndef OPENSSL_NO_DSA
+#include <openssl/dsa.h>
+#endif
#ifndef OPENSSL_NO_SHA
+
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)
OpenPOWER on IntegriCloud