projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Return correct enveloped data type in ASN1 methods.
[openssl.git]
/
crypto
/
rsa
/
rsa_ameth.c
diff --git
a/crypto/rsa/rsa_ameth.c
b/crypto/rsa/rsa_ameth.c
index bc6a5786342f8d7ce6568e38cd800f700752bb2f..db926b0e4260a8f67959c4502c37dd7002bf11ae 100644
(file)
--- a/
crypto/rsa/rsa_ameth.c
+++ b/
crypto/rsa/rsa_ameth.c
@@
-448,6
+448,10
@@
static int rsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2)
else if (arg1 == 1)
return rsa_cms_decrypt(arg2);
break;
+
+ case ASN1_PKEY_CTRL_CMS_RI_TYPE:
+ *(int *)arg2 = CMS_RECIPINFO_TRANS;
+ return 1;
#endif
case ASN1_PKEY_CTRL_DEFAULT_MD_NID: