mirror of
				https://github.com/brunoos/luasec.git
				synced 2025-10-31 18:35:33 +01:00 
			
		
		
		
	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:
		| @@ -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); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user