-
Notifications
You must be signed in to change notification settings - Fork 4
/
bufferevent__ssl_8h_source.html
251 lines (249 loc) · 35.4 KB
/
bufferevent__ssl_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libevent: event2/bufferevent_ssl.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">libevent
 <span id="projectnumber">2.2.1</span>
</div>
<div id="projectbrief">Event notification library</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_db160b4728e6067cf5f9cc14ec42c79d.html">event2</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">bufferevent_ssl.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="bufferevent__ssl_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2009-2012 Niels Provos and Nick Mathewson</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * modification, are permitted provided that the following conditions</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * are met:</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * 1. Redistributions of source code must retain the above copyright</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * notice, this list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * notice, this list of conditions and the following disclaimer in the</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * documentation and/or other materials provided with the distribution.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * 3. The name of the author may not be used to endorse or promote products</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * derived from this software without specific prior written permission.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> *</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#ifndef EVENT2_BUFFEREVENT_SSL_H_INCLUDED_</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#define EVENT2_BUFFEREVENT_SSL_H_INCLUDED_</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include <event2/visibility.h></span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include <event2/event-config.h></span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include <<a class="code" href="bufferevent_8h.html">event2/bufferevent.h</a>></span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include <<a class="code" href="util_8h.html">event2/util.h</a>></span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  </div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  </div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="bufferevent__ssl_8h.html#a96964ed61294aff8a9d95d661f403ee4"> 46</a></span> <span class="keyword">enum</span> <a class="code" href="bufferevent__ssl_8h.html#a96964ed61294aff8a9d95d661f403ee4">bufferevent_ssl_state</a> {</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  BUFFEREVENT_SSL_OPEN = 0,</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  BUFFEREVENT_SSL_CONNECTING = 1,</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  BUFFEREVENT_SSL_ACCEPTING = 2</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> };</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  </div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="bufferevent__ssl_8h.html#af65fd99ef2fa0bc7df9622dc84dfa38b"> 67</a></span> <span class="preprocessor">#define BUFFEREVENT_SSL_DIRTY_SHUTDOWN 1</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  </div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="bufferevent__ssl_8h.html#a34aeb5156538c8ca7f5353a77aa9059b"> 79</a></span> <span class="preprocessor">#define BUFFEREVENT_SSL_BATCH_WRITE 2</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  </div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="preprocessor">#if defined(EVENT__HAVE_OPENSSL) || defined(EVENT__HAVE_MBEDTLS)</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  </div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> ev_uint64_t bufferevent_ssl_get_flags(<span class="keyword">struct</span> <a class="code" href="structbufferevent.html">bufferevent</a> *bev);</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> ev_uint64_t bufferevent_ssl_set_flags(<span class="keyword">struct</span> <a class="code" href="structbufferevent.html">bufferevent</a> *bev, ev_uint64_t flags);</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> ev_uint64_t bufferevent_ssl_clear_flags(<span class="keyword">struct</span> <a class="code" href="structbufferevent.html">bufferevent</a> *bev, ev_uint64_t flags);</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  </div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="preprocessor">#endif </span><span class="comment">/* defined(EVENT__HAVE_OPENSSL) || defined(EVENT__HAVE_MBEDTLS) */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  </div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="preprocessor">#if defined(EVENT__HAVE_OPENSSL) || defined(EVENT_IN_DOXYGEN_)</span></div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="comment">/* This is what openssl's SSL objects are underneath. */</span></div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="keyword">struct </span>ssl_st;</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  </div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="keyword">struct </span><a class="code" href="structbufferevent.html">bufferevent</a> *</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <a class="code" href="bufferevent__ssl_8h.html#ac6d45c0c7988f83b0feb2b67497e33c9">bufferevent_openssl_filter_new</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base,</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keyword">struct</span> <a class="code" href="structbufferevent.html">bufferevent</a> *underlying,</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keyword">struct</span> ssl_st *ssl,</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keyword">enum</span> <a class="code" href="bufferevent__ssl_8h.html#a96964ed61294aff8a9d95d661f403ee4">bufferevent_ssl_state</a> state,</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordtype">int</span> options);</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  </div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="keyword">struct </span><a class="code" href="structbufferevent.html">bufferevent</a> *</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <a class="code" href="bufferevent__ssl_8h.html#a7a3090b586bfc7fc02e81a3a2c2deea5">bufferevent_openssl_socket_new</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base,</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <a class="code" href="util_8h.html#a7ef0023565082a65020f6e56be59fd0b">evutil_socket_t</a> fd,</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keyword">struct</span> ssl_st *ssl,</div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keyword">enum</span> <a class="code" href="bufferevent__ssl_8h.html#a96964ed61294aff8a9d95d661f403ee4">bufferevent_ssl_state</a> state,</div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keywordtype">int</span> options);</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  </div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="keywordtype">int</span> <a class="code" href="bufferevent__ssl_8h.html#ab99fa44e01e56fbd4de25022be3ffbe4">bufferevent_openssl_get_allow_dirty_shutdown</a>(<span class="keyword">struct</span> <a class="code" href="structbufferevent.html">bufferevent</a> *bev);</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="keywordtype">void</span> <a class="code" href="bufferevent__ssl_8h.html#aa12d88e848c0b8b43e2e7c60992ab870">bufferevent_openssl_set_allow_dirty_shutdown</a>(<span class="keyword">struct</span> <a class="code" href="structbufferevent.html">bufferevent</a> *bev,</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keywordtype">int</span> allow_dirty_shutdown);</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  </div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="keyword">struct </span>ssl_st *</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <a class="code" href="bufferevent__ssl_8h.html#a8e0f365c4daa5129c0cd311a3ee0149f">bufferevent_openssl_get_ssl</a>(<span class="keyword">struct</span> <a class="code" href="structbufferevent.html">bufferevent</a> *bufev);</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  </div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="keywordtype">int</span> <a class="code" href="bufferevent__ssl_8h.html#a3fd911cdaeaa3974bb4c17ad13f48503">bufferevent_ssl_renegotiate</a>(<span class="keyword">struct</span> <a class="code" href="structbufferevent.html">bufferevent</a> *bev);</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  </div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="bufferevent__ssl_8h.html#a02d39dd2ed160e7564f62cf487bd0315">bufferevent_get_openssl_error</a>(<span class="keyword">struct</span> <a class="code" href="structbufferevent.html">bufferevent</a> *bev);</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  </div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="preprocessor">#if defined(EVENT__HAVE_MBEDTLS) || defined(EVENT_IN_DOXYGEN_)</span></div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="keyword">struct </span>mbedtls_ssl_context;</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="keyword">struct </span>mbedtls_ssl_config;</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="keyword">typedef</span> <span class="keyword">struct </span>mbedtls_ssl_context mbedtls_dyncontext;</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  </div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="keyword">struct </span><a class="code" href="structbufferevent.html">bufferevent</a> *</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <a class="code" href="bufferevent__ssl_8h.html#ab70b27645fdd5a2f0294d53aa1743061">bufferevent_mbedtls_filter_new</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base,</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keyword">struct</span> <a class="code" href="structbufferevent.html">bufferevent</a> *underlying,</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  mbedtls_dyncontext *ssl,</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keyword">enum</span> <a class="code" href="bufferevent__ssl_8h.html#a96964ed61294aff8a9d95d661f403ee4">bufferevent_ssl_state</a> state,</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <span class="keywordtype">int</span> options);</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  </div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <span class="keyword">struct </span><a class="code" href="structbufferevent.html">bufferevent</a> *</div>
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <a class="code" href="bufferevent__ssl_8h.html#a941a2172b791789ef1791f2c3b28be75">bufferevent_mbedtls_socket_new</a>(<span class="keyword">struct</span> <a class="code" href="structevent__base.html">event_base</a> *base,</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <a class="code" href="util_8h.html#a7ef0023565082a65020f6e56be59fd0b">evutil_socket_t</a> fd,</div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  mbedtls_dyncontext *ssl,</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="keyword">enum</span> <a class="code" href="bufferevent__ssl_8h.html#a96964ed61294aff8a9d95d661f403ee4">bufferevent_ssl_state</a> state,</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="keywordtype">int</span> options);</div>
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  </div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="keywordtype">int</span> <a class="code" href="bufferevent__ssl_8h.html#a4f8cc4d8ca0fc0c882659b0e7793e886">bufferevent_mbedtls_get_allow_dirty_shutdown</a>(<span class="keyword">struct</span> <a class="code" href="structbufferevent.html">bufferevent</a> *bev);</div>
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="keywordtype">void</span> <a class="code" href="bufferevent__ssl_8h.html#a72794ad409cf280240988a104cc3a836">bufferevent_mbedtls_set_allow_dirty_shutdown</a>(<span class="keyword">struct</span> <a class="code" href="structbufferevent.html">bufferevent</a> *bev,</div>
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keywordtype">int</span> allow_dirty_shutdown);</div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  </div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="keyword">struct </span>mbedtls_ssl_context *</div>
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <a class="code" href="bufferevent__ssl_8h.html#afd907d76bb66d40b6633f611c0f01526">bufferevent_mbedtls_get_ssl</a>(<span class="keyword">struct</span> <a class="code" href="structbufferevent.html">bufferevent</a> *bufev);</div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  </div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span> <span class="keywordtype">int</span> <a class="code" href="bufferevent__ssl_8h.html#ad8a0aa57628113bd4fae0ad7dc796b34">bufferevent_mbedtls_renegotiate</a>(<span class="keyword">struct</span> <a class="code" href="structbufferevent.html">bufferevent</a> *bev);</div>
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  </div>
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="bufferevent__ssl_8h.html#a9ff8a04e47b127f185911ea153cde862">bufferevent_get_mbedtls_error</a>(<span class="keyword">struct</span> <a class="code" href="structbufferevent.html">bufferevent</a> *bev);</div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  </div>
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span> mbedtls_dyncontext *</div>
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span> <a class="code" href="bufferevent__ssl_8h.html#a15ef9128f6f03c98d24032d74de6f0a8">bufferevent_mbedtls_dyncontext_new</a>(<span class="keyword">struct</span> mbedtls_ssl_config *conf);</div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  </div>
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span> EVENT2_EXPORT_SYMBOL</div>
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <span class="keywordtype">void</span></div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span> <a class="code" href="bufferevent__ssl_8h.html#addce4bbddd3fe09b50f9042bd7d1435e">bufferevent_mbedtls_dyncontext_free</a>(mbedtls_dyncontext *ctx);</div>
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  </div>
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  </div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span> }</div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span> <span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  </div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span> <span class="preprocessor">#endif </span><span class="comment">/* EVENT2_BUFFEREVENT_SSL_H_INCLUDED_ */</span><span class="preprocessor"></span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="abufferevent__ssl_8h_html_afd907d76bb66d40b6633f611c0f01526"><div class="ttname"><a href="bufferevent__ssl_8h.html#afd907d76bb66d40b6633f611c0f01526">bufferevent_mbedtls_get_ssl</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL struct mbedtls_ssl_context * bufferevent_mbedtls_get_ssl(struct bufferevent *bufev)</div><div class="ttdoc">Return the underlying mbedtls SSL * object for an SSL bufferevent.</div></div>
<div class="ttc" id="abufferevent__ssl_8h_html_ab99fa44e01e56fbd4de25022be3ffbe4"><div class="ttname"><a href="bufferevent__ssl_8h.html#ab99fa44e01e56fbd4de25022be3ffbe4">bufferevent_openssl_get_allow_dirty_shutdown</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int bufferevent_openssl_get_allow_dirty_shutdown(struct bufferevent *bev)</div><div class="ttdoc">Get value of the BUFFEREVENT_SSL_DIRTY_SHUTDOWN flag.</div></div>
<div class="ttc" id="abufferevent__ssl_8h_html_a9ff8a04e47b127f185911ea153cde862"><div class="ttname"><a href="bufferevent__ssl_8h.html#a9ff8a04e47b127f185911ea153cde862">bufferevent_get_mbedtls_error</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL unsigned long bufferevent_get_mbedtls_error(struct bufferevent *bev)</div><div class="ttdoc">Return the most recent MbedTLS error reported on an SSL bufferevent.</div></div>
<div class="ttc" id="abufferevent__ssl_8h_html_a4f8cc4d8ca0fc0c882659b0e7793e886"><div class="ttname"><a href="bufferevent__ssl_8h.html#a4f8cc4d8ca0fc0c882659b0e7793e886">bufferevent_mbedtls_get_allow_dirty_shutdown</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int bufferevent_mbedtls_get_allow_dirty_shutdown(struct bufferevent *bev)</div><div class="ttdoc">Get value of the BUFFEREVENT_SSL_DIRTY_SHUTDOWN flag.</div></div>
<div class="ttc" id="abufferevent__ssl_8h_html_a96964ed61294aff8a9d95d661f403ee4"><div class="ttname"><a href="bufferevent__ssl_8h.html#a96964ed61294aff8a9d95d661f403ee4">bufferevent_ssl_state</a></div><div class="ttdeci">bufferevent_ssl_state</div><div class="ttdoc">The state of an SSL object to be used when creating a new SSL bufferevent.</div><div class="ttdef"><b>Definition:</b> bufferevent_ssl.h:46</div></div>
<div class="ttc" id="astructevent__base_html"><div class="ttname"><a href="structevent__base.html">event_base</a></div><div class="ttdoc">Structure to hold information and state for a Libevent dispatch loop.</div><div class="ttdef"><b>Definition:</b> event.h:219</div></div>
<div class="ttc" id="abufferevent__ssl_8h_html_addce4bbddd3fe09b50f9042bd7d1435e"><div class="ttname"><a href="bufferevent__ssl_8h.html#addce4bbddd3fe09b50f9042bd7d1435e">bufferevent_mbedtls_dyncontext_free</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void bufferevent_mbedtls_dyncontext_free(mbedtls_dyncontext *ctx)</div><div class="ttdoc">Deallocate heap-based MbedTLS context.</div></div>
<div class="ttc" id="abufferevent__ssl_8h_html_ac6d45c0c7988f83b0feb2b67497e33c9"><div class="ttname"><a href="bufferevent__ssl_8h.html#ac6d45c0c7988f83b0feb2b67497e33c9">bufferevent_openssl_filter_new</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL struct bufferevent * bufferevent_openssl_filter_new(struct event_base *base, struct bufferevent *underlying, struct ssl_st *ssl, enum bufferevent_ssl_state state, int options)</div><div class="ttdoc">Create a new SSL bufferevent to send its data over another bufferevent.</div></div>
<div class="ttc" id="astructbufferevent_html"><div class="ttname"><a href="structbufferevent.html">bufferevent</a></div><div class="ttdoc">An opaque type for handling buffered IO.</div><div class="ttdef"><b>Definition:</b> bufferevent.h:114</div></div>
<div class="ttc" id="abufferevent__ssl_8h_html_a3fd911cdaeaa3974bb4c17ad13f48503"><div class="ttname"><a href="bufferevent__ssl_8h.html#a3fd911cdaeaa3974bb4c17ad13f48503">bufferevent_ssl_renegotiate</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int bufferevent_ssl_renegotiate(struct bufferevent *bev)</div><div class="ttdoc">Tells a bufferevent to begin SSL renegotiation.</div></div>
<div class="ttc" id="abufferevent__ssl_8h_html_ab70b27645fdd5a2f0294d53aa1743061"><div class="ttname"><a href="bufferevent__ssl_8h.html#ab70b27645fdd5a2f0294d53aa1743061">bufferevent_mbedtls_filter_new</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL struct bufferevent * bufferevent_mbedtls_filter_new(struct event_base *base, struct bufferevent *underlying, mbedtls_dyncontext *ssl, enum bufferevent_ssl_state state, int options)</div><div class="ttdoc">Create a new SSL bufferevent to send its data over another bufferevent.</div></div>
<div class="ttc" id="abufferevent__ssl_8h_html_a7a3090b586bfc7fc02e81a3a2c2deea5"><div class="ttname"><a href="bufferevent__ssl_8h.html#a7a3090b586bfc7fc02e81a3a2c2deea5">bufferevent_openssl_socket_new</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL struct bufferevent * bufferevent_openssl_socket_new(struct event_base *base, evutil_socket_t fd, struct ssl_st *ssl, enum bufferevent_ssl_state state, int options)</div><div class="ttdoc">Create a new SSL bufferevent to send its data over an SSL * on a socket.</div></div>
<div class="ttc" id="abufferevent__ssl_8h_html_a941a2172b791789ef1791f2c3b28be75"><div class="ttname"><a href="bufferevent__ssl_8h.html#a941a2172b791789ef1791f2c3b28be75">bufferevent_mbedtls_socket_new</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL struct bufferevent * bufferevent_mbedtls_socket_new(struct event_base *base, evutil_socket_t fd, mbedtls_dyncontext *ssl, enum bufferevent_ssl_state state, int options)</div><div class="ttdoc">Create a new SSL bufferevent to send its data over an SSL * on a socket.</div></div>
<div class="ttc" id="abufferevent__ssl_8h_html_a72794ad409cf280240988a104cc3a836"><div class="ttname"><a href="bufferevent__ssl_8h.html#a72794ad409cf280240988a104cc3a836">bufferevent_mbedtls_set_allow_dirty_shutdown</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void bufferevent_mbedtls_set_allow_dirty_shutdown(struct bufferevent *bev, int allow_dirty_shutdown)</div><div class="ttdoc">Set value of the BUFFEREVENT_SSL_DIRTY_SHUTDOWN flag.</div></div>
<div class="ttc" id="abufferevent_8h_html"><div class="ttname"><a href="bufferevent_8h.html">bufferevent.h</a></div><div class="ttdoc">Functions for buffering data for network sending or receiving.</div></div>
<div class="ttc" id="abufferevent__ssl_8h_html_aa12d88e848c0b8b43e2e7c60992ab870"><div class="ttname"><a href="bufferevent__ssl_8h.html#aa12d88e848c0b8b43e2e7c60992ab870">bufferevent_openssl_set_allow_dirty_shutdown</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL void bufferevent_openssl_set_allow_dirty_shutdown(struct bufferevent *bev, int allow_dirty_shutdown)</div><div class="ttdoc">Set value of the BUFFEREVENT_SSL_DIRTY_SHUTDOWN flag.</div></div>
<div class="ttc" id="abufferevent__ssl_8h_html_ad8a0aa57628113bd4fae0ad7dc796b34"><div class="ttname"><a href="bufferevent__ssl_8h.html#ad8a0aa57628113bd4fae0ad7dc796b34">bufferevent_mbedtls_renegotiate</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL int bufferevent_mbedtls_renegotiate(struct bufferevent *bev)</div><div class="ttdoc">Tells a bufferevent to begin SSL renegotiation.</div></div>
<div class="ttc" id="autil_8h_html"><div class="ttname"><a href="util_8h.html">util.h</a></div><div class="ttdoc">Common convenience functions for cross-platform portability and related socket manipulations.</div></div>
<div class="ttc" id="abufferevent__ssl_8h_html_a15ef9128f6f03c98d24032d74de6f0a8"><div class="ttname"><a href="bufferevent__ssl_8h.html#a15ef9128f6f03c98d24032d74de6f0a8">bufferevent_mbedtls_dyncontext_new</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL mbedtls_dyncontext * bufferevent_mbedtls_dyncontext_new(struct mbedtls_ssl_config *conf)</div><div class="ttdoc">Create a new heap-based MbedTLS context for use it in bufferevent_mbedtls_* functions.</div></div>
<div class="ttc" id="abufferevent__ssl_8h_html_a02d39dd2ed160e7564f62cf487bd0315"><div class="ttname"><a href="bufferevent__ssl_8h.html#a02d39dd2ed160e7564f62cf487bd0315">bufferevent_get_openssl_error</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL unsigned long bufferevent_get_openssl_error(struct bufferevent *bev)</div><div class="ttdoc">Return the most recent OpenSSL error reported on an SSL bufferevent.</div></div>
<div class="ttc" id="abufferevent__ssl_8h_html_a8e0f365c4daa5129c0cd311a3ee0149f"><div class="ttname"><a href="bufferevent__ssl_8h.html#a8e0f365c4daa5129c0cd311a3ee0149f">bufferevent_openssl_get_ssl</a></div><div class="ttdeci">EVENT2_EXPORT_SYMBOL struct ssl_st * bufferevent_openssl_get_ssl(struct bufferevent *bufev)</div><div class="ttdoc">Return the underlying openssl SSL * object for an SSL bufferevent.</div></div>
<div class="ttc" id="autil_8h_html_a7ef0023565082a65020f6e56be59fd0b"><div class="ttname"><a href="util_8h.html#a7ef0023565082a65020f6e56be59fd0b">evutil_socket_t</a></div><div class="ttdeci">#define evutil_socket_t</div><div class="ttdoc">A type wide enough to hold the output of "socket()" or "accept()".</div><div class="ttdef"><b>Definition:</b> util.h:325</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>