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:
parent
9a184e0bb1
commit
0211e420ed
@ -420,7 +420,7 @@ int cert_stuff(struct connectdata *conn,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* Set Certificate Verification chain */
|
/* Set Certificate Verification chain */
|
||||||
if (ca && sk_num(ca)) {
|
if (ca && sk_X509_num(ca)) {
|
||||||
for (i = 0; i < sk_X509_num(ca); i++) {
|
for (i = 0; i < sk_X509_num(ca); i++) {
|
||||||
if (!SSL_CTX_add_extra_chain_cert(ctx,sk_X509_value(ca, i))) {
|
if (!SSL_CTX_add_extra_chain_cert(ctx,sk_X509_value(ca, i))) {
|
||||||
failf(data, "cannot add certificate to certificate chain");
|
failf(data, "cannot add certificate to certificate chain");
|
||||||
|
Loading…
Reference in New Issue
Block a user