From: Sebastian B. <sb...@us...> - 2014-02-21 06:33:36
|
Update of /cvsroot/simplemail/simplemail/amiga-mui In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv25205/amiga-mui Modified Files: tcpip.c Log Message: Initialize the context with default verify paths. Index: tcpip.c =================================================================== RCS file: /cvsroot/simplemail/simplemail/amiga-mui/tcpip.c,v retrieving revision 1.41 retrieving revision 1.42 diff -u -d -r1.41 -r1.42 --- tcpip.c 10 Dec 2011 14:17:36 -0000 1.41 +++ tcpip.c 21 Feb 2014 06:33:34 -0000 1.42 @@ -220,11 +220,14 @@ if ((thread->ssl_ctx = SSL_CTX_new(SSLv23_client_method()))) { - /* Everything is ok */ - thread->ssllib_opencnt = 1; - SM_DEBUGF(10,("AmiSSL opened %ld times\n",thread->ssllib_opencnt)); - SM_RETURN(1,"%ld"); - return 1; + if (SSL_CTX_set_default_verify_paths(ssl_context())) + { + /* Everything is ok */ + thread->ssllib_opencnt = 1; + SM_DEBUGF(10,("AmiSSL opened %ld times\n",thread->ssllib_opencnt)); + SM_RETURN(1,"%ld"); + return 1; + } } #ifdef USE_AMISSL3 CleanupAmiSSL(TAG_DONE); |