Skip to content

Commit 429417c

Browse files
authored
bugfix: we didn't exclude the ssl_verify_callback when compiling with LibreSSL (#253)
It leads to 'error: ‘ngx_stream_lua_ssl_verify_callback’ defined but not used [-Werror=unused-function]' error.
1 parent dc3a1bf commit 429417c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ngx_stream_lua_ssl_certby.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,6 +1352,7 @@ ngx_stream_lua_ffi_set_priv_key(ngx_stream_lua_request_t *r,
13521352
}
13531353

13541354

1355+
#ifndef LIBRESSL_VERSION_NUMBER
13551356
static int
13561357
ngx_stream_lua_ssl_verify_callback(int ok, X509_STORE_CTX *x509_store)
13571358
{
@@ -1363,6 +1364,7 @@ ngx_stream_lua_ssl_verify_callback(int ok, X509_STORE_CTX *x509_store)
13631364
*/
13641365
return 1;
13651366
}
1367+
#endif
13661368

13671369

13681370
int

0 commit comments

Comments
 (0)