Skip to content

Workaround missing ssl.PROTOCOL_TLS#54

Merged
fgsch merged 2 commits intomainfrom
fgsch/python-workaround
Nov 20, 2020
Merged

Workaround missing ssl.PROTOCOL_TLS#54
fgsch merged 2 commits intomainfrom
fgsch/python-workaround

Conversation

@fgsch
Copy link
Copy Markdown
Contributor

@fgsch fgsch commented Nov 19, 2020

And bump in preparation for a new release.

Some older python versions (e.g. 3.5.2) don't have it.
@fgsch fgsch requested a review from fzipi November 19, 2020 23:10
Copy link
Copy Markdown
Member

@fzipi fzipi left a comment

Choose a reason for hiding this comment

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

I mean, technically LGTM.

But... 2020.... do we need to support SSLv3? Don't get me wrong, I like to be inclusive.

I think you have additional tests not present here, right?

@fgsch
Copy link
Copy Markdown
Contributor Author

fgsch commented Nov 20, 2020

>>> import ssl
>>> ssl.PROTOCOL_TLS == ssl.PROTOCOL_SSLv23
True

PROTOCOL_SSLv23 is an alias for PROTOCOL_TLS in newer systems (> 2.7.12 and > 3.5.2).
Its usage is deprecated in favour of PROTOCOL_TLS.

@fgsch fgsch merged commit f5741aa into main Nov 20, 2020
@fgsch fgsch deleted the fgsch/python-workaround branch November 20, 2020 02:42
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