summaryrefslogtreecommitdiff
path: root/bufferevent_openssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'bufferevent_openssl.c')
-rw-r--r--bufferevent_openssl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bufferevent_openssl.c b/bufferevent_openssl.c
index c74a76e4..f5d0808c 100644
--- a/bufferevent_openssl.c
+++ b/bufferevent_openssl.c
@@ -339,8 +339,9 @@ SSL_context_free(void *ssl, int flags)
}
static int
-SSL_is_ok(int err)
+SSL_handshake_is_ok(int err)
{
+ /* What SSL_do_handshake() return on success */
return err == 1;
}
@@ -413,7 +414,7 @@ static struct le_ssl_ops le_openssl_ops = {
(int (*)(void *))SSL_clear,
(void (*)(void *))SSL_set_connect_state,
(void (*)(void *))SSL_set_accept_state,
- SSL_is_ok,
+ SSL_handshake_is_ok,
SSL_is_want_read,
SSL_is_want_write,
(int (*)(void *))be_openssl_get_fd,