summaryrefslogtreecommitdiffstats
path: root/apps/nseq.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-05-30 15:40:21 +0000
committerBen Laurie <ben@openssl.org>1999-05-30 15:40:21 +0000
commite5e932d212aea2f9acceb4779b44f123050347a7 (patch)
tree377ef0fda10c61269a77f7a6675068895be319ef /apps/nseq.c
parentee8ba0b26c101262521a0bc10233cdd5a136d126 (diff)
Another safe stack.
Diffstat (limited to 'apps/nseq.c')
-rw-r--r--apps/nseq.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/nseq.c b/apps/nseq.c
index 5e74082cad..2fdba2d6b9 100644
--- a/apps/nseq.c
+++ b/apps/nseq.c
@@ -123,11 +123,11 @@ int MAIN(int argc, char **argv)
if (toseq) {
seq = NETSCAPE_CERT_SEQUENCE_new();
- seq->certs = sk_new(NULL);
+ seq->certs = sk_X509_new(NULL);
while((x509 = PEM_read_bio_X509(in, NULL, NULL)))
- sk_push(seq->certs, (char *)x509);
+ sk_X509_push(seq->certs,x509);
- if(!sk_num(seq->certs))
+ if(!sk_X509_num(seq->certs))
{
BIO_printf (bio_err, "Error reading certs file %s\n", infile);
ERR_print_errors(bio_err);
@@ -144,8 +144,8 @@ int MAIN(int argc, char **argv)
goto end;
}
- for(i = 0; i < sk_num(seq->certs); i++) {
- x509 = (X509 *) sk_value(seq->certs, i);
+ for(i = 0; i < sk_X509_num(seq->certs); i++) {
+ x509 = sk_X509_value(seq->certs, i);
dump_cert_text(out, x509);
PEM_write_bio_X509(out, x509);
}