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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `ssl` mod in crate `openssl`.">
<meta name="keywords" content="rust, rustlang, rust-lang, ssl">
<title>openssl::ssl - Rust</title>
<link rel="stylesheet" type="text/css" href="../../main.css">
</head>
<body class="rustdoc">
<!--[if lte IE 8]>
<div class="warning">
This old browser is unsupported and will most likely display funky
things.
</div>
<![endif]-->
<section class="sidebar">
<p class='location'><a href='../index.html'>openssl</a></p><script>window.sidebarCurrent = {name: 'ssl', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script>
</section>
<nav class="sub">
<form class="search-form js-only">
<div class="search-container">
<input class="search-input" name="search"
autocomplete="off"
placeholder="Click or press 'S' to search, '?' for more options..."
type="search">
</div>
</form>
</nav>
<section id='main' class="content mod">
<h1 class='fqn'><span class='in-band'>Module <a href='../index.html'>openssl</a>::<wbr><a class='mod' href=''>ssl</a></span><span class='out-of-band'><span id='render-detail'>
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>−</span>]
</a>
</span><a id='src-8178' class='srclink' href='../../src/openssl/ssl/mod.rs.html#1-991' title='goto source code'>[src]</a></span></h1>
<h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
<table>
<tr class=' module-item'>
<td><a class='mod' href='error/index.html'
title='openssl::ssl::error'>error</a></td>
<td class='docblock short'>
</td>
</tr>
</table><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
<table>
<tr class=' module-item'>
<td><a class='struct' href='struct.Ssl.html'
title='openssl::ssl::Ssl'>Ssl</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='struct' href='struct.SslContext.html'
title='openssl::ssl::SslContext'>SslContext</a></td>
<td class='docblock short'>
<p>An SSL context object</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class='struct' href='struct.SslContextOptions.html'
title='openssl::ssl::SslContextOptions'>SslContextOptions</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='struct' href='struct.SslStream.html'
title='openssl::ssl::SslStream'>SslStream</a></td>
<td class='docblock short'>
<p>A stream wrapper which handles SSL encryption for an underlying stream.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class='struct' href='struct.SslVerifyMode.html'
title='openssl::ssl::SslVerifyMode'>SslVerifyMode</a></td>
<td class='docblock short'>
</td>
</tr>
</table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
<table>
<tr class=' module-item'>
<td><a class='enum' href='enum.MaybeSslStream.html'
title='openssl::ssl::MaybeSslStream'>MaybeSslStream</a></td>
<td class='docblock short'>
<p>A utility type to help in cases where the use of SSL is decided at runtime.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class='enum' href='enum.SslMethod.html'
title='openssl::ssl::SslMethod'>SslMethod</a></td>
<td class='docblock short'>
<p>Determines the SSL method supported</p>
</td>
</tr>
</table><h2 id='constants' class='section-header'><a href="#constants">Constants</a></h2>
<table>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_ALL.html'
title='openssl::ssl::SSL_OP_ALL'>SSL_OP_ALL</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION.html'
title='openssl::ssl::SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION'>SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_CIPHER_SERVER_PREFERENCE.html'
title='openssl::ssl::SSL_OP_CIPHER_SERVER_PREFERENCE'>SSL_OP_CIPHER_SERVER_PREFERENCE</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_CISCO_ANYCONNECT.html'
title='openssl::ssl::SSL_OP_CISCO_ANYCONNECT'>SSL_OP_CISCO_ANYCONNECT</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_COOKIE_EXCHANGE.html'
title='openssl::ssl::SSL_OP_COOKIE_EXCHANGE'>SSL_OP_COOKIE_EXCHANGE</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS.html'
title='openssl::ssl::SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS'>SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_LEGACY_SERVER_CONNECT.html'
title='openssl::ssl::SSL_OP_LEGACY_SERVER_CONNECT'>SSL_OP_LEGACY_SERVER_CONNECT</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER.html'
title='openssl::ssl::SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER'>SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG.html'
title='openssl::ssl::SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG'>SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_NO_COMPRESSION.html'
title='openssl::ssl::SSL_OP_NO_COMPRESSION'>SSL_OP_NO_COMPRESSION</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_NO_DTLSV1.html'
title='openssl::ssl::SSL_OP_NO_DTLSV1'>SSL_OP_NO_DTLSV1</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_NO_DTLSV1_2.html'
title='openssl::ssl::SSL_OP_NO_DTLSV1_2'>SSL_OP_NO_DTLSV1_2</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_NO_QUERY_MTU.html'
title='openssl::ssl::SSL_OP_NO_QUERY_MTU'>SSL_OP_NO_QUERY_MTU</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION.html'
title='openssl::ssl::SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION'>SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_NO_SSLV2.html'
title='openssl::ssl::SSL_OP_NO_SSLV2'>SSL_OP_NO_SSLV2</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_NO_SSLV3.html'
title='openssl::ssl::SSL_OP_NO_SSLV3'>SSL_OP_NO_SSLV3</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_NO_TICKET.html'
title='openssl::ssl::SSL_OP_NO_TICKET'>SSL_OP_NO_TICKET</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_NO_TLSV1.html'
title='openssl::ssl::SSL_OP_NO_TLSV1'>SSL_OP_NO_TLSV1</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_NO_TLSV1_1.html'
title='openssl::ssl::SSL_OP_NO_TLSV1_1'>SSL_OP_NO_TLSV1_1</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_NO_TLSV1_2.html'
title='openssl::ssl::SSL_OP_NO_TLSV1_2'>SSL_OP_NO_TLSV1_2</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_SAFARI_ECDHE_ECDSA_BUG.html'
title='openssl::ssl::SSL_OP_SAFARI_ECDHE_ECDSA_BUG'>SSL_OP_SAFARI_ECDHE_ECDSA_BUG</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_SINGLE_DH_USE.html'
title='openssl::ssl::SSL_OP_SINGLE_DH_USE'>SSL_OP_SINGLE_DH_USE</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_SINGLE_ECDH_USE.html'
title='openssl::ssl::SSL_OP_SINGLE_ECDH_USE'>SSL_OP_SINGLE_ECDH_USE</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_SSLEAY_080_CLIENT_DH_BUG.html'
title='openssl::ssl::SSL_OP_SSLEAY_080_CLIENT_DH_BUG'>SSL_OP_SSLEAY_080_CLIENT_DH_BUG</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_TLSEXT_PADDING.html'
title='openssl::ssl::SSL_OP_TLSEXT_PADDING'>SSL_OP_TLSEXT_PADDING</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_TLS_BLOCK_PADDING_BUG.html'
title='openssl::ssl::SSL_OP_TLS_BLOCK_PADDING_BUG'>SSL_OP_TLS_BLOCK_PADDING_BUG</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_TLS_D5_BUG.html'
title='openssl::ssl::SSL_OP_TLS_D5_BUG'>SSL_OP_TLS_D5_BUG</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_OP_TLS_ROLLBACK_BUG.html'
title='openssl::ssl::SSL_OP_TLS_ROLLBACK_BUG'>SSL_OP_TLS_ROLLBACK_BUG</a></td>
<td class='docblock short'>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_VERIFY_FAIL_IF_NO_PEER_CERT.html'
title='openssl::ssl::SSL_VERIFY_FAIL_IF_NO_PEER_CERT'>SSL_VERIFY_FAIL_IF_NO_PEER_CERT</a></td>
<td class='docblock short'>
<p>/// Terminate handshake if client did not return a certificate.
/// Use together with SSL_VERIFY_PEER.</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_VERIFY_NONE.html'
title='openssl::ssl::SSL_VERIFY_NONE'>SSL_VERIFY_NONE</a></td>
<td class='docblock short'>
<p>/// Do not verify the server's certificate</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class='constant' href='constant.SSL_VERIFY_PEER.html'
title='openssl::ssl::SSL_VERIFY_PEER'>SSL_VERIFY_PEER</a></td>
<td class='docblock short'>
<p>/// Verify that the server's certificate is trusted</p>
</td>
</tr>
</table><h2 id='types' class='section-header'><a href="#types">Type Definitions</a></h2>
<table>
<tr class=' module-item'>
<td><a class='type' href='type.VerifyCallback.html'
title='openssl::ssl::VerifyCallback'>VerifyCallback</a></td>
<td class='docblock short'>
<p>The signature of functions that can be used to manually verify certificates</p>
</td>
</tr>
<tr class=' module-item'>
<td><a class='type' href='type.VerifyCallbackData.html'
title='openssl::ssl::VerifyCallbackData'>VerifyCallbackData</a></td>
<td class='docblock short'>
<p>The signature of functions that can be used to manually verify certificates
when user-data should be carried for all verification process</p>
</td>
</tr>
</table><h2 id='impls' class='section-header'><a href="#impls">Implementations</a></h2>
<table></table></section>
<section id='search' class="content hidden"></section>
<section class="footer"></section>
<div id="help" class="hidden">
<div class="shortcuts">
<h1>Keyboard shortcuts</h1>
<dl>
<dt>?</dt>
<dd>Show this help dialog</dd>
<dt>S</dt>
<dd>Focus the search field</dd>
<dt>⇤</dt>
<dd>Move up in search results</dd>
<dt>⇥</dt>
<dd>Move down in search results</dd>
<dt>⏎</dt>
<dd>Go to active search result</dd>
</dl>
</div>
<div class="infos">
<h1>Search tricks</h1>
<p>
Prefix searches with a type followed by a colon (e.g.
<code>fn:</code>) to restrict the search to a given type.
</p>
<p>
Accepted types are: <code>fn</code>, <code>mod</code>,
<code>struct</code>, <code>enum</code>,
<code>trait</code>, <code>typedef</code> (or
<code>tdef</code>).
</p>
<p>
Search functions by type signature (e.g.
<code>vec -> usize</code>)
</p>
</div>
</div>
<script>
window.rootPath = "../../";
window.currentCrate = "openssl";
window.playgroundUrl = "";
</script>
<script src="../../jquery.js"></script>
<script src="../../main.js"></script>
<script async src="../../search-index.js"></script>
</body>
</html>
|