diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-06-03 22:20:43 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2006-06-03 22:20:43 +0200 |
commit | 9779c186bd6d396a6fde61cc215f2438d453ee97 (patch) | |
tree | f213d656883f0c9f602b9d78bfe3ee9143744bdf /protocols/ssl_nss.c | |
parent | a15c097fa32028394264cf66ef4fd31f56315eb3 (diff) | |
parent | fb62f81f947c74e274b05e32d2e88e3a4d7e2613 (diff) |
[merge] Wilmer
Diffstat (limited to 'protocols/ssl_nss.c')
-rw-r--r-- | protocols/ssl_nss.c | 12 |
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; +} |