Skip to content

Commit bdd48a1

Browse files
authored
bugfix: we didn't exclude the ssl_verify_callback when compiling with LibreSSL (#1894)
1 parent 223139d commit bdd48a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ngx_http_lua_ssl_certby.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,6 +1333,7 @@ ngx_http_lua_ffi_set_priv_key(ngx_http_request_t *r,
13331333
}
13341334

13351335

1336+
#ifndef LIBRESSL_VERSION_NUMBER
13361337
static int
13371338
ngx_http_lua_ssl_verify_callback(int ok, X509_STORE_CTX *x509_store)
13381339
{
@@ -1344,6 +1345,7 @@ ngx_http_lua_ssl_verify_callback(int ok, X509_STORE_CTX *x509_store)
13441345
*/
13451346
return 1;
13461347
}
1348+
#endif
13471349

13481350

13491351
int

0 commit comments

Comments
 (0)