diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-12-29 18:23:55 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-12-29 18:23:55 +0000 |
commit | 78d3b819f04fcefa67294a840ea7fbf167418109 (patch) | |
tree | 4dc90327ba13a32c230e95c9ce4fb37be79f89b5 /crypto/pkcs7 | |
parent | 200b24e391af69aee7a6778371bfa3ebb86da07b (diff) |
Replace the old ASN1_dup() with ASN1_item_dup() and
zap some evil function pointers casts along the way...
Diffstat (limited to 'crypto/pkcs7')
-rw-r--r-- | crypto/pkcs7/pk7_lib.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/pkcs7/pk7_lib.c b/crypto/pkcs7/pk7_lib.c index 9ceeab6c58..656f0e9dfa 100644 --- a/crypto/pkcs7/pk7_lib.c +++ b/crypto/pkcs7/pk7_lib.c @@ -419,9 +419,7 @@ int PKCS7_RECIP_INFO_set(PKCS7_RECIP_INFO *p7i, X509 *x509) M_ASN1_INTEGER_dup(X509_get_serialNumber(x509)); X509_ALGOR_free(p7i->key_enc_algor); - p7i->key_enc_algor=(X509_ALGOR *)ASN1_dup(i2d_X509_ALGOR, - (char *(*)())d2i_X509_ALGOR, - (char *)x509->cert_info->key->algor); + p7i->key_enc_algor= X509_ALGOR_dup(x509->cert_info->key->algor); CRYPTO_add(&x509->references,1,CRYPTO_LOCK_X509); p7i->cert=x509; |