Add structured version info for ssl
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 36k
- PR 合并指标
- PR 指标待抓取
描述
Feature or enhancement
ssl.OPENSSL_VERSION_INFO is a plain tuple of five integers. The version of the OpenSSL library that the module was built against is available only as the private ssl._OPENSSL_API_VERSION.
Make ssl.OPENSSL_VERSION_INFO a named tuple with fields major, minor, fix, patch and status, and add ssl.OPENSSL_API_VERSION_INFO for the build-time version, a named tuple of the same type. The existing names describe the runtime library, so the naming scheme of gh-117404 cannot be applied to ssl without renaming; "API version" is OpenSSL's own term for the headers the module was compiled with. _OPENSSL_API_VERSION is kept as an alias.
Linked PRs
- gh-157515
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 ssl.OPENSSL_VERSION_INFO 和 _OPENSSL_API_VERSION 入口点开始,然后查看已链接的 PR gh-157515,因为这项工作已经在进行中。当运行时和构建时版本公开所请求的命名字段,同时 _OPENSSL_API_VERSION 仍为别名时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- security
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 25/100