libwebsockets
libwebsockets copied to clipboard
adjust ssl verification and options after context change
Fix for a well-known glitch in OpenSSL: when reassigning SSL to a different SSL_CTX certificates gets updated from a new context, but verification mode/depth and options are not updated.
Based on nginx implementation (https://mailman.nginx.org/pipermail/nginx-devel/2011-February/000728.html).