1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[dos] Check env CURL_CA_BUNDLE also for non-curl code path

This commit is contained in:
Witold Filipczyk 2023-11-10 09:39:59 +01:00
parent 78f33d362c
commit ef1569e24c

View File

@ -95,7 +95,16 @@ static int
ssl_set_private_paths(SSL_CTX *ctx)
{
char *path, *c;
char *bundle = getenv("CURL_CA_BUNDLE");
int r;
if (bundle) {
r = SSL_CTX_load_verify_locations(ctx, bundle, NULL);
if (r) {
return 0;
}
}
path = stracpy(program.path);
if (!path) {