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 8df9125 commit ee2422fCopy full SHA for ee2422f
src/ngx_stream_lua_socket_tcp.c
@@ -1793,8 +1793,12 @@ ngx_stream_lua_socket_tcp_sslhandshake(lua_State *L)
1793
if (n >= 5) {
1794
if (lua_toboolean(L, 5)) {
1795
#ifdef NGX_STREAM_LUA_USE_OCSP
1796
- SSL_set_tlsext_status_type(c->ssl->connection,
1797
- TLSEXT_STATUSTYPE_ocsp);
+ if (SSL_set_tlsext_status_type(c->ssl->connection,
+ TLSEXT_STATUSTYPE_ocsp) != 1)
1798
+ {
1799
+ return luaL_error(L,
1800
+ "failed to enable OCSP stapling");
1801
+ }
1802
#else
1803
return luaL_error(L, "no OCSP support");
1804
#endif
0 commit comments