diff options
Diffstat (limited to 'ssl_timeoutio.c')
| -rw-r--r-- | ssl_timeoutio.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/ssl_timeoutio.c b/ssl_timeoutio.c index 5b2dc9d..30025d5 100644 --- a/ssl_timeoutio.c +++ b/ssl_timeoutio.c | |||
| @@ -68,19 +68,6 @@ int ssl_timeoutconn(int t, int rfd, int wfd, SSL *ssl) | |||
| 68 | return r; | 68 | return r; |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | int ssl_timeoutrehandshake(int t, int rfd, int wfd, SSL *ssl) | ||
| 72 | { | ||
| 73 | int r; | ||
| 74 | |||
| 75 | SSL_renegotiate(ssl); | ||
| 76 | r = ssl_timeoutio(SSL_do_handshake, t, rfd, wfd, ssl, NULL, 0); | ||
| 77 | if (r <= 0 || ssl->type == SSL_ST_CONNECT) return r; | ||
| 78 | |||
| 79 | /* this is for the server only */ | ||
| 80 | ssl->state = SSL_ST_ACCEPT; | ||
| 81 | return ssl_timeoutio(SSL_do_handshake, t, rfd, wfd, ssl, NULL, 0); | ||
| 82 | } | ||
| 83 | |||
| 84 | int ssl_timeoutread(int t, int rfd, int wfd, SSL *ssl, char *buf, int len) | 71 | int ssl_timeoutread(int t, int rfd, int wfd, SSL *ssl, char *buf, int len) |
| 85 | { | 72 | { |
| 86 | if (!buf) return 0; | 73 | if (!buf) return 0; |
