Skip to content

Commit d14f90e

Browse files
ghedoagentzh
authored andcommitted
bugfix: ssl: do not access SSL struct directly for tlsext_status_type.
In OpenSSL 1.1.0 it was made opaque, and a getter function was added.
1 parent 2311024 commit d14f90e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ngx_http_lua_ssl_ocsp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,11 @@ ngx_http_lua_ffi_ssl_set_ocsp_status_resp(ngx_http_request_t *r,
468468
return NGX_ERROR;
469469
}
470470

471+
#ifdef SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE
472+
if (SSL_get_tlsext_status_type(ssl_conn) == -1) {
473+
#else
471474
if (ssl_conn->tlsext_status_type == -1) {
475+
#endif
472476
dd("no ocsp status req from client");
473477
return NGX_DECLINED;
474478
}

0 commit comments

Comments
 (0)