You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use autoconf to detect OpenSSL and libssl features #76779
Starting with bpo-31399 Python will require some OpenSSL 1.0.2 features. The features are not available in LibreSSL yet. There is no easy way to detect the feature from setup.py. The inc_dir variable in setup.py does not reflect CPPFLAG. I tried "self.compiler.preprocess()" but run into more issues. For example prints to stderr in error cases.
Activity
tiran commentedon Jan 19, 2018
Starting with bpo-31399 Python will require some OpenSSL 1.0.2 features. The features are not available in LibreSSL yet. There is no easy way to detect the feature from setup.py. The inc_dir variable in setup.py does not reflect CPPFLAG. I tried "self.compiler.preprocess()" but run into more issues. For example prints to stderr in error cases.
https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html makes it easy to check for working OpenSSL. It uses either pkg-config or falls back to manual detection in common locations.
Based on the M4 macro it is easy to check for features like working X509_VERIFY_PARAM_set1_host() function.
tiran commentedon Jan 20, 2018
New changeset ff5be6e by Christian Heimes in branch 'master':
bpo-32598: Use autoconf to detect usable OpenSSL (bpo-5242)
ff5be6e
tiran commentedon Jan 20, 2018
Thanks, Andrew