diff options
author | Ben Laurie <ben@openssl.org> | 2000-05-16 23:01:19 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2000-05-16 23:01:19 +0000 |
commit | 371acb22e68ff23128485ce134a9931de889e719 (patch) | |
tree | d69e9633373dc07fe39e8e07a0dceef7ec3aa4d8 /crypto/pkcs7/pk7_smime.c | |
parent | 5de603abc8fe6fedca529ce58d3741b50ff99592 (diff) |
Typesafe Thought Police part 4.
Diffstat (limited to 'crypto/pkcs7/pk7_smime.c')
-rw-r--r-- | crypto/pkcs7/pk7_smime.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/pkcs7/pk7_smime.c b/crypto/pkcs7/pk7_smime.c index 0a9f5a86ae..225fc63da0 100644 --- a/crypto/pkcs7/pk7_smime.c +++ b/crypto/pkcs7/pk7_smime.c @@ -64,12 +64,12 @@ #include <openssl/x509v3.h> PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, - BIO *data, int flags) + BIO *data, int flags) { PKCS7 *p7; PKCS7_SIGNER_INFO *si; BIO *p7bio; - STACK *smcap; + STACK_OF(X509_ALGOR) *smcap; int i; if(!X509_check_private_key(signcert, pkey)) { @@ -109,7 +109,7 @@ PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, PKCS7_add_signed_attribute(si, NID_pkcs9_contentType, V_ASN1_OBJECT, OBJ_nid2obj(NID_pkcs7_data)); /* Add SMIMECapabilities */ - if(!(smcap = sk_new(NULL))) { + if(!(smcap = sk_X509_ALGOR_new(NULL))) { PKCS7err(PKCS7_F_PKCS7_SIGN,ERR_R_MALLOC_FAILURE); return NULL; } @@ -127,7 +127,7 @@ PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, PKCS7_simple_smimecap (smcap, NID_rc2_cbc, 40); #endif PKCS7_add_attrib_smimecap (si, smcap); - sk_pop_free(smcap, (void(*)(void *)) X509_ALGOR_free); + sk_X509_ALGOR_pop_free(smcap, X509_ALGOR_free); } if(flags & PKCS7_DETACHED)PKCS7_set_detached(p7, 1); |