@@ -27,6 +27,8 @@ struct client_options {
27
27
openssl_verify_path_(),
28
28
openssl_certificate_file_(),
29
29
openssl_private_key_file_(),
30
+ openssl_ciphers_(),
31
+ openssl_options_(0 ),
30
32
io_service_(),
31
33
always_verify_peer_(false ),
32
34
timeout_(0 ) {}
@@ -38,6 +40,8 @@ struct client_options {
38
40
openssl_verify_path_(other.openssl_verify_path_),
39
41
openssl_certificate_file_(other.openssl_certificate_file_),
40
42
openssl_private_key_file_(other.openssl_private_key_file_),
43
+ openssl_ciphers_(other.openssl_ciphers_),
44
+ openssl_options_(other.openssl_options_),
41
45
io_service_(other.io_service_),
42
46
always_verify_peer_(other.always_verify_peer_),
43
47
timeout_(other.timeout_) {}
@@ -55,6 +59,8 @@ struct client_options {
55
59
swap (openssl_verify_path_, other.openssl_verify_path_ );
56
60
swap (openssl_certificate_file_, other.openssl_certificate_file_ );
57
61
swap (openssl_private_key_file_, other.openssl_private_key_file_ );
62
+ swap (openssl_ciphers_, other.openssl_ciphers_ );
63
+ swap (openssl_options_, other.openssl_options_ );
58
64
swap (io_service_, other.io_service_ );
59
65
swap (always_verify_peer_, other.always_verify_peer_ );
60
66
swap (timeout_, other.timeout_ );
@@ -90,6 +96,16 @@ struct client_options {
90
96
return *this ;
91
97
}
92
98
99
+ client_options& openssl_ciphers (string_type const & v) {
100
+ openssl_ciphers_ = v;
101
+ return *this ;
102
+ }
103
+
104
+ client_options& openssl_options (long o) {
105
+ openssl_options_ ^= o;
106
+ return *this ;
107
+ }
108
+
93
109
client_options& io_service (boost::shared_ptr<boost::asio::io_service> v) {
94
110
io_service_ = v;
95
111
return *this ;
@@ -125,6 +141,12 @@ struct client_options {
125
141
return openssl_private_key_file_;
126
142
}
127
143
144
+ boost::optional<string_type> openssl_ciphers () const {
145
+ return openssl_ciphers_;
146
+ }
147
+
148
+ long openssl_options () const { return openssl_options_; }
149
+
128
150
boost::shared_ptr<boost::asio::io_service> io_service () const {
129
151
return io_service_;
130
152
}
@@ -140,6 +162,8 @@ struct client_options {
140
162
boost::optional<string_type> openssl_verify_path_;
141
163
boost::optional<string_type> openssl_certificate_file_;
142
164
boost::optional<string_type> openssl_private_key_file_;
165
+ boost::optional<string_type> openssl_ciphers_;
166
+ long openssl_options_;
143
167
boost::shared_ptr<boost::asio::io_service> io_service_;
144
168
bool always_verify_peer_;
145
169
int timeout_;
0 commit comments