diff options
Diffstat (limited to 'crypto/pkcs7')
-rw-r--r-- | crypto/pkcs7/Makefile.ssl | 20 | ||||
-rw-r--r-- | crypto/pkcs7/pk7_doit.c | 3 | ||||
-rw-r--r-- | crypto/pkcs7/pk7_lib.c | 6 | ||||
-rw-r--r-- | crypto/pkcs7/pkcs7.h | 4 |
4 files changed, 18 insertions, 15 deletions
diff --git a/crypto/pkcs7/Makefile.ssl b/crypto/pkcs7/Makefile.ssl index 1a38f10f37..d5331bac76 100644 --- a/crypto/pkcs7/Makefile.ssl +++ b/crypto/pkcs7/Makefile.ssl @@ -93,9 +93,10 @@ pk7_doit.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h pk7_doit.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h pk7_doit.o: ../../include/mdc2.h ../../include/objects.h ../../include/rand.h pk7_doit.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h -pk7_doit.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h -pk7_doit.o: ../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h -pk7_doit.o: ../cryptlib.h ../crypto.h ../opensslv.h pkcs7.h +pk7_doit.o: ../../include/ripemd.h ../../include/rsa.h +pk7_doit.o: ../../include/safestack.h ../../include/sha.h ../../include/stack.h +pk7_doit.o: ../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h +pk7_doit.o: ../crypto.h ../opensslv.h pkcs7.h pk7_lib.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h pk7_lib.o: ../../include/bn.h ../../include/buffer.h ../../include/cast.h pk7_lib.o: ../../include/des.h ../../include/dh.h ../../include/dsa.h @@ -103,15 +104,16 @@ pk7_lib.o: ../../include/e_os.h ../../include/err.h ../../include/evp.h pk7_lib.o: ../../include/idea.h ../../include/md2.h ../../include/md5.h pk7_lib.o: ../../include/mdc2.h ../../include/objects.h ../../include/rc2.h pk7_lib.o: ../../include/rc4.h ../../include/rc5.h ../../include/ripemd.h -pk7_lib.o: ../../include/rsa.h ../../include/sha.h ../../include/stack.h -pk7_lib.o: ../../include/x509.h ../../include/x509_vfy.h ../cryptlib.h -pk7_lib.o: ../crypto.h ../opensslv.h pkcs7.h +pk7_lib.o: ../../include/rsa.h ../../include/safestack.h ../../include/sha.h +pk7_lib.o: ../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h +pk7_lib.o: ../cryptlib.h ../crypto.h ../opensslv.h pkcs7.h pkcs7err.o: ../../include/asn1.h ../../include/bio.h ../../include/blowfish.h pkcs7err.o: ../../include/bn.h ../../include/cast.h ../../include/des.h pkcs7err.o: ../../include/dh.h ../../include/dsa.h ../../include/err.h pkcs7err.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h pkcs7err.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h pkcs7err.o: ../../include/rc2.h ../../include/rc4.h ../../include/rc5.h -pkcs7err.o: ../../include/ripemd.h ../../include/rsa.h ../../include/sha.h -pkcs7err.o: ../../include/stack.h ../../include/x509.h ../../include/x509_vfy.h -pkcs7err.o: ../crypto.h ../opensslv.h pkcs7.h +pkcs7err.o: ../../include/ripemd.h ../../include/rsa.h +pkcs7err.o: ../../include/safestack.h ../../include/sha.h ../../include/stack.h +pkcs7err.o: ../../include/x509.h ../../include/x509_vfy.h ../crypto.h +pkcs7err.o: ../opensslv.h pkcs7.h diff --git a/crypto/pkcs7/pk7_doit.c b/crypto/pkcs7/pk7_doit.c index 88229c08ba..1b8150874a 100644 --- a/crypto/pkcs7/pk7_doit.c +++ b/crypto/pkcs7/pk7_doit.c @@ -650,7 +650,8 @@ PKCS7_SIGNER_INFO *si; PKCS7_ISSUER_AND_SERIAL *ias; int ret=0,i; int md_type; - STACK *sk,*cert; + STACK *sk; + STACK_OF(X509) *cert; BIO *btmp; X509 *x509; EVP_PKEY *pkey; diff --git a/crypto/pkcs7/pk7_lib.c b/crypto/pkcs7/pk7_lib.c index 7534f4c2a5..d69f536ae8 100644 --- a/crypto/pkcs7/pk7_lib.c +++ b/crypto/pkcs7/pk7_lib.c @@ -250,7 +250,7 @@ PKCS7 *p7; X509 *x509; { int i; - STACK **sk; + STACK_OF(X509) **sk; i=OBJ_obj2nid(p7->type); switch (i) @@ -267,9 +267,9 @@ X509 *x509; } if (*sk == NULL) - *sk=sk_new_null(); + *sk=sk_X509_new_null(); CRYPTO_add(&x509->references,1,CRYPTO_LOCK_X509); - sk_push(*sk,(char *)x509); + sk_X509_push(*sk,x509); return(1); } diff --git a/crypto/pkcs7/pkcs7.h b/crypto/pkcs7/pkcs7.h index 6fcb63bfaf..6038aacd6b 100644 --- a/crypto/pkcs7/pkcs7.h +++ b/crypto/pkcs7/pkcs7.h @@ -106,7 +106,7 @@ typedef struct pkcs7_signed_st { ASN1_INTEGER *version; /* version 1 */ STACK /* X509_ALGOR's */ *md_algs; /* md used */ - STACK /* X509 */ *cert; /* [ 0 ] */ + STACK_OF(X509) *cert; /* [ 0 ] */ STACK /* X509_CRL */ *crl; /* [ 1 ] */ STACK /* PKCS7_SIGNER_INFO */ *signer_info; @@ -133,7 +133,7 @@ typedef struct pkcs7_signedandenveloped_st { ASN1_INTEGER *version; /* version 1 */ STACK /* X509_ALGOR's */ *md_algs; /* md used */ - STACK /* X509 */ *cert; /* [ 0 ] */ + STACK_OF(X509) *cert; /* [ 0 ] */ STACK /* X509_CRL */ *crl; /* [ 1 ] */ STACK /* PKCS7_SIGNER_INFO */ *signer_info; |