Skip to content

Expose OP_NO_TLSv1_3 - #861

Merged
alex merged 2 commits into
pyca:masterfrom
njsmith:add-op-no-tls-v1-3
Aug 2, 2019
Merged

alex merged 2 commits into
pyca:masterfrom
njsmith:add-op-no-tls-v1-3

Conversation

@njsmith

@njsmith njsmith commented Aug 2, 2019 •

Copy link
Copy Markdown
Contributor

Fixes #624

Comment thread src/OpenSSL/SSL.py Outdated
OP_NO_TLSv1 = _lib.SSL_OP_NO_TLSv1
OP_NO_TLSv1_1 = _lib.SSL_OP_NO_TLSv1_1
OP_NO_TLSv1_2 = _lib.SSL_OP_NO_TLSv1_2
OP_NO_TLSv1_3 = _lib.SSL_OP_NO_TLSv1_3

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This symbol isn't going to exist on OpenSSL<1.1.1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@alex

alex commented Aug 2, 2019 via email

Copy link
Copy Markdown
Member

@njsmith

njsmith commented Aug 2, 2019

Copy link
Copy Markdown
Contributor Author

Oh, that's annoying. I even checked that ctx.set_options(0) was a no-op, so it would be safe to use unconditionally :-).

@alex
alex merged commit a181373 into pyca:master Aug 2, 2019
@njsmith
njsmith deleted the add-op-no-tls-v1-3 branch August 2, 2019 04:41
@njsmith

njsmith commented Aug 2, 2019

Copy link
Copy Markdown
Contributor Author

Thanks!

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Is it possible to configure pyopenssl to negotiate TLS-1.2-or-worse?

2 participants