| 290 SSL_BadCertHook(nss_data->in, (SSLBadCertHandler)ssl_bad_cert, NULL); |
290 SSL_BadCertHook(nss_data->in, (SSLBadCertHandler)ssl_bad_cert, NULL); |
| 291 |
291 |
| 292 if(gsc->host) |
292 if(gsc->host) |
| 293 SSL_SetURL(nss_data->in, gsc->host); |
293 SSL_SetURL(nss_data->in, gsc->host); |
| 294 |
294 |
| 295 #if 0 /* This seems like it'd the be the correct way to implement the nonblocking stuff, |
295 #if 0 |
| 296 but it doesn't seem to work */ |
296 /* This seems like it'd the be the correct way to implement the |
| |
297 nonblocking stuff, but it doesn't seem to work */ |
| 297 SSL_HandshakeCallback(nss_data->in, |
298 SSL_HandshakeCallback(nss_data->in, |
| 298 (SSLHandshakeCallback) ssl_nss_handshake_cb, gsc); |
299 (SSLHandshakeCallback) ssl_nss_handshake_cb, gsc); |
| 299 #endif |
300 #endif |
| 300 SSL_ResetHandshake(nss_data->in, PR_FALSE); |
301 SSL_ResetHandshake(nss_data->in, PR_FALSE); |
| 301 |
302 |