Skip to content

Add enable_cbc_ciphers flag - #526

Merged
kazu-yamamoto merged 1 commit into
haskell-tls:mainfrom
vdukhovni:enable-cbc-flag
Apr 28, 2026
Merged

Add enable_cbc_ciphers flag#526
kazu-yamamoto merged 1 commit into
haskell-tls:mainfrom
vdukhovni:enable-cbc-flag

Conversation

@vdukhovni

Copy link
Copy Markdown
Collaborator

The flag makes it possible to include some of the "safer" CBC ciphers in the build. Applications still have to choose to use these, they are not included in any of the stock ciphersuite lists.

In the SMTP ecosystem, where CBC ciphers don't present the sort of risks that motivate their deprecation in HTTPS, some systems are still CBC-only, and CBC ciphers are still required to achieve interoperability.

[ Given that these have to be chosen explicitly by the application,
perhaps the flag is overkill, and they could just be made available
unconditionally??? The flag is however sufficient for my purposes. ]

@vdukhovni

Copy link
Copy Markdown
Collaborator Author

There should probably be at least some tests that use the flag and the ciphers, unless it is best to just drop the flag, and leave the decision of whether to support these ciphers to each application.
Suggestions?

@kazu-yamamoto

Copy link
Copy Markdown
Collaborator

How about removing the flag/#ifdef and providing the Network.TLS.Extra.CipherCBC (or whatever you like) module instead?

@kazu-yamamoto

Copy link
Copy Markdown
Collaborator

@vdukhovni Gentle ping.

This reintroduces some of the "safer" CBC ciphers.  Applications still
have to choose to use these, they are not included in any of the stock
ciphersuite lists.

In the SMTP ecosystem, where CBC ciphers don't present the sort of risks
that motivate their deprecation in HTTPS, some systems are still
CBC-only, and CBC ciphers are still required to achieve interoperability.
@kazu-yamamoto
kazu-yamamoto self-requested a review April 28, 2026 10:31

@kazu-yamamoto kazu-yamamoto 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.

Now LGTM

@kazu-yamamoto
kazu-yamamoto merged commit 14eb8c7 into haskell-tls:main Apr 28, 2026
18 checks passed
@kazu-yamamoto

Copy link
Copy Markdown
Collaborator

Merged.
Thank you for your contribution!

@kazu-yamamoto

Copy link
Copy Markdown
Collaborator

v2.4.2 has been released.

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