From: Sebastian B. <sb...@us...> - 2014-02-21 06:36:12
|
Update of /cvsroot/simplemail/simplemail/amiga-mui In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv25535/amiga-mui Modified Files: tcpip.c Log Message: Moved the ssl context initialization into the newly created platform independend file. Index: tcpip.c =================================================================== RCS file: /cvsroot/simplemail/simplemail/amiga-mui/tcpip.c,v retrieving revision 1.42 retrieving revision 1.43 diff -u -d -r1.42 -r1.43 --- tcpip.c 21 Feb 2014 06:33:34 -0000 1.42 +++ tcpip.c 21 Feb 2014 06:36:10 -0000 1.43 @@ -61,6 +61,7 @@ #include <proto/amissl.h> #endif +#include "ssl.h" #include "tcpip.h" #include "subthreads_amiga.h" @@ -215,19 +216,13 @@ TAG_DONE)) { #endif - SSLeay_add_ssl_algorithms(); - SSL_load_error_strings(); - - if ((thread->ssl_ctx = SSL_CTX_new(SSLv23_client_method()))) + if ((thread->ssl_ctx = ssl_init())) { - 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; - } + /* 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); |