Update EVP_PKEY_cmp() and X509_check_private() to return sensible values and
[openssl.git] / crypto / evp / m_sha1.c
index daf6db6ebeed673f19140289cb4079bee17eb1b6..41c8d3dfe2591569de1aef020a61ced1f310b449 100644 (file)
@@ -64,7 +64,9 @@
 #include <openssl/evp.h>
 #include <openssl/objects.h>
 #include <openssl/x509.h>
+#ifndef OPENSSL_NO_RSA
 #include <openssl/rsa.h>
+#endif
 
 static int init(EVP_MD_CTX *ctx)
        { return SHA1_Init(ctx->md_data); }
@@ -80,7 +82,7 @@ static const EVP_MD sha1_md=
        NID_sha1,
        NID_sha1WithRSAEncryption,
        SHA_DIGEST_LENGTH,
-       0,
+       EVP_MD_FLAG_PKEY_METHOD_SIGNATURE,
        init,
        update,
        final,