changeset 955:6be62425dc38

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.
author Mikael Berthe <mikael@lilotux.net>
date Sat, 02 Sep 2006 14:54:12 +0200
parents 27a7b2f986f5
children 819396bebdf5
files mcabber/connwrap/connwrap.c mcabber/src/main.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
   }