From 03919683f9bade36ef1b58e64638ac3ccbbf371a Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 7 May 2006 17:09:39 +0000 Subject: Add support for default public key digest type ctrl. --- crypto/rsa/rsa_ameth.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crypto/rsa') diff --git a/crypto/rsa/rsa_ameth.c b/crypto/rsa/rsa_ameth.c index 917b376caa..03785495df 100644 --- a/crypto/rsa/rsa_ameth.c +++ b/crypto/rsa/rsa_ameth.c @@ -287,6 +287,10 @@ static int rsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) } return 1; + case ASN1_PKEY_CTRL_DEFAULT_MD_NID: + *(int *)arg2 = NID_sha1; + return 1; + default: return -2; -- cgit v1.2.3