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:
Jay Satiro 2022-03-04 18:34:06 -05:00
parent c07b95e280
commit 522e46c973

View File

@ -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