Skip to content

urldata: move OpenSSL provider state to openssl context struct - #23436

Closed
bagder wants to merge 2 commits into
masterfrom
bagder/provider-to-conn
Closed

bagder wants to merge 2 commits into
masterfrom
bagder/provider-to-conn

Conversation

@bagder

@bagder bagder commented Oct 16, 2026

Copy link
Copy Markdown
Member

It should be kept per connection, to allow connections to outlive the easy handle and it allows it to change provide for subsequent transfers correctly.

It changes behavior slightly for *setopt() since it now runs the logic lazily at context setup time, meaning setting the wrong provider/engine for example will be detected much later now.

@bagder bagder added the TLS label Oct 16, 2026
@bagder
bagder marked this pull request as ready for review October 16, 2026 12:25
@bagder
bagder requested a balanced review from Copilot October 16, 2026 12:26

This comment was marked as resolved.

This comment was marked as resolved.

@bagder bagder changed the title urldata: move OpenSSL provider state to connectdata urldata: move OpenSSL provider state to openssl context struct Oct 16, 2026
@bagder
bagder requested a balanced review from Copilot October 16, 2026 14:38

This comment was marked as resolved.

This comment was marked as resolved.

It should be kept per connection, to allow connections to outlive the
easy handle and it allows the easy handle to change provider for
subsequent transfers correctly.

This changes behavior slightly for *setopt() since it now runs the logic
lazily at transfer setup time, meaning setting the wrong provider/engine
for example will be detected much later now.

Fix an ENGINE memory leak from before.

Revert the 7ea37ab commit that stopped connection reuse.

Closes #23436
@bagder
bagder force-pushed the bagder/provider-to-conn branch from 71af793 to 6aea672 Compare October 16, 2026 15:28
make the connections reused again
@bagder bagder closed this in ec0a5d1 Oct 16, 2026
@bagder
bagder deleted the bagder/provider-to-conn branch October 16, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants