mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
keyserver: Allow use of cURL's default CA store.
* keyserver/gpgkeys_curl.c (main): Set CURLOPT_CAINFO only if a file has been given. * keyserver/gpgkeys_hkp.c (main): Ditto. -- GnuPG-bug-id: 1542 Signed-off-by: Werner Koch <wk@gnupg.org> (cherry picked from commit e957b9b3f408491f36660499b215aebcf2633a95)
This commit is contained in:
parent
f10b184e48
commit
69088ac76f
@ -305,6 +305,7 @@ main(int argc,char *argv[])
|
||||
}
|
||||
|
||||
curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,(long)opt->flags.check_cert);
|
||||
if (opt->ca_cert_file)
|
||||
curl_easy_setopt (curl, CURLOPT_CAINFO, opt->ca_cert_file);
|
||||
|
||||
/* Avoid caches to get the most recent copy of the key. This is bug
|
||||
|
@ -921,6 +921,7 @@ main(int argc,char *argv[])
|
||||
curl_easy_setopt(curl,CURLOPT_USERPWD,opt->auth);
|
||||
|
||||
curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,(long)opt->flags.check_cert);
|
||||
if (opt->ca_cert_file)
|
||||
curl_easy_setopt (curl, CURLOPT_CAINFO, opt->ca_cert_file);
|
||||
|
||||
/* Avoid caches to get the most recent copy of the key. This is bug
|
||||
|
Loading…
x
Reference in New Issue
Block a user