From: Dr. Stephen Henson Date: Thu, 2 Apr 2009 17:39:25 +0000 (+0000) Subject: Fix demo program. X-Git-Tag: OpenSSL_1_0_0-beta2~53 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=77e749405da74776f27d0bda28b512ae4624a55b;p=oweals%2Fopenssl.git Fix demo program. --- diff --git a/demos/pkcs12/pkread.c b/demos/pkcs12/pkread.c index 8e1b686312..02e16cda2a 100644 --- a/demos/pkcs12/pkread.c +++ b/demos/pkcs12/pkread.c @@ -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));