aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-04-17 10:25:16 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-04-17 10:25:16 +0200
commit6e62132fd4433e48ca85ee8ffcc6e848acb2547e (patch)
tree579cac0ffae075c0962a3482187ed778f7f2cb81
parent5aa9551e1909e076edf733697f77bb0dc7a7ddde (diff)
Fixed ssl_nss.c (although it still needs some non-blocking I/O changes).
-rw-r--r--protocols/ssl_nss.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/protocols/ssl_nss.c b/protocols/ssl_nss.c
index dfd32622..00d32834 100644
--- a/protocols/ssl_nss.c
+++ b/protocols/ssl_nss.c
@@ -121,10 +121,10 @@ static void ssl_connected( gpointer data, gint source, GaimInputCondition cond )
if( source == -1 )
goto ssl_connected_failure;
-
-
-
+ /* Until we find out how to handle non-blocking I/O with NSS... */
+ sock_make_blocking( conn->fd );
+
conn->prfd = SSL_ImportFD(NULL, PR_ImportTCPSocket(source));
SSL_OptionSet(conn->prfd, SSL_SECURITY, PR_TRUE);
SSL_OptionSet(conn->prfd, SSL_HANDSHAKE_AS_CLIENT, PR_TRUE);
@@ -180,3 +180,9 @@ int ssl_getfd( void *conn )
{
return( ((struct scd*)conn)->fd );
}
+
+GaimInputCondition ssl_getdirection( void *conn )
+{
+ /* Just in case someone calls us, let's return the most likely case: */
+ return GAIM_INPUT_READ;
+}