Skip to content

Update TLS usage for corosio tls_role and stream-hostname API#36

Merged
ashtum merged 1 commit into
cppalliance:developfrom
mvandeberg:pr/corosio-tls-api
Jul 23, 2026
Merged

Update TLS usage for corosio tls_role and stream-hostname API#36
ashtum merged 1 commit into
cppalliance:developfrom
mvandeberg:pr/corosio-tls-api

Conversation

@mvandeberg

Copy link
Copy Markdown
Contributor

corosio replaced openssl_stream's handshake_type with a tls_role enum and moved hostname configuration from tls_context to the stream.

  • handshake(openssl_stream::client/server) -> handshake(tls_role::client/server)
  • configure the SNI/verify hostname on the stream: tls_connection gains a set_hostname() forwarding to openssl_stream::set_hostname, called on the connection before handshake, instead of mutating a per-connection tls_context copy
  • include <boost/corosio/tls_stream.hpp> for tls_role

corosio replaced openssl_stream's handshake_type with a tls_role enum and
moved hostname configuration from tls_context to the stream.

- handshake(openssl_stream::client/server) -> handshake(tls_role::client/server)
- configure the SNI/verify hostname on the stream: tls_connection gains a
  set_hostname() forwarding to openssl_stream::set_hostname, called on the
  connection before handshake, instead of mutating a per-connection
  tls_context copy
- include <boost/corosio/tls_stream.hpp> for tls_role
@cppalliance-bot

Copy link
Copy Markdown

An automated preview of the documentation is available at https://36.burl.prtest3.cppalliance.org/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2026-07-22 17:56:28 UTC

@codecov

codecov Bot commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.10%. Comparing base (2ac64ac) to head (830162d).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop      #36   +/-   ##
========================================
  Coverage    98.10%   98.10%           
========================================
  Files           39       39           
  Lines         1636     1639    +3     
========================================
+ Hits          1605     1608    +3     
  Misses          31       31           
Flag Coverage Δ
linux 98.10% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/detail/connection_pool.cpp 98.50% <100.00%> (+0.06%) ⬆️

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2ac64ac...830162d. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ashtum
ashtum merged commit 490dcbf into cppalliance:develop Jul 23, 2026
13 checks passed
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.

3 participants