82 |
|
SSL_CTX_set_session_cache_mode(ConfigServerInfo.tls_ctx.server_ctx, SSL_SESS_CACHE_OFF); |
83 |
|
SSL_CTX_set_cipher_list(ConfigServerInfo.tls_ctx.server_ctx, "EECDH+HIGH:EDH+HIGH:HIGH:!aNULL"); |
84 |
|
|
85 |
< |
#if OPENSSL_VERSION_NUMBER >= 0x009080FFL && !defined(OPENSSL_NO_ECDH) |
85 |
> |
#ifndef OPENSSL_NO_ECDH |
86 |
|
{ |
87 |
|
EC_KEY *key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); |
88 |
|
|
164 |
|
ilog(LOG_TYPE_IRCD, "Ignoring serverinfo::ssl_dh_param_file -- could not open/read Diffie-Hellman parameter file"); |
165 |
|
} |
166 |
|
|
167 |
< |
#if OPENSSL_VERSION_NUMBER >= 0x009080FFL && !defined(OPENSSL_NO_ECDH) |
167 |
> |
#ifndef OPENSSL_NO_ECDH |
168 |
|
if (ConfigServerInfo.ssl_dh_elliptic_curve) |
169 |
|
{ |
170 |
|
int nid = 0; |