diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-07-27 23:10:00 +0200 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-07-27 23:10:00 +0200 |
commit | c869da8839ef5af9df5a4d98f518b079240a0d4b (patch) | |
tree | 4993ede240e5c1851ad9c32f304ee9f650193173 /apps/crl2p7.c | |
parent | Fix warnings. (diff) | |
download | openssl-c869da8839ef5af9df5a4d98f518b079240a0d4b.tar.xz openssl-c869da8839ef5af9df5a4d98f518b079240a0d4b.zip |
Update from 1.0.0-stable
Diffstat (limited to 'apps/crl2p7.c')
-rw-r--r-- | apps/crl2p7.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/crl2p7.c b/apps/crl2p7.c index 194971d5d9..bbc83774db 100644 --- a/apps/crl2p7.c +++ b/apps/crl2p7.c @@ -92,7 +92,7 @@ int MAIN(int argc, char **argv) PKCS7 *p7 = NULL; PKCS7_SIGNED *p7s = NULL; X509_CRL *crl=NULL; - STACK_OF(STRING) *certflst=NULL; + STACK_OF(OPENSSL_STRING) *certflst=NULL; STACK_OF(X509_CRL) *crl_stack=NULL; STACK_OF(X509) *cert_stack=NULL; int ret=1,nocrl=0; @@ -140,8 +140,8 @@ int MAIN(int argc, char **argv) else if (strcmp(*argv,"-certfile") == 0) { if (--argc < 1) goto bad; - if(!certflst) certflst = sk_STRING_new_null(); - sk_STRING_push(certflst,*(++argv)); + if(!certflst) certflst = sk_OPENSSL_STRING_new_null(); + sk_OPENSSL_STRING_push(certflst,*(++argv)); } else { @@ -226,8 +226,8 @@ bad: if ((cert_stack=sk_X509_new_null()) == NULL) goto end; p7s->cert=cert_stack; - if(certflst) for(i = 0; i < sk_STRING_num(certflst); i++) { - certfile = sk_STRING_value(certflst, i); + if(certflst) for(i = 0; i < sk_OPENSSL_STRING_num(certflst); i++) { + certfile = sk_OPENSSL_STRING_value(certflst, i); if (add_certs_from_file(cert_stack,certfile) < 0) { BIO_printf(bio_err, "error loading certificates\n"); @@ -236,7 +236,7 @@ bad: } } - sk_STRING_free(certflst); + sk_OPENSSL_STRING_free(certflst); if (outfile == NULL) { |