projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make the change to strong keys in the string to key(s) functions experimental in...
[oweals/openssl.git]
/
crypto
/
rsa
/
rsa_asn1.c
diff --git
a/crypto/rsa/rsa_asn1.c
b/crypto/rsa/rsa_asn1.c
index 95019238224c2c331d80977b676e84431f18b84f..1455a7e0e42bbf344823cfea777e0124ea3a37a7 100644
(file)
--- a/
crypto/rsa/rsa_asn1.c
+++ b/
crypto/rsa/rsa_asn1.c
@@
-109,3
+109,13
@@
ASN1_SEQUENCE_cb(RSAPublicKey, rsa_cb) = {
IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(RSA, RSAPrivateKey, RSAPrivateKey)
IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(RSA, RSAPublicKey, RSAPublicKey)
IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(RSA, RSAPrivateKey, RSAPrivateKey)
IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(RSA, RSAPublicKey, RSAPublicKey)
+
+RSA *RSAPublicKey_dup(RSA *rsa)
+ {
+ return ASN1_item_dup(ASN1_ITEM_rptr(RSAPublicKey), rsa);
+ }
+
+RSA *RSAPrivateKey_dup(RSA *rsa)
+ {
+ return ASN1_item_dup(ASN1_ITEM_rptr(RSAPrivateKey), rsa);
+ }