Changeset 309cb9e for protocols/ssl_openssl.c
- Timestamp:
- 2006-05-13T14:20:32Z (19 years ago)
- Branches:
- master
- Children:
- 782d988
- Parents:
- 2b7d2d1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/ssl_openssl.c
r2b7d2d1 r309cb9e 52 52 }; 53 53 54 static void ssl_connected( gpointer data, gint source, b_input_condition cond ); 55 54 static gboolean ssl_connected( gpointer data, gint source, b_input_condition cond ); 56 55 57 56 … … 95 94 } 96 95 97 static voidssl_handshake( gpointer data, gint source, b_input_condition cond );98 99 static voidssl_connected( gpointer data, gint source, b_input_condition cond )96 static gboolean ssl_handshake( gpointer data, gint source, b_input_condition cond ); 97 98 static gboolean ssl_connected( gpointer data, gint source, b_input_condition cond ) 100 99 { 101 100 struct scd *conn = data; … … 104 103 return ssl_handshake( data, -1, cond ); 105 104 106 /* Make it non-blocking at least during the handshake...*/105 /* We can do at least the handshake with non-blocking I/O */ 107 106 sock_make_nonblocking( conn->fd ); 108 107 SSL_set_fd( conn->ssl, conn->fd ); … … 111 110 } 112 111 113 static voidssl_handshake( gpointer data, gint source, b_input_condition cond )112 static gboolean ssl_handshake( gpointer data, gint source, b_input_condition cond ) 114 113 { 115 114 struct scd *conn = data; … … 118 117 if( conn->inpa != -1 ) 119 118 { 120 gaim_input_remove( conn->inpa );119 b_event_remove( conn->inpa ); 121 120 conn->inpa = -1; 122 121 } … … 128 127 goto ssl_connected_failure; 129 128 130 conn->inpa = gaim_input_add( conn->fd, ssl_getdirection( conn ), ssl_handshake, data );131 return ;129 conn->inpa = b_input_add( conn->fd, ssl_getdirection( conn ), ssl_handshake, data ); 130 return FALSE; 132 131 } 133 132 … … 135 134 sock_make_blocking( conn->fd ); /* For now... */ 136 135 conn->func( conn->data, conn, cond ); 137 return ;136 return FALSE; 138 137 139 138 ssl_connected_failure: … … 151 150 if( source >= 0 ) closesocket( source ); 152 151 g_free( conn ); 152 153 return FALSE; 153 154 } 154 155 … … 204 205 205 206 if( conn->inpa != -1 ) 206 gaim_input_remove( conn->inpa );207 b_event_remove( conn->inpa ); 207 208 208 209 if( conn->established )
Note: See TracChangeset
for help on using the changeset viewer.