Use current ssl_verify value in /connect
authorMikael Berthe <mikael@lilotux.net>
Sat, 02 Sep 2006 14:54:12 +0200
changeset 955 6be62425dc38
parent 954 27a7b2f986f5
child 956 819396bebdf5
Use current ssl_verify value in /connect In delsock(), free the SSL_CTX object and reset the ctx pointer so that a full initialization occurs the next time init() is called.
mcabber/connwrap/connwrap.c
mcabber/src/main.c
--- a/mcabber/connwrap/connwrap.c	Sat Sep 02 10:01:25 2006 +0200
+++ b/mcabber/connwrap/connwrap.c	Sat Sep 02 14:54:12 2006 +0200
@@ -180,6 +180,9 @@
 
     free(socks);
 
+    SSL_CTX_free(ctx);
+    ctx = 0;
+
     socks = nsocks;
     sockcount = nsockcount;
 }
--- a/mcabber/src/main.c	Sat Sep 02 10:01:25 2006 +0200
+++ b/mcabber/src/main.c	Sat Sep 02 14:54:12 2006 +0200
@@ -106,7 +106,7 @@
 #if !defined(HAVE_OPENSSL) && !defined(HAVE_GNUTLS)
   if (ssl || sslvopt || cafile || capath || ciphers) {
     scr_LogPrint(LPRINT_LOGNORM,
-                 "** Warning: SSL is NOT available, ignoring ssl-related setting");
+             "** Warning: SSL is NOT available, ignoring ssl-related setting");
     ssl = sslverify = 0;
     cafile = capath = ciphers = NULL;
   }