mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Drop unused le_ssl_ops::err_is_ok
It is not used anymore since errors are ignored if some progress had been done.
This commit is contained in:
parent
ef51444f43
commit
e5941b2ce9
@ -136,11 +136,6 @@ mbedtls_is_want_write(int err)
|
|||||||
{
|
{
|
||||||
return err == MBEDTLS_ERR_SSL_WANT_WRITE;
|
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
|
static evutil_socket_t
|
||||||
be_mbedtls_get_fd(void *ssl)
|
be_mbedtls_get_fd(void *ssl)
|
||||||
@ -329,7 +324,6 @@ static struct le_ssl_ops le_mbedtls_ops = {
|
|||||||
mbedtls_handshake_is_ok,
|
mbedtls_handshake_is_ok,
|
||||||
mbedtls_is_want_read,
|
mbedtls_is_want_read,
|
||||||
mbedtls_is_want_write,
|
mbedtls_is_want_write,
|
||||||
mbedtls_err_is_ok,
|
|
||||||
be_mbedtls_get_fd,
|
be_mbedtls_get_fd,
|
||||||
be_mbedtls_bio_set_fd,
|
be_mbedtls_bio_set_fd,
|
||||||
(void (*)(struct bufferevent_ssl *))mbedtls_set_ssl_noops,
|
(void (*)(struct bufferevent_ssl *))mbedtls_set_ssl_noops,
|
||||||
|
@ -345,13 +345,6 @@ SSL_handshake_is_ok(int err)
|
|||||||
return err == 1;
|
return err == 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
|
||||||
SSL_err_is_ok(int err)
|
|
||||||
{
|
|
||||||
/* What SSL_read() returns when the we can proceed existing data */
|
|
||||||
return err == SSL_ERROR_ZERO_RETURN;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
SSL_is_want_read(int err)
|
SSL_is_want_read(int err)
|
||||||
{
|
{
|
||||||
@ -424,7 +417,6 @@ static struct le_ssl_ops le_openssl_ops = {
|
|||||||
SSL_handshake_is_ok,
|
SSL_handshake_is_ok,
|
||||||
SSL_is_want_read,
|
SSL_is_want_read,
|
||||||
SSL_is_want_write,
|
SSL_is_want_write,
|
||||||
SSL_err_is_ok,
|
|
||||||
(int (*)(void *))be_openssl_get_fd,
|
(int (*)(void *))be_openssl_get_fd,
|
||||||
be_openssl_bio_set_fd,
|
be_openssl_bio_set_fd,
|
||||||
init_bio_counts,
|
init_bio_counts,
|
||||||
|
@ -23,7 +23,6 @@ struct le_ssl_ops {
|
|||||||
int (*handshake_is_ok)(int err);
|
int (*handshake_is_ok)(int err);
|
||||||
int (*err_is_want_read)(int err);
|
int (*err_is_want_read)(int err);
|
||||||
int (*err_is_want_write)(int err);
|
int (*err_is_want_write)(int err);
|
||||||
int (*err_is_ok)(int err);
|
|
||||||
evutil_socket_t (*get_fd)(void *ssl);
|
evutil_socket_t (*get_fd)(void *ssl);
|
||||||
int (*bio_set_fd)(struct bufferevent_ssl *ssl, evutil_socket_t fd);
|
int (*bio_set_fd)(struct bufferevent_ssl *ssl, evutil_socket_t fd);
|
||||||
void (*init_bio_counts)(struct bufferevent_ssl *bev);
|
void (*init_bio_counts)(struct bufferevent_ssl *bev);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user