Skip to content

Commit 7930446

Browse files
authored
feature: allow to be compiled with LibreSSL 3.0+ (#249)
1 parent a7193b1 commit 7930446

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ngx_stream_lua_ssl_certby.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,6 +1369,13 @@ int
13691369
ngx_stream_lua_ffi_ssl_verify_client(ngx_stream_lua_request_t *r,
13701370
void *ca_certs, int depth, char **err)
13711371
{
1372+
#ifdef LIBRESSL_VERSION_NUMBER
1373+
1374+
*err = "LibreSSL not supported";
1375+
return NGX_ERROR;
1376+
1377+
#else
1378+
13721379
ngx_stream_lua_ctx_t *ctx;
13731380
ngx_ssl_conn_t *ssl_conn;
13741381
ngx_stream_ssl_conf_t *sscf;
@@ -1487,6 +1494,7 @@ ngx_stream_lua_ffi_ssl_verify_client(ngx_stream_lua_request_t *r,
14871494
X509_STORE_free(ca_store);
14881495

14891496
return NGX_ERROR;
1497+
#endif
14901498
}
14911499

14921500

0 commit comments

Comments
 (0)