# HG changeset patch # User Christian Hammond # Date 1062810535 0 # Node ID f9efcba2d02fe73f921f8025af4c4603766f13fe # Parent 424647996866409d6e0d55efab7f44eecf14dcb6 [gaim-migrate @ 7291] Added input watchers for the Mozilla NSS support. Should work. committer: Tailor Script diff -r 424647996866 -r f9efcba2d02f src/ssl-nss.c --- 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