mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-03 09:44:24 +03:00
fetch_curl_report_certs_upstream: Use new SSL_CERT_ERR_CERT_MISSING
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
6f105c41c2
commit
3a8317fddb
@ -482,7 +482,11 @@ fetch_curl_report_certs_upstream(struct curl_fetch_info *f)
|
|||||||
memset(ssl_certs, 0, sizeof(ssl_certs));
|
memset(ssl_certs, 0, sizeof(ssl_certs));
|
||||||
|
|
||||||
for (depth = 0; depth <= f->cert_depth; depth++) {
|
for (depth = 0; depth <= f->cert_depth; depth++) {
|
||||||
assert(certs[depth].cert != NULL);
|
if (certs[depth].cert == NULL) {
|
||||||
|
/* This certificate is missing, skip it */
|
||||||
|
ssl_certs[depth].err = SSL_CERT_ERR_CERT_MISSING;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
/* get certificate version */
|
/* get certificate version */
|
||||||
ssl_certs[depth].version = X509_get_version(certs[depth].cert);
|
ssl_certs[depth].version = X509_get_version(certs[depth].cert);
|
||||||
|
Loading…
Reference in New Issue
Block a user