mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-30 00:34:03 -05:00
Fix #ifdef check for older openssl versions
Small compile fix for older versions of openssl that do not have SHA256 support and hence do not define OPENSSL_NO_SHA256.
This commit is contained in:
parent
0b04889f0d
commit
4bb3377bc5
@ -716,7 +716,7 @@ void * tls_init(const struct tls_config *conf)
|
|||||||
#endif /* CONFIG_FIPS */
|
#endif /* CONFIG_FIPS */
|
||||||
SSL_load_error_strings();
|
SSL_load_error_strings();
|
||||||
SSL_library_init();
|
SSL_library_init();
|
||||||
#ifndef OPENSSL_NO_SHA256
|
#if (OPENSSL_VERSION_NUMBER >= 0x0090800fL) && !defined(OPENSSL_NO_SHA256)
|
||||||
EVP_add_digest(EVP_sha256());
|
EVP_add_digest(EVP_sha256());
|
||||||
#endif /* OPENSSL_NO_SHA256 */
|
#endif /* OPENSSL_NO_SHA256 */
|
||||||
/* TODO: if /dev/urandom is available, PRNG is seeded
|
/* TODO: if /dev/urandom is available, PRNG is seeded
|
||||||
|
Loading…
Reference in New Issue
Block a user