[New-bugs-announce] [issue43788] Make ssl_data.h version specific

Christian Heimes report at bugs.python.org
Fri Apr 9 06:04:48 EDT 2021

New submission from Christian Heimes <lists at cheimes.de>:

_ssl_data.h contains static tables with OpenSSL error names and reasons. The stables are created by scrapping header files. The current approach has two issues:

- error codes are version dependent. OpenSSL 1.1.1 uses different codes and has a different set of error reasons as 3.0.0.
- parsing header files with regular expressions is err-prone.

I'm going to introduce version-specific data tables and re-write the current make_ssl_data.py script to use OpenSSL's crypto/err/openssl.txt and crypto/err/openssl.ec. The text files exist since OpenSSL 1.1.

assignee: christian.heimes
components: SSL
messages: 390603
nosy: christian.heimes
priority: normal
severity: normal
status: open
title: Make ssl_data.h version specific
type: enhancement
versions: Python 3.10, Python 3.8, Python 3.9

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list