Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
openssl: fix Curl_ossl_seed()'s fallback to a custom seeding of PRNG #1620
Fix Curl_ossl_seed fallback to a custom seeding of PRNG that may happen for example on Windows platform.
The correction includes numerous fixes:
As a result of these changes CURL is now able to connect to https server when compiled with < OpenSSL 1.1.0+.
openssl: fix return value of Curl_ossl_seed() by returning CURLE_OK on success instead of nread bytes because function wants to return CURLcode and not bytes openssl: fix Curl_ossl_seed() returning error if RAND_file_name() is not supported by platform, instead check rand_enough() and succeed with CURLE_OK if PRNG is happy with a generated randomness
I recommend trying
Cleaned source according
Agree, removed that redundant part. In case engine is not satisfied with randomness (