diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-05-07 19:09:39 +0200 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-05-07 19:09:39 +0200 |
commit | 03919683f9bade36ef1b58e64638ac3ccbbf371a (patch) | |
tree | 27f5210878e9047e884930fdf7b5860e59048a8d /crypto/rsa | |
parent | Fix from stable branch. (diff) | |
download | openssl-03919683f9bade36ef1b58e64638ac3ccbbf371a.tar.xz openssl-03919683f9bade36ef1b58e64638ac3ccbbf371a.zip |
Add support for default public key digest type ctrl.
Diffstat (limited to 'crypto/rsa')
-rw-r--r-- | crypto/rsa/rsa_ameth.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |