mirror of
https://github.com/curl/curl.git
synced 2026-08-02 07:30:29 +03:00
set ssl backend before global init, as documented
This commit is contained in:
parent
23b180da59
commit
00f5dae81a
1 changed files with 7 additions and 6 deletions
|
|
@ -348,18 +348,19 @@ static CURLcode t758_one(const char *URL, int timer_fail_at,
|
|||
t758_msg("start");
|
||||
start_test_timing();
|
||||
|
||||
curl_global_trace("all");
|
||||
|
||||
res_global_init(CURL_GLOBAL_ALL);
|
||||
if(res != CURLE_OK)
|
||||
return res;
|
||||
|
||||
if(curl_global_sslset(CURLSSLBACKEND_OPENSSL, NULL, NULL) != CURLSSLSET_OK) {
|
||||
t758_msg("could not set OpenSSL as backend");
|
||||
res = CURLE_FAILED_INIT;
|
||||
return res;
|
||||
}
|
||||
|
||||
res_global_init(CURL_GLOBAL_ALL);
|
||||
if(res != CURLE_OK)
|
||||
return res;
|
||||
|
||||
curl_global_trace("all");
|
||||
|
||||
|
||||
easy_init(curl);
|
||||
debug_config.nohex = TRUE;
|
||||
debug_config.tracetime = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue