diff options
author | Azat Khuzhin <azat@libevent.org> | 2023-05-16 21:21:48 +0200 |
---|---|---|
committer | Azat Khuzhin <azat@libevent.org> | 2023-05-16 21:21:48 +0200 |
commit | 5324e482d04b0851f0c5ef4f11f1d0ef877c3380 (patch) | |
tree | 3b120719ebe5545aca51eb767a98f9a676a9b954 /bufferevent_mbedtls.c | |
parent | acfac7ae4a3edbbb7ce4ceee7208b4245a6e203e (diff) | |
parent | 49a7ae4c5668ebad7b6c4618664224c1a0bc5079 (diff) | |
download | libevent-master.tar.gz |
* ssl-read-pull:
ssl: add some comments for lack of notify_close
Drop unused le_ssl_ops::err_is_ok
More SSL_read() to fill big buffer
Make bufferevent_set_max_single_read() effect
Diffstat (limited to 'bufferevent_mbedtls.c')
-rw-r--r-- | bufferevent_mbedtls.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/bufferevent_mbedtls.c b/bufferevent_mbedtls.c index 765d00be..b0e960fa 100644 --- a/bufferevent_mbedtls.c +++ b/bufferevent_mbedtls.c @@ -136,11 +136,6 @@ mbedtls_is_want_write(int err) { return err == MBEDTLS_ERR_SSL_WANT_WRITE; } -static int mbedtls_err_is_ok(int err) -{ - /* What mbedtls_ssl_read() returns when the we can proceed existing data */ - return err == 0; -} static evutil_socket_t be_mbedtls_get_fd(void *ssl) @@ -329,7 +324,6 @@ static struct le_ssl_ops le_mbedtls_ops = { mbedtls_handshake_is_ok, mbedtls_is_want_read, mbedtls_is_want_write, - mbedtls_err_is_ok, be_mbedtls_get_fd, be_mbedtls_bio_set_fd, (void (*)(struct bufferevent_ssl *))mbedtls_set_ssl_noops, |