Commit Graph
1341 Commits
Author SHA1 Message Date
Vinnie Falco 8fc9b85795 Set version to 187 2018-11-01 21:11:12 -07:00
Vinnie Falco 65434a0cba Partial support for BOOST_NO_EXCEPTIONS:
Some stream operations are modified to use a
helper function which supports BOOST_NO_EXCEPTIONS.
2018-11-01 21:10:54 -07:00
Vinnie Falco 335f5c2333 Add detail::dynamic_buffer_prepare:
This function acts as a bottleneck for handling
exceptions thrown by dynamic buffers.
2018-11-01 21:10:54 -07:00
Vinnie Falco 30ca9c59d3 Fix uninitialized comparison in buffers iterator
fix #1263
2018-11-01 21:10:54 -07:00
Vinnie Falco 093af24e2b Fix warning in file tests 2018-10-28 21:19:12 -07:00
Vinnie Falco ef0658f678 Add experimental timeout_socket:
This is a socket wrapper which has a built-in timeout feature on
reads and writes.
2018-10-28 19:43:28 -07:00
Vinnie Falco f4c3e52a8c Set version to 186 2018-10-20 08:40:31 -07:00
compmaniak 955b7b31a5 Fix parsing of out-of-bounds hex values
fix #1267
2018-10-20 08:40:27 -07:00
Nikita Kniazev 1e03de3faf Update the build guide with cxxstd
fix #1271
2018-10-20 08:40:27 -07:00
Vinnie Falco 29e9ad5370 basic_fields uses intrusive base hooks:
fix #1270

basic_fields::value_type uses base hooks instead of member hooks,
otherwise MSVC can sometimes produce undefined behavior when
attempting to recover the base class from a data member in
certain build configurations.
2018-10-19 17:42:30 -07:00
Vinnie Falco 2b461cfe75 Revert "Skip master branch on Travis OSX (fix)"
This reverts commit 8935678dc0.
2018-10-09 18:33:22 -07:00
Vinnie Falco ec1c8ada7a Set version to 185 2018-10-07 18:35:53 -07:00
Vinnie Falco 8935678dc0 Skip master branch on Travis OSX (fix) 2018-10-07 18:35:23 -07:00
Vinnie Falco a44e5f45e9 Set version to 184 2018-10-07 10:55:14 -07:00
Vinnie Falco 99d47dd24f Skip master branch on Travis OSX 2018-10-07 10:55:11 -07:00
jarle 2b977f2770 Fix timer on websocket upgrade in examples
fix #1091, fix #1240, fix #1253
2018-10-07 10:38:36 -07:00
Domen Vrankar 806979e37b Add BOOST_BEAST_USE_STD_STRING_VIEW:
fix #1133, fix #1241

When the macro BOOST_BEAST_USE_STD_STRING_VIEW is defined,
Beast will use std::string_view instead of boost::string_view.

The name boost::beast::string_view is a type alias for the
chosen view type.
2018-10-07 10:38:36 -07:00
luz.paz f3212eba48 Fix some typos:
fix #1255

Found via `codespell -q 3 -L uint,te,tim --skip="./test/extern/zlib*,./example/http/client/crawl*"`
2018-10-07 10:35:12 -07:00
Vinnie Falco e2d192ec78 Remove extraneous function 2018-10-07 10:35:12 -07:00
Vinnie Falco 65022367bb Set version to 183 2018-09-23 19:08:34 -07:00
Vinnie Falco 82e87ea188 Workaround for http-server-fast and libstdc++:
This fixes a problem where libstdc++ incorrectly assumes that the
allocator used with basic_string is DefaultConstructible.

See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56437
2018-09-23 19:08:30 -07:00
Glen Fernandes 5e98c78951 Use boost::empty_value
fix #1233
2018-09-23 10:12:08 -07:00
PeterW3 4643b0565e Verify certificates in client examples:
fix #1237

HTTP client examples now verify the server's certificate
and generate an error if the certificate is invalid or
expired:

* Set certificate verify mode
* Remove duplicate root certificate
2018-09-23 10:12:08 -07:00
Jason Rice cd33d4cbb4 Fix README hyperlink
fix #1238
2018-09-23 10:12:08 -07:00
Boris Sergeev a4c008907d Fix a rare case of incorrect UTF8 validation
fix #1245, fix #1249

The value used to fill the incomplete code point buffer is
changed to a character which no longer causes
utf8_checker::valid() to incorrectly return false.
2018-09-23 10:12:07 -07:00
Vinnie Falco 4e7c260403 Add g++8 to CI 2018-09-23 10:12:02 -07:00
Vinnie Falco f2c3b5dec1 Set version to 182 2018-09-18 09:10:47 -07:00
Vinnie Falco 3f6190e015 Add missing includes 2018-09-18 09:10:42 -07:00
Vinnie Falco 16c5eec2f2 Update stale.yml 2018-09-13 09:50:18 -07:00
Vinnie Falco f32a8e2c99 Silence ubsan false positive
fix #1214
2018-08-02 07:20:47 -07:00
Vinnie Falco 1da229a27c Set version to 181 boost-1.68.0 2018-07-29 17:39:12 -07:00
Vinnie Falco 5fd2bd445c Add parse_dec tests 2018-07-29 17:39:03 -07:00
compmaniak 802390886d Fix parse_dec algorithm
fix #1211
2018-07-29 17:05:11 -07:00
Vinnie Falco 28f03be5b7 Set version to 180 2018-07-28 07:01:28 -07:00
felixguendling ba4bdfed71 Fix http_server_stackless_ssl.cpp example
fix #1210

Write to self_.stream_ instead of the socket_ directly
2018-07-28 07:00:51 -07:00
Vinnie Falco e23ecc8ac9 Set version to 179 2018-07-23 10:37:21 -07:00
Joe Loser 283c9f26f3 Remove some unused variables
fix #1197
2018-07-23 09:20:51 -07:00
Daniela Engert e0f4c1d769 Most members of std::allocate are deprecated in C++17:
fix #1202

Replace them by their cousins from std::allocator_traits;
otherwise, heaps of deprecation warnings will fall onto
humble users when compiling with MSVC 15 in C++17 mode.

Signed-off-by: Daniela Engert <dani@ngrt.de>
2018-07-23 09:19:46 -07:00
Glen Fernandes 8ed039200d Use the exchange() idiom in move constructors
fix #1203
2018-07-23 09:19:16 -07:00
Vinnie Falco c4d1bfe7af Set version to 178 2018-07-15 09:13:08 -07:00
Vinnie Falco 92d34b9e3b Use static_cast instead
fix #1163
2018-07-15 09:11:15 -07:00
Vinnie Falco dd6dff92ab Typo in release notes 2018-07-15 08:32:52 -07:00
Vinnie Falco e9e5d159c6 Set version to 177 2018-07-12 11:10:00 -07:00
Pierre Zawadil ceddef35a7 Update README.md
fix #1170
2018-07-12 11:09:26 -07:00
cos-public c2ecba968c Check error in example set_option
fix #1186
2018-07-12 11:07:10 -07:00
Vinnie Falco b7078c04c9 Set /permissive- 2018-07-12 08:50:54 -07:00
Vinnie Falco e8c6a82c3b Add test for issue #1188 2018-07-12 08:49:25 -07:00
Vinnie Falco e73b33f2bf Set version to 176 2018-07-08 15:20:10 -07:00
Vinnie Falco 749e54f31b Generated WebSocket masks use a secure PRNG by default:
This resolves a medium vulnerability described in the
Beast Hybrid Assessment Report by Bishop Fox, where masks generated
for use with outgoing WebSocket client frames use an insufficient
source of entropy and a non-cryptographically secure pseudo-random
number generator.

By default, all newly constructed WebSocket streams will use a
uniquely seeded secure PRNG (ChaCha20 in counter mode). As this may
result in increased CPU resource consumption, the function
websocket::stream::secure_prng() may be used to select a faster but
less secure PRNG, for the case where the caller knows that the secure
generator is not necessary.

On some systems, std::random_device may produce insufficient entropy
to securely seed the PRNG. As this condition cannot be detected by
Beast, callers may use the function websocket::seed_prng() called
once at startup to provide at least 256 bits of entropy which will
be used to uniquely seed all subsequent PRNGs.
2018-07-08 15:20:05 -07:00
Vinnie Falco 68727b3cfb Fix array end calculation in utf8 assertion 2018-07-04 14:40:06 -07:00