Enable curve negotiation with #ifdef SSL_CTX_set1_curves_list

One of currently three definitions in the wild that indicate support for
SSL_CTX_set1_curves_list().
This commit is contained in:
W-Mark Kubacki 2016-05-13 19:28:55 +02:00
parent 231563682a
commit 622ef3d6a6
No known key found for this signature in database
GPG Key ID: 66E39DC4DBF75E9E

View File

@ -577,7 +577,7 @@ static int set_curve(lua_State *L)
SSL_CTX_set_options(ctx, SSL_OP_SINGLE_ECDH_USE); SSL_CTX_set_options(ctx, SSL_OP_SINGLE_ECDH_USE);
#if defined(SSL_CTRL_SET_ECDH_AUTO) || defined(SSL_CTRL_SET_CURVES_LIST) #if defined(SSL_CTRL_SET_ECDH_AUTO) || defined(SSL_CTRL_SET_CURVES_LIST) || defined(SSL_CTX_set1_curves_list)
if (SSL_CTX_set1_curves_list(ctx, str) != 1) { if (SSL_CTX_set1_curves_list(ctx, str) != 1) {
lua_pushboolean(L, 0); lua_pushboolean(L, 0);
lua_pushfstring(L, "unknown elliptic curve in \"%s\"", str); lua_pushfstring(L, "unknown elliptic curve in \"%s\"", str);