File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
asio/include/asio/ssl/impl Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -235,19 +235,27 @@ void context::clear_options(context::options o)
235
235
asio::error_code context::clear_options (
236
236
context::options o, asio::error_code& ec)
237
237
{
238
- #if !defined(SSL_OP_NO_COMPRESSION)
238
+ #if (OPENSSL_VERSION_NUMBER >= 0x009080DFL) \
239
+ && (OPENSSL_VERSION_NUMBER != 0x00909000L )
240
+ # if !defined(SSL_OP_NO_COMPRESSION)
239
241
if ((o & context::no_compression) != 0 )
240
242
{
241
- #if (OPENSSL_VERSION_NUMBER >= 0x00908000L)
243
+ # if (OPENSSL_VERSION_NUMBER >= 0x00908000L)
242
244
handle_->comp_methods = SSL_COMP_get_compression_methods ();
243
- #endif // (OPENSSL_VERSION_NUMBER >= 0x00908000L)
245
+ # endif // (OPENSSL_VERSION_NUMBER >= 0x00908000L)
244
246
o ^= context::no_compression;
245
247
}
246
- #endif // !defined(SSL_OP_NO_COMPRESSION)
248
+ # endif // !defined(SSL_OP_NO_COMPRESSION)
247
249
248
250
::SSL_CTX_clear_options (handle_, o);
249
251
250
252
ec = asio::error_code ();
253
+ #else // (OPENSSL_VERSION_NUMBER >= 0x009080DFL)
254
+ // && (OPENSSL_VERSION_NUMBER != 0x00909000L)
255
+ (void )o;
256
+ ec = asio::error::operation_not_supported;
257
+ #endif // (OPENSSL_VERSION_NUMBER >= 0x009080DFL)
258
+ // && (OPENSSL_VERSION_NUMBER != 0x00909000L)
251
259
return ec;
252
260
}
253
261
You can’t perform that action at this time.
0 commit comments