Christopher Kohlhoff
a1fb7b0c10
Version bump.
2016-09-19 07:37:14 +10:00
Christopher Kohlhoff
c1acb8a57b
Add workaround for move-detection issue on MSVC 2015 Update 2.
2016-09-16 08:26:04 +10:00
Christopher Kohlhoff
603ebfb5e1
Call SSL_COMP_free_compression_methods() on ssl cleanup.
...
This call is needed for OpenSSL >=1.0.2 and <1.1.0.
2016-09-16 08:20:51 +10:00
Christopher Kohlhoff
42e7869f41
Fix allocator usage to compile with g++ 6.
2016-09-11 12:12:39 +10:00
Christopher Kohlhoff
3d71bdaf23
Use new TLS methods on OpenSSL 1.1.0.
2016-09-11 12:12:39 +10:00
Christopher Kohlhoff
8ea3165df9
Backward compatibility for code using OpenSSL < 1.1.0.
...
Some application code using asio::ssl::stream<> explicitly tests for the
SSL_R_SHORT_READ error. For compatibility, when using older versions of
OpenSSL we will define the ssl::error::stream_truncated to use this
value.
2016-09-11 12:12:39 +10:00
Christopher Kohlhoff
864ca38b6d
Terminate loop if connect condition returns an end iterator.
2016-09-11 12:12:39 +10:00
Christopher Kohlhoff
54c9424b5a
Enable getaddrinfo by default on Apple platforms.
...
The getaddrinfo function is now used by default unless Mac OS X 10.4 or
earlier is detected. Its use may also be explicitly disabled by defining
ASIO_DISABLE_GETADDRINFO.
2016-09-11 12:12:39 +10:00
Christopher Kohlhoff
370363b33f
Fix errors when OPENSSL_NO_DEPRECATED is defined.
2016-09-11 12:01:12 +10:00
Christopher Kohlhoff
a50a350310
Only apply firewall workaround when getsockname outputs INADDR_ANY.
2016-09-11 11:59:19 +10:00
Christopher Kohlhoff
812cfa7a5c
Add compatibility with OpenSSL 1.1
...
- SSLv2 has been completely removed from OpenSSL, even without OPENSSL_NO_SSL2
- there is a new threading API without locking callbacks
- struct SSL_CTX has been made opaque and must be used via accessor functions
- some cleanup functions have been removed
(from Marcel Raad <raad@teamviewer.com >)
2016-09-11 11:57:28 +10:00
Christopher Kohlhoff
424ad6b736
BoringSSL does not provide CONF_modules_unload.
2016-09-11 11:37:29 +10:00
Christopher Kohlhoff
84e840390b
Add new error category and constant for ssl::error::stream_truncated.
...
This error replaces uses of SSL_R_SHORT_READ, and indicates that the
SSL stream has been shut down abruptly. (I.e. the underlying socket
has been closed without performing an SSL-layer shutdown.)
2016-09-11 11:36:53 +10:00
Christopher Kohlhoff
36eef63a9c
Update copyright notices.
2016-09-11 11:35:40 +10:00
Christopher Kohlhoff
0f0f94a9d7
Remove old header file that was accidentally left behind.
2016-09-11 11:30:19 +10:00
Christopher Kohlhoff
8fe7f5d24e
Version bump.
2015-12-14 12:01:39 +11:00
Christopher Kohlhoff
763d513043
Xcode/clang and plain clang use different version numbering.
2015-12-12 11:13:36 +11:00
Christopher Kohlhoff
fb4befe985
LibreSSL doesn't provide SSL_CTX_clear_chain_certs.
2015-12-12 11:12:47 +11:00
Christopher Kohlhoff
345ac9aa13
Use CreateEventW rather than CreateEvent.
2015-12-10 22:51:53 +11:00
Christopher Kohlhoff
e1c67f0377
Pass correct output buffer size to strncat.
2015-12-10 22:51:53 +11:00
Christopher Kohlhoff
6582b6966a
Fix typo in comment.
2015-12-10 22:51:53 +11:00
Christopher Kohlhoff
bae401b1eb
Support for building with OpenSSL when OPENSSL_NO_SSL3 is defined.
2015-12-10 22:45:24 +11:00
Christopher Kohlhoff
073b2943cc
Suppress unused typedef warning when using clang.
2015-12-10 22:45:24 +11:00
Christopher Kohlhoff
dd28aed1e5
Use SSL_CTX_clear_chain_certs, if available.
2015-12-10 22:45:24 +11:00
Christopher Kohlhoff
b9cb61416e
Prevent multiple definition of BOOST_ASIO_ERROR_CATEGORY_NOEXCEPT with newest MSVC.
2015-12-10 22:45:24 +11:00
Christopher Kohlhoff
798f2a98e8
Add support for Windows 8.1 store apps.
2015-12-10 22:45:24 +11:00
Christopher Kohlhoff
d1db517230
Version bump.
2015-03-24 07:21:45 +11:00
Christopher Kohlhoff
c9c75601e0
Don't push/pop options around Boost.DateTime header.
2015-03-22 10:57:34 +11:00
Christopher Kohlhoff
c05d773886
Remove redundant pointer check in SSL engine.
2015-03-21 20:54:31 +11:00
Christopher Kohlhoff
3aa7b1b19d
Fix race condition in windows::object_handle.
2015-03-21 20:26:31 +11:00
Christopher Kohlhoff
382804a432
Use default visibility everywhere.
2015-03-21 18:28:43 +11:00
Christopher Kohlhoff
6cf37dc2f2
Fix WinRT detection.
...
WINAPI_FAMILY_ONE_PARTITION is no longer defined in newer
Windows SDKs.
2015-03-20 18:58:46 +11:00
Christopher Kohlhoff
f342f9bdd2
ERR_remove_state is deprecated, use ERR_remove_thread_state instead.
2015-03-20 09:35:13 +11:00
Christopher Kohlhoff
41bf42b8da
Update copyright notices.
2015-03-20 00:14:19 +11:00
Christopher Kohlhoff
a1d5248f3a
New macro BOOST_ASIO_DISABLE_CONNECTEX to disable ConnectEx use.
2015-03-20 00:06:08 +11:00
Christopher Kohlhoff
b261738d79
Strip the scope id from address string before passing to inet_pton.
...
On some platforms, like FreeBSD, inet_pton fails if the address
string includes trailing characters like a scope id.
2015-03-19 23:57:44 +11:00
Christopher Kohlhoff
b954a03b6f
Allow nested calls to completion handler when using yield_context.
2015-03-19 23:56:46 +11:00
Christopher Kohlhoff
83008fc4ce
Treat multicast test failures with ENODEV as non-fatal.
2015-03-19 23:55:38 +11:00
Christopher Kohlhoff
98a3f07417
Map ConnectEx errors to portable equivalents.
...
Fixes boost trac ticket 10744.
2015-03-19 23:55:02 +11:00
Christopher Kohlhoff
cba8ec4ce8
Fix ssl::stream bug that may cause spurious 'short read' errors.
2015-03-19 23:53:58 +11:00
Christopher Kohlhoff
8f5bf7a739
Move result into coro_handler.
2015-03-19 23:53:12 +11:00
Christopher Kohlhoff
5a136ac8f5
std::addressof isn't available until g++ 4.6.
2015-03-19 23:52:43 +11:00
Christopher Kohlhoff
09eeb03cbb
Move result of a yield_context operation.
2015-03-19 23:52:06 +11:00
Christopher Kohlhoff
1b3bd862d2
Fix unsigned int overflow reported by clang's integer sanitizer.
2015-03-19 23:51:28 +11:00
Christopher Kohlhoff
1de80ca253
Automatically support clang with libstdc++ when standalone.
2015-03-19 23:50:55 +11:00
Christopher Kohlhoff
224c7d22d3
Ensure OpenSSL error queue is cleared before each operation.
2015-03-19 23:50:06 +11:00
Christopher Kohlhoff
2580addfc0
Use password callback when loading in-memory private key.
2015-03-19 23:48:32 +11:00
Christopher Kohlhoff
f3a184977a
Add options for disabling TLS v1.1 and v1.2.
2015-03-19 23:47:59 +11:00
Christopher Kohlhoff
75928f7ed2
Ensure a system header is included before testing __GLIBC_MINOR__.
2015-03-19 23:46:56 +11:00
Christopher Kohlhoff
ada6e27059
Newest MSVC needs noexcept on error_category members.
2015-03-19 23:46:03 +11:00