Skip to content

Commit 39ffaf1

Browse files
bugfix: fix the compatibility issues.
1 parent 1185080 commit 39ffaf1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/ngx_stream_lua_ssl_certby.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,9 @@ ngx_stream_lua_ffi_req_shared_ssl_ciphers(ngx_stream_lua_request_t *r,
10001000

10011001
*err = "BoringSSL is not supported for SSL cipher operations";
10021002
return NGX_ERROR;
1003-
1003+
#elif OPENSSL_VERSION_NUMBER < 0x101010afL
1004+
*err = "OpenSSL < 1.1.1a is not supported for SSL cipher operations";
1005+
return NGX_ERROR;
10041006
#else
10051007
ngx_ssl_conn_t *ssl_conn;
10061008
STACK_OF(SSL_CIPHER) *sk, *ck;

src/ngx_stream_lua_ssl_client_helloby.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,14 @@ ngx_stream_lua_ssl_client_hello_handler(ngx_ssl_conn_t *ssl_conn,
219219
}
220220

221221
#if (nginx_version > 1029001)
222+
#ifdef SSL_CLIENT_HELLO_SUCCESS
222223
/* see commit 0373fe5d98c1515640 for more details */
223224
rc = ngx_ssl_client_hello_callback(ssl_conn, al, arg);
224225

225226
if (rc == 0) {
226227
return rc;
227228
}
229+
#endif
228230
#endif
229231

230232
dd("first time");

0 commit comments

Comments
 (0)