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:
psychon
2009-01-18 10:32:16 +00:00
parent 3a2772eafa
commit 9210bdc97e
2 changed files with 18 additions and 9 deletions
+5 -1
View File
@@ -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 );