mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
Update to latest Csocket
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1335 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+5
-1
@@ -28,7 +28,7 @@
|
||||
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*
|
||||
* $Revision: 1.90 $
|
||||
* $Revision: 1.92 $
|
||||
*/
|
||||
|
||||
#include "Csocket.h"
|
||||
@@ -562,6 +562,7 @@ void Csock::Dereference()
|
||||
#endif /* HAVE_LIBSSL */
|
||||
|
||||
m_vcCrons.clear();
|
||||
Close( CLT_DEREFERENCE );
|
||||
}
|
||||
|
||||
void Csock::Copy( const Csock & cCopy )
|
||||
@@ -1029,6 +1030,8 @@ bool Csock::SSLClientSetup()
|
||||
if ( !m_ssl_ctx )
|
||||
return( false );
|
||||
|
||||
SSL_CTX_set_default_verify_paths( m_ssl_ctx );
|
||||
|
||||
if ( !m_sPemFile.empty() )
|
||||
{ // are we sending a client cerificate ?
|
||||
SSL_CTX_set_default_passwd_cb( m_ssl_ctx, PemPassCB );
|
||||
@@ -1117,6 +1120,7 @@ bool Csock::SSLServerSetup()
|
||||
m_ssl_ctx = SSL_CTX_new ( m_ssl_method );
|
||||
if ( !m_ssl_ctx )
|
||||
return( false );
|
||||
SSL_CTX_set_default_verify_paths( m_ssl_ctx );
|
||||
|
||||
// set the pemfile password
|
||||
SSL_CTX_set_default_passwd_cb( m_ssl_ctx, PemPassCB );
|
||||
|
||||
Reference in New Issue
Block a user