src: tidy-up conditions for CA bundle search

- delete redundant Schannel check.

- move `feature_ssl` check one level up from `FindWin32CACert()`.

- check `feature_ssl` early to skip a bunch of CA bundle search logic
  for no-ssl configurations.

Reviewed-by: Jay Satiro
Closes #14841
This commit is contained in:
Viktor Szakats 2024-09-10 03:23:33 +02:00
parent fb35a5fe2c
commit 8b42df3eb1
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
3 changed files with 22 additions and 30 deletions

View file

@ -60,7 +60,6 @@ char **__crt0_glob_function(char *arg);
#ifdef _WIN32
CURLcode FindWin32CACert(struct OperationConfig *config,
curl_sslbackend backend,
const TCHAR *bundle_file);
struct curl_slist *GetLoadedModulePaths(void);
CURLcode win32_init(void);