Skip to content

Commit 1293aae

Browse files
bugfix: undefined symbol SSL_client_hello_get0_ext when linking against libressl.
1 parent 6477a7b commit 1293aae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ngx_http_lua_ssl_client_helloby.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,10 @@ int
541541
ngx_http_lua_ffi_ssl_get_client_hello_server_name(ngx_http_request_t *r,
542542
const char **name, size_t *namelen, char **err)
543543
{
544+
#ifdef LIBRESSL_VERSION_NUMBER
545+
*err = "LibreSSL does not support by ssl_client_hello_by_lua*";
546+
return NGX_ERROR;
547+
#else
544548
ngx_ssl_conn_t *ssl_conn;
545549
#ifdef SSL_ERROR_WANT_CLIENT_HELLO_CB
546550
const unsigned char *p;
@@ -619,6 +623,7 @@ ngx_http_lua_ffi_ssl_get_client_hello_server_name(ngx_http_request_t *r,
619623
*err = "no TLS extension support";
620624
return NGX_ERROR;
621625
#endif
626+
#endif /* LIBRESSL_VERSION_NUMBER */
622627
}
623628

624629

0 commit comments

Comments
 (0)