ssl expose public wsi->ssl getter
Signed-off-by: Denis Osvald <denis.osvald@sartura.hr>
This commit is contained in:
parent
1bc025cfa7
commit
bcce73201f
2 changed files with 19 additions and 0 deletions
|
@ -1248,6 +1248,14 @@ lws_is_ssl(struct lws *wsi)
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifdef LWS_OPENSSL_SUPPORT
|
||||
LWS_VISIBLE SSL*
|
||||
lws_get_ssl(struct lws *wsi)
|
||||
{
|
||||
return wsi->ssl;
|
||||
}
|
||||
#endif
|
||||
|
||||
LWS_VISIBLE int
|
||||
lws_partial_buffered(struct lws *wsi)
|
||||
{
|
||||
|
|
|
@ -3979,6 +3979,17 @@ lws_is_ssl(struct lws *wsi);
|
|||
*/
|
||||
LWS_VISIBLE LWS_EXTERN int
|
||||
lws_is_cgi(struct lws *wsi);
|
||||
|
||||
#ifdef LWS_OPENSSL_SUPPORT
|
||||
/**
|
||||
* lws_get_ssl() - Return wsi's SSL context structure
|
||||
* \param wsi: websocket connection
|
||||
*
|
||||
* Returns pointer to the SSL library's context structure
|
||||
*/
|
||||
LWS_VISIBLE LWS_EXTERN SSL*
|
||||
lws_get_ssl(struct lws *wsi);
|
||||
#endif
|
||||
///@}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue