Skip to content

Commit

Permalink
feature: Add api to fetch raw nginx ssl pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
james-callahan committed Mar 29, 2018
1 parent 91a0ad2 commit 916a243
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/ngx_http_lua_ssl_certby.c
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,17 @@ ngx_http_lua_ffi_set_priv_key(ngx_http_request_t *r,
}


ngx_ssl_conn_t **
ngx_http_lua_ffi_get_ssl_pointer(ngx_http_request_t *r)
{
if (r->connection == NULL || r->connection->ssl == NULL) {
return NULL;
}

return r->connection->ssl->connection;
}


#endif /* NGX_LUA_NO_FFI_API */


Expand Down

0 comments on commit 916a243

Please sign in to comment.