Skip to content

Use the cpprest-lts C++ REST SDK and WebSocket++ - #559

Merged
lo-simon merged 8 commits into
sony:masterfrom
garethsb:feature/cpprest-lts
Dec 2, 2026
Merged

lo-simon merged 8 commits into
sony:masterfrom
garethsb:feature/cpprest-lts

Conversation

@garethsb

@garethsb garethsb commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Microsoft archived microsoft/cpprestsdk after 2.10.19, which does not build with Boost 1.87 or later (see #187 and #506). The cpprest-lts organization maintains forks of the C++ REST SDK and WebSocket++, with security and bug fixes but no new features. Conan Center has their releases, cpprestsdk/2.10.21+cpprest-lts and websocketpp/0.8.4+cpprest-lts. This PR moves nmos-cpp to them.

  • Dependencies. The Conan build requires the cpprest-lts versions. Both recipes require boost/1.91.0, so nmos-cpp no longer forces Boost or caps it at 1.86.0. cpprest-lts requires Boost 1.66.0 or higher, so the minimum Boost version rises from 1.54.0.
  • OpenSSL. The Conan build updates OpenSSL to 3.5.9, because Conan Center now keeps only 3.5.9 of the 3.5 LTS series.
  • WebSocket++ with MSVC. ws_listener_impl.cpp includes boost/type_traits/is_same.hpp before the websocketpp headers. With MSVC, websocketpp 0.8.4+cpprest-lts uses boost::is_same without including it, and no earlier include declares it.
  • CI.
    • The jobs that build without Conan build cpprest-lts/cpprestsdk at v2.10.21+cpprest-lts.
    • The oldest Boost release tested is now 1.66.0.
    • New Ubuntu 26.04 (GCC 15.2.0) jobs cover Conan, C++23 with Conan, and the system Boost 1.90.0 without Conan.
    • The jobs that build without Conan add _noconan to their build name, so that their artifacts do not clash with the Conan job with the same settings.
  • Visual Studio generator job. That CI job presets the result of an OpenSSL check in cpprestsdk's CMake. Built from source with Conan, the check fails to configure with a multi-config generator, or with MSVC in a Debug build (cpprest-lts/cpprestsdk#74). The preset is the result that the check gives with OpenSSL 1.1.0 and later, so the package ID does not change. The upstream fix is cpprest-lts/cpprestsdk#75. The Conan Center recipe fix is conan-io/conan-center-index#31602, and the preset can be removed once that is published.
  • README. The README links to the forks, documents the Boost 1.66.0 minimum and Boost 1.87 and later support, and lists the new Ubuntu 26.04 jobs in the build status table.

Co-authored-by: Gareth's 🤖 buddy

Require cpprestsdk/2.10.21+cpprest-lts and websocketpp/0.8.4+cpprest-lts
from Conan Center. Both recipes require boost/1.91.0, so the Boost
version no longer needs to be forced or capped at 1.86.0.

cpprest-lts requires Boost 1.66.0 or higher, so raise the minimum Boost
version from 1.54.0, and update the current tested versions.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
The non-Conan jobs build cpprest-lts/cpprestsdk at v2.10.21+cpprest-lts.
The oldest Boost release tested is now 1.66.0, the cpprest-lts minimum.

Add Ubuntu 26.04 (GCC 15) jobs with Conan, a job with the system Boost
without Conan, and a C++23 job with Conan. The C++23 job runs on Linux
because, with C++20 or later on Windows, the Conan Boost recipe builds
Boost.Cobalt, which fails with Boost 1.91.0 (conan-center-index#30414).

Add "_noconan" to the build name of the non-Conan jobs, so that their
artifacts and results do not clash with the Conan job with the same
settings.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
Link to the cpprest-lts forks of the C++ REST SDK and WebSocket++, and
clone cpprest-lts/cpprestsdk at v2.10.21+cpprest-lts. Boost 1.66.0 or
higher is required, and Boost 1.87 or higher is now supported.

List the Ubuntu 26.04 (GCC 15.2.0) jobs in the build status table: the
Conan build, the C++23 build, and the build with the system Boost 1.90.0.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
OpenSSL 3.5.9 fixes CVE-2026-84782 (DTLS retransmits handshake
messages from a stale buffer offset). nmos-cpp does not use DTLS, but
Conan Center now keeps only 3.5.9 of the 3.5 LTS series.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
When websocketpp does not detect the standard type traits, as with MSVC,
which reports __cplusplus as 199711L, websocketpp/common/type_traits.hpp
uses boost::is_same but includes only boost/aligned_storage.hpp. With
websocketpp 0.8.4+cpprest-lts, no earlier include declares it, so the
MSVC build fails.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
When the Visual Studio generator job builds cpprestsdk
2.10.21+cpprest-lts from source, the OpenSSL check in its CMake fails
to configure, because the check's test project cannot use Conan's
per-configuration OpenSSL targets
(cpprest-lts/cpprestsdk#74). Preset the
check's result, _SSL_LEAK_SUPPRESS_AVAILABLE, to OFF, which is the
result the check gives with OpenSSL 1.1.0 and later. The package ID
does not change.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
@garethsb
garethsb marked this pull request as draft December 1, 2026 18:24
@garethsb
garethsb marked this pull request as ready for review December 1, 2026 18:33
Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>

@lo-simon lo-simon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @garethsb, please resolve the README.md conflicts; then I will merge it.

@lo-simon
lo-simon merged commit 466494f into sony:master Dec 2, 2026
14 checks passed
@garethsb
garethsb deleted the feature/cpprest-lts branch December 2, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants