changeset 6759:f9efcba2d02f

[gaim-migrate @ 7291] Added input watchers for the Mozilla NSS support. Should work. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 06 Sep 2003 01:08:55 +0000
parents 424647996866
children e7e21e5d1d16
files src/ssl-nss.c
diffstat 1 files changed, 6 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/ssl-nss.c	Sat Sep 06 00:47:24 2003 +0000
+++ b/src/ssl-nss.c	Sat Sep 06 01:08:55 2003 +0000
@@ -121,6 +121,7 @@
 input_func(gpointer data, gint source, GaimInputCondition cond)
 {
 	GaimSslConnection *gsc = (GaimSslConnection *)data;
+#if 0
 	GaimSslNssData *nss_data = GAIM_SSL_NSS_DATA(gsc);
 	char *cp, *ip, *sp;
 	int op, kp0, kp1;
@@ -138,6 +139,7 @@
 	PR_Free(cp);
 	PR_Free(ip);
 	PR_Free(sp);
+#endif
 
 	gsc->input_func(gsc->user_data, gsc, cond);
 }
@@ -220,17 +222,14 @@
 	{
 		gaim_debug_error("nss", "Handshake failed\n");
 
-		gaim_ssl_close((GaimSslConnection *)gsc);
+		gaim_ssl_close(gsc);
 
 		return;
 	}
 
-#if 0
-	gsc->input_func(gsc->user_data, (GaimSslConnection *)gsc,
-						 cond);
-#endif
-
-	input_func(gsc, source, cond);
+	gsc->inpa = gaim_input_add(gsc->fd,
+							   GAIM_INPUT_READ | GAIM_INPUT_WRITE,
+							   input_func, gsc);
 }
 
 static void