mbedtls_is_want_write,
be_mbedtls_get_fd,
be_mbedtls_bio_set_fd,
- mbedtls_set_ssl_noops,
(void (*)(struct bufferevent_ssl *))mbedtls_set_ssl_noops,
(void (*)(struct bufferevent_ssl *))mbedtls_set_ssl_noops,
conn_closed,
static void *
SSL_init(void *ssl)
{
+ /* Don't explode if we decide to realloc a chunk we're writing from in
+ * the output buffer. */
+ SSL_set_mode(ssl, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
+
return ssl;
}
return err == SSL_ERROR_WANT_WRITE;
}
-static void
-be_openssl_post_init(void *ssl)
-{
- /* Don't explode if we decide to realloc a chunk we're writing from in
- * the output buffer. */
- SSL_set_mode(ssl, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
-}
-
static int
openssl_read(void *ssl, unsigned char *buf, size_t len)
{
SSL_is_want_write,
(int (*)(void *))be_openssl_get_fd,
be_openssl_bio_set_fd,
- be_openssl_post_init,
init_bio_counts,
decrement_buckets,
conn_closed,
bev_ssl->ssl_ops = ssl_ops;
bev_ssl->ssl = bev_ssl->ssl_ops->init(ssl);
- bev_ssl->ssl_ops->post_init(ssl);
bev_ssl->underlying = underlying;
int (*err_is_want_write)(int err);
evutil_socket_t (*get_fd)(void *ssl);
int (*bio_set_fd)(struct bufferevent_ssl *ssl, evutil_socket_t fd);
- void (*post_init)(void *ssl);
void (*init_bio_counts)(struct bufferevent_ssl *bev);
void (*decrement_buckets)(struct bufferevent_ssl *bev);
void (*conn_closed)(