Fix demo program.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 2 Apr 2009 17:39:25 +0000 (17:39 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 2 Apr 2009 17:39:25 +0000 (17:39 +0000)
demos/pkcs12/pkread.c

index 8e1b68631216e94830a791a0adaeaf425d286697..02e16cda2af5d281ef82a1b03ae086be30e93dba 100644 (file)
@@ -51,7 +51,7 @@ int main(int argc, char **argv)
                fprintf(fp, "***User Certificate***\n");
                PEM_write_X509_AUX(fp, cert);
        }
-       if (ca && sk_num(ca)) {
+       if (ca && sk_X509_num(ca)) {
                fprintf(fp, "***Other Certificates***\n");
                for (i = 0; i < sk_X509_num(ca); i++) 
                    PEM_write_X509_AUX(fp, sk_X509_value(ca, i));