[Libwebsockets] couple questions about SSL and multithreading
andy at warmcat.com
Thu Nov 17 00:24:41 CET 2016
On Wed, 2016-11-16 at 23:18 +0000, Chang, Victor wrote:
> > > 2) Is it possible to access openssl SSL_CTX or SSL objects? I
> see a
> > > few LWS_CALLBACK_* that make SSL_CTX available. Are there other
> > > to access them?
> > Not really, lws wants to wrap the SSL library (which may not be
> > openssl...) as much as possible.
> > It can be made available by adding an API. But it'd be interesting
> > know what you want to do with it outside the places it's already
> > available and if that should be wrapped somehow instead.
> For this project, the websocket server will periodically
> check to see if there’s a new certificate, and if there is,
> it will dynamically update the certificate without downtime.
Nice. Well if you wanted to do it in the library, as a contribution
it'd be welcome.
If it's secret source, a patch to add some little accessor APIs to
enable it would also be welcome.
More information about the Libwebsockets