mirror of
https://github.com/curl/curl.git
synced 2026-04-28 03:22:14 +03:00
unit1610: init SSL library before calling SHA256 functions
The SSL library must be initialized (via global initialization) because libcurl's SHA256 functions may call SHA256 functions in the SSL library. Reported-by: Gisle Vanem Fixes https://github.com/curl/curl/issues/8538 Closes https://github.com/curl/curl/pull/8540
This commit is contained in:
parent
c07b95e280
commit
522e46c973
1 changed files with 4 additions and 2 deletions
|
|
@ -25,12 +25,14 @@
|
|||
|
||||
static CURLcode unit_setup(void)
|
||||
{
|
||||
return CURLE_OK;
|
||||
int res = CURLE_OK;
|
||||
global_init(CURL_GLOBAL_ALL);
|
||||
return res;
|
||||
}
|
||||
|
||||
static void unit_stop(void)
|
||||
{
|
||||
|
||||
curl_global_cleanup();
|
||||
}
|
||||
|
||||
UNITTEST_START
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue