-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontext.hpp
45 lines (41 loc) · 846 Bytes
/
context.hpp
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
--- /usr/include/asio/ssl/context.hpp
+++ /include/asio/ssl/dtls/context.hpp
@@ -40,8 +41,40 @@
/// The native handle type of the SSL context.
typedef SSL_CTX* native_handle_type;
+ enum dtls_method
+ {
+ /// Generic DTLS version 1.0
+ dtlsv1,
+
+ /// DTLS version 1.0 client
+ dtlsv1_client,
+
+ /// DTLS version 1.0 server
+ dtlsv1_server,
+
+ /// Generic DTLS version 1.2
+ dtlsv12,
+
+ /// DTLS version 1.2 client
+ dtlsv12_client,
+
+ /// DTLS version 1.2 server
+ dtlsv12_server,
+
+ /// Generic DTLS
+ dtls,
+
+ /// DTLS server
+ dtls_server,
+
+ /// DTLS client
+ dtls_client
+ };
+
+ ASIO_STATIC_CONSTANT(long, cookie_exchange = SSL_OP_COOKIE_EXCHANGE);
+
/// Constructor.
- ASIO_DECL explicit context(method m);
+ ASIO_DECL explicit context(dtls_method m);
};