This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
标题: Better SSL errors
类型: enhancement Stage: resolved
Components: Extension Modules Versions: Python 3.3
process
状态: closed Resolution: fixed
Dependencies: 后续:
分配给: 抄送列表: exarkun, georg.brandl, pitrou, python-dev
优先级: low 关键字: patch

Created on 2012-05-16 22:45 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

文件
文件名 上传时间 Description 编辑
ssl_errs.patch pitrou, 2012-05-16 22:45 review
Messages (4)
msg160939 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) 日期: 2012-05-16 22:45
This patch tries to provide better SSL errors by using OpenSSL's official mnemonics. The sub-library mnemonic (e.g. "SSL", "PEM"...) is provided as the "library" attribute on an exception, and the reason mnemonic (e.g. "CERTIFICATE_VERIFY_FAILED") is provided as the "reason" attribute.

I'm welcoming of any comments or suggestions.
msg163138 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) 日期: 2012-06-19 06:43
I'd like to see this in 3.3.
msg163462 - (view) Author: Roundup Robot (python-dev) (Python triager) 日期: 2012-06-22 19:17
New changeset 96513d71e650 by Antoine Pitrou in branch 'default':
Issue #14837: SSL errors now have `library` and `reason` attributes describing precisely what happened and in which OpenSSL submodule.
http://hg.python.org/cpython/rev/96513d71e650

New changeset e193fe3d017e by Antoine Pitrou in branch 'default':
Add forgotten files for #14837.
http://hg.python.org/cpython/rev/e193fe3d017e
msg163463 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) 日期: 2012-06-22 19:21
There it is, Georg :)
As mentioned in the commit message, this unfortunately creates a reference leak, which is apparently related to the use of the stable ABI.
历史
日期 用户 动作 参数
2022-04-11 14:57:30admin修改github: 59042
2012-06-22 19:21:53pitrou修改状态: open -> closed
resolution: fixed
消息: + msg163463

stage: resolved
2012-06-22 19:17:15python-dev修改抄送: + python-dev
消息: + msg163462
2012-06-19 06:43:26georg.brandl修改抄送: + georg.brandl
消息: + msg163138
2012-05-16 22:45:38pitrou创建