p7zip: assorted fixes
[oi-userland.git] / components / network / freeradius / patches / 01-openssl3.patch
blobc24c508b798fcd4f79e9aa12eaaa0bb5be658f6f
1 diff -wpruN --no-dereference '--exclude=*.orig' a~/src/main/tls.c a/src/main/tls.c
2 --- a~/src/main/tls.c 1970-01-01 00:00:00
3 +++ a/src/main/tls.c 1970-01-01 00:00:00
4 @@ -1824,7 +1824,7 @@ static int load_dh_params(SSL_CTX *ctx,
6 * Change suggested by @t8m
7 */
8 -#if OPENSSL_VERSION_NUMBER >= 0x10101000L
9 +#if (OPENSSL_VERSION_NUMBER >= 0x10101000L) && (OPENSSL_VERSION_NUMBER < 0x30000000L)
10 if (FIPS_mode() > 0) {
11 WARN(LOG_PREFIX ": Ignoring user-selected DH parameters in FIPS mode. Using defaults.");
12 file = NULL;