Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added SSL stream context options #546

Merged
merged 1 commit into from
Jan 28, 2025
Merged

Added SSL stream context options #546

merged 1 commit into from
Jan 28, 2025

Conversation

llemoine
Copy link
Contributor

Hi,

As mentioned in this issue #238 , I added a way to set SSL related stream context options.

I only added the SSL stream context options, as the only other available stream context options for the imap protocol are the socket options, which I found very specifics (way more than the SSL ones).

I tested the feature with a few Dovecot Docker containers with custom CA or unsecure TLS version.
It works as intended to specify a CA file or a list of ciphers.

I did not set a closed list of SSL options, as from my tests, if an unknown SSL options, or if a wrong value is passed to stream_context_create(), it will be ignored.
However, if needed, it is possible to restrict the options names and check the value types.

Kind regards,

@Webklex Webklex merged commit b9d8b1b into Webklex:master Jan 28, 2025
5 checks passed
@Webklex
Copy link
Owner

Webklex commented Jan 28, 2025

Hi @llemoine ,
many thanks for your pull request! I've happily merged it :)

Best regards & happy coding,

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