Some adjusts to OpenSSL 1.1.1 with --api=1.1.0

This commit is contained in:
Bruno Silvestre
2019-10-13 22:10:03 -03:00
parent 3490d8d1c0
commit 8ef33e33cf
4 changed files with 25 additions and 17 deletions

View File

@ -614,7 +614,9 @@ static int set_curves_list(lua_State *L)
return 2;
}
#if defined(LIBRESSL_VERSION_NUMBER) || !defined(LSEC_API_OPENSSL_1_1_0)
(void)SSL_CTX_set_ecdh_auto(ctx, 1);
#endif
lua_pushboolean(L, 1);
return 1;