Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/changelog.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ Changes prepared for the first WebCPP release.
=== Unreleased

// tag::unreleased[]
* Fixed three diagnostic tests whose expected error clang's `-verify` never read, so they checked nothing.
* *Breaking change:* Removed `/webcpp/asio//cobalt` and `cobalt_ssl`; link `/webcpp/cobalt//cobalt` or `cobalt_ssl`.
* Fixed browser turn budgets across timer waits so worker proxy messages can run.
* Fixed browser and WASIp2 timer test dependencies and the unbounded backend control.
* Improved exception analysis of system executor initialization without changing fatal behavior.
* Fixed posted completions after JavaScript reentry with concurrency hint one.
* Added current example coverage and Release performance, memory and yield measurements.
* Updated the guides and Asyncify stack measurements for release builds linked at `-O3`.
* Changed make_tls_client_context to `+[[nodiscard]]+`, so a dropped context or its error is diagnosed.
// end::unreleased[]

[#asio-changelog-0-1-0]
Expand Down
5 changes: 3 additions & 2 deletions include/webcpp/asio/tls_client_context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ inline boost::system::error_code make_error_code(tls_context_error value) noexce
@return The context, or a tls_context_error; browser targets return unsupported_target.
@see "How-to: configure trusted certificate authorities", in the guide.
*/
inline boost::system::result<ssl::context> make_tls_client_context(std::string_view ca_pem) {
[[nodiscard]] inline boost::system::result<ssl::context> make_tls_client_context(
std::string_view ca_pem) {
#ifdef WEBCPP_TARGET_EMSCRIPTEN
(void)ca_pem;
return make_error_code(tls_context_error::unsupported_target);
Expand Down Expand Up @@ -166,7 +167,7 @@ inline boost::system::result<ssl::context> make_tls_client_context(std::string_v
@return The context, or a tls_context_error; browser targets return unsupported_target.
@see "How-to: configure trusted certificate authorities", in the guide.
*/
inline boost::system::result<ssl::context> make_tls_client_context() {
[[nodiscard]] inline boost::system::result<ssl::context> make_tls_client_context() {
#ifdef WEBCPP_TARGET_EMSCRIPTEN
return make_error_code(tls_context_error::unsupported_target);
#else
Expand Down
3 changes: 3 additions & 0 deletions meta/lint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"nodiscard-results": "a dropped result, a TLS client context's, would pass as a context that trusts its authorities"
}
3 changes: 1 addition & 2 deletions test/capabilities/diagnostics_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
// expected-error@webcpp/asio/config.hpp:* {{requires /webcpp/asio//openssl or /webcpp/asio//tls}}
#include <webcpp/asio/config.hpp>
#elif defined(WEBCPP_TEST_DISABLED_TLS)
// expected-error@webcpp/asio/ssl.hpp:* {{needs OpenSSL on native and WASI targets, and it is not
// linked}}
// expected-error@webcpp/asio/ssl.hpp:* {{needs OpenSSL on native and WASI targets}}
#include <webcpp/asio/ssl.hpp>
#elif defined(WEBCPP_TEST_BROWSER_HEADER)
// expected-error@webcpp/asio/browser/bridge.hpp:* {{requires the Emscripten browser bridge}}
Expand Down
3 changes: 1 addition & 2 deletions test/openssl_on_webassembly_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
// accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

// expected-error@*:* {{is named in a build for Emscripten, whose browser profile does not link
// OpenSSL}}
// expected-error@*:* {{whose browser profile does not link OpenSSL}}
#include "../src/openssl_on_webassembly.hpp"
3 changes: 1 addition & 2 deletions test/ssl_without_openssl_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
// accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)

// expected-error@webcpp/asio/ssl.hpp:* {{needs OpenSSL on native and WASI targets, and it is not
// linked}}
// expected-error@webcpp/asio/ssl.hpp:* {{needs OpenSSL on native and WASI targets}}
#include <webcpp/asio/ssl.hpp>
Loading