1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-12 04:25:08 -05:00

fix compiler warning: passing arg 1 of `sk_num' from incompatible pointer type

This commit is contained in:
Yang Tse 2009-04-03 12:08:32 +00:00
parent 9a184e0bb1
commit 0211e420ed

View File

@ -420,7 +420,7 @@ int cert_stuff(struct connectdata *conn,
return 0;
}
/* Set Certificate Verification chain */
if (ca && sk_num(ca)) {
if (ca && sk_X509_num(ca)) {
for (i = 0; i < sk_X509_num(ca); i++) {
if (!SSL_CTX_add_extra_chain_cert(ctx,sk_X509_value(ca, i))) {
failf(data, "cannot add certificate to certificate chain");