OpenSSL support for bufferevents.
More...
Go to the source code of this file.
Enumerations
enum
bufferevent_ssl_state {
BUFFEREVENT_SSL_OPEN = 0,
BUFFEREVENT_SSL_CONNECTING = 1,
BUFFEREVENT_SSL_ACCEPTING = 2
}
The state of an SSL object to be used when creating a new SSL bufferevent.
Functions
Return the most recent OpenSSL error reported on an SSL bufferevent.
More...
Create a new SSL bufferevent to send its data over another bufferevent.
More...
Return the underlying openssl SSL * object for an SSL bufferevent.
More...
Create a new SSL bufferevent to send its data over an SSL * on a socket.
More...
Tells a bufferevent to begin SSL renegotiation.
More...
Detailed Description
OpenSSL support for bufferevents.
Function Documentation
◆ bufferevent_get_openssl_error()
unsigned long bufferevent_get_openssl_error
(
struct
bufferevent *
bev )
Return the most recent OpenSSL error reported on an SSL bufferevent.
◆ bufferevent_openssl_filter_new()
struct ssl_st *
ssl,
int
options
)
Create a new SSL bufferevent to send its data over another bufferevent.
- Parameters
-
base An
event_base to use to detect reading and writing. It must also be the base for the underlying bufferevent.
underlying A socket to use for this SSL
ssl A SSL* object from openssl.
state The current state of the SSL connection
options One or more bufferevent_options
- Returns
- A new bufferevent on success, or NULL on failure
◆ bufferevent_openssl_get_ssl()
struct ssl_st* bufferevent_openssl_get_ssl
(
struct
bufferevent *
bufev )
Return the underlying openssl SSL * object for an SSL bufferevent.
◆ bufferevent_openssl_socket_new()
struct ssl_st *
ssl,
int
options
)
Create a new SSL bufferevent to send its data over an SSL * on a socket.
- Parameters
-
base An
event_base to use to detect reading and writing
fd A socket to use for this SSL
ssl A SSL* object from openssl.
state The current state of the SSL connection
options One or more bufferevent_options
- Returns
- A new bufferevent on success, or NULL on failure.
◆ bufferevent_ssl_renegotiate()
int bufferevent_ssl_renegotiate
(
struct
bufferevent *
bev )
Tells a bufferevent to begin SSL renegotiation.