Skip to content

bpo-28182: Expose OpenSSL verification results#3412

Merged
tiran merged 1 commit into
python:masterfrom
tiran:bpo-28182-ssl-error-result
Sep 8, 2017
Merged

bpo-28182: Expose OpenSSL verification results#3412
tiran merged 1 commit into
python:masterfrom
tiran:bpo-28182-ssl-error-result

Conversation

@tiran

@tiran tiran commented Sep 7, 2017

Copy link
Copy Markdown
Member

The SSL module now raises SSLCertVerificationError when OpenSSL fails to
verify the peer's certificate. The exception contains more information about
the error.

Original patch by Chi Hsuan Yen

Signed-off-by: Christian Heimes christian@python.org

https://bugs.python.org/issue28182

@tiran tiran added the type-feature A feature request or enhancement label Sep 7, 2017
@tiran tiran force-pushed the bpo-28182-ssl-error-result branch 3 times, most recently from 0a22a60 to da8bd7b Compare September 7, 2017 17:11
Comment thread Modules/_ssl.c Outdated

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.

PyTuple_Pack does not incref elements, but Py_DECREF(bases) will. Should probably avoid that here (Py_BuildValue("OO", ...) will incref)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

thx

The SSL module now raises SSLCertVerificationError when OpenSSL fails to
verify the peer's certificate. The exception contains more information about
the error.

Original patch by Chi Hsuan Yen

Signed-off-by: Christian Heimes <christian@python.org>
@tiran tiran force-pushed the bpo-28182-ssl-error-result branch from da8bd7b to f794f8e Compare September 7, 2017 21:10
@tiran tiran merged commit b3ad0e5 into python:master Sep 8, 2017
@tiran tiran deleted the bpo-28182-ssl-error-result branch September 8, 2017 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants