We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c205ed commit 581d966Copy full SHA for 581d966
src/ngx_stream_lua_socket_tcp.c
@@ -1792,8 +1792,10 @@ ngx_stream_lua_socket_tcp_sslhandshake(lua_State *L)
1792
if (n >= 5) {
1793
if (lua_toboolean(L, 5)) {
1794
#ifdef NGX_STREAM_LUA_USE_OCSP
1795
- SSL_set_tlsext_status_type(c->ssl->connection,
1796
- TLSEXT_STATUSTYPE_ocsp);
+ if (SSL_set_tlsext_status_type(c->ssl->connection,
+ TLSEXT_STATUSTYPE_ocsp) != 1) {
1797
+ return luaL_error(L, "failed to enable OCSP stapling");
1798
+ }
1799
#else
1800
return luaL_error(L, "no OCSP support");
1801
#endif
0 commit comments