diff options
author | Ben Laurie <ben@openssl.org> | 1999-05-31 21:00:25 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-05-31 21:00:25 +0000 |
commit | 6d114240b921edc9c1135568392199a652acd0db (patch) | |
tree | 9803be8834ce0ece90db3798ea9cf959c91107ed /apps | |
parent | 426edadf98dfa465329dd1501e83b0cb0be2facb (diff) | |
download | openssl-new-6d114240b921edc9c1135568392199a652acd0db.tar.gz |
stack.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/crl2p7.c | 6 | ||||
-rw-r--r-- | apps/pkcs7.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/apps/crl2p7.c b/apps/crl2p7.c index ba4eba16bf..f4b216f68b 100644 --- a/apps/crl2p7.c +++ b/apps/crl2p7.c @@ -92,7 +92,7 @@ int MAIN(int argc, char **argv) PKCS7_SIGNED *p7s = NULL; X509_CRL *crl=NULL; STACK *certflst=NULL; - STACK *crl_stack=NULL; + STACK_OF(X509_CRL) *crl_stack=NULL; STACK_OF(X509) *cert_stack=NULL; int ret=1,nocrl=0; @@ -213,11 +213,11 @@ bad: p7s->contents->type=OBJ_nid2obj(NID_pkcs7_data); if (!ASN1_INTEGER_set(p7s->version,1)) goto end; - if ((crl_stack=sk_new(NULL)) == NULL) goto end; + if ((crl_stack=sk_X509_CRL_new(NULL)) == NULL) goto end; p7s->crl=crl_stack; if (crl != NULL) { - sk_push(crl_stack,(char *)crl); + sk_X509_CRL_push(crl_stack,crl); crl=NULL; /* now part of p7 for Freeing */ } diff --git a/apps/pkcs7.c b/apps/pkcs7.c index 24b3e57882..9518983d5d 100644 --- a/apps/pkcs7.c +++ b/apps/pkcs7.c @@ -222,7 +222,7 @@ bad: if (print_certs) { STACK_OF(X509) *certs=NULL; - STACK *crls=NULL; + STACK_OF(X509_CRL) *crls=NULL; i=OBJ_obj2nid(p7->type); switch (i) @@ -266,9 +266,9 @@ bad: { X509_CRL *crl; - for (i=0; i<sk_num(crls); i++) + for (i=0; i<sk_X509_CRL_num(crls); i++) { - crl=(X509_CRL *)sk_value(crls,i); + crl=sk_X509_CRL_value(crls,i); X509_NAME_oneline(crl->crl->issuer,buf,256); BIO_puts(out,"issuer= "); |