1 .TH "event2/bufferevent_ssl.h" 3 "Tue Jan 27 2015" "libevent" \" -*- nroff -*-
5 event2/bufferevent_ssl.h \-
7 OpenSSL support for bufferevents\&.
12 \fC#include <event2/event-config\&.h>\fP
14 \fC#include <event2/bufferevent\&.h>\fP
16 \fC#include <event2/util\&.h>\fP
23 .RI "enum \fBbufferevent_ssl_state\fP { \fBBUFFEREVENT_SSL_OPEN\fP = 0, \fBBUFFEREVENT_SSL_CONNECTING\fP = 1, \fBBUFFEREVENT_SSL_ACCEPTING\fP = 2 }"
25 .RI "\fIThe state of an SSL object to be used when creating a new SSL bufferevent\&. \fP"
31 .RI "unsigned long \fBbufferevent_get_openssl_error\fP (struct \fBbufferevent\fP *bev)"
33 .RI "\fIReturn the most recent OpenSSL error reported on an SSL bufferevent\&. \fP"
35 .RI "struct \fBbufferevent\fP * \fBbufferevent_openssl_filter_new\fP (struct \fBevent_base\fP *base, struct \fBbufferevent\fP *underlying, struct ssl_st *ssl, enum \fBbufferevent_ssl_state\fP state, int options)"
37 .RI "\fICreate a new SSL bufferevent to send its data over another bufferevent\&. \fP"
39 .RI "struct ssl_st * \fBbufferevent_openssl_get_ssl\fP (struct \fBbufferevent\fP *bufev)"
41 .RI "\fIReturn the underlying openssl SSL * object for an SSL bufferevent\&. \fP"
43 .RI "struct \fBbufferevent\fP * \fBbufferevent_openssl_socket_new\fP (struct \fBevent_base\fP *base, \fBevutil_socket_t\fP fd, struct ssl_st *ssl, enum \fBbufferevent_ssl_state\fP state, int options)"
45 .RI "\fICreate a new SSL bufferevent to send its data over an SSL * on a socket\&. \fP"
47 .RI "int \fBbufferevent_ssl_renegotiate\fP (struct \fBbufferevent\fP *bev)"
49 .RI "\fITells a bufferevent to begin SSL renegotiation\&. \fP"
51 .SH "Detailed Description"
53 OpenSSL support for bufferevents\&.
56 .SH "Function Documentation"
58 .SS "unsigned long bufferevent_get_openssl_error (struct \fBbufferevent\fP *bev)"
61 Return the most recent OpenSSL error reported on an SSL bufferevent\&.
62 .SS "struct \fBbufferevent\fP* bufferevent_openssl_filter_new (struct \fBevent_base\fP *base, struct \fBbufferevent\fP *underlying, struct ssl_st *ssl, enum \fBbufferevent_ssl_state\fPstate, intoptions)"
65 Create a new SSL bufferevent to send its data over another bufferevent\&.
69 \fIbase\fP An \fBevent_base\fP to use to detect reading and writing\&. It must also be the base for the underlying bufferevent\&.
71 \fIunderlying\fP A socket to use for this SSL
73 \fIssl\fP A SSL* object from openssl\&.
75 \fIstate\fP The current state of the SSL connection
77 \fIoptions\fP One or more bufferevent_options
82 A new bufferevent on success, or NULL on failure
86 .SS "struct ssl_st* bufferevent_openssl_get_ssl (struct \fBbufferevent\fP *bufev)"
89 Return the underlying openssl SSL * object for an SSL bufferevent\&.
90 .SS "struct \fBbufferevent\fP* bufferevent_openssl_socket_new (struct \fBevent_base\fP *base, \fBevutil_socket_t\fPfd, struct ssl_st *ssl, enum \fBbufferevent_ssl_state\fPstate, intoptions)"
93 Create a new SSL bufferevent to send its data over an SSL * on a socket\&.
97 \fIbase\fP An \fBevent_base\fP to use to detect reading and writing
99 \fIfd\fP A socket to use for this SSL
101 \fIssl\fP A SSL* object from openssl\&.
103 \fIstate\fP The current state of the SSL connection
105 \fIoptions\fP One or more bufferevent_options
110 A new bufferevent on success, or NULL on failure\&.
114 .SS "int bufferevent_ssl_renegotiate (struct \fBbufferevent\fP *bev)"
117 Tells a bufferevent to begin SSL renegotiation\&.
120 Generated automatically by Doxygen for libevent from the source code\&.