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 8e1b686..02e16cd 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));