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:
parent
78f33d362c
commit
ef1569e24c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user