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
Title: Verify OpenSSL APIs in configure script
Type: enhancement Stage: resolved
Components: Build, SSL Versions: Python 3.11, Python 3.10
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: christian.heimes Nosy List: christian.heimes, miss-islington
Priority: normal Keywords: patch

Created on 2021-10-20 10:40 by christian.heimes, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 29088 merged christian.heimes, 2021-10-20 10:46
PR 29099 merged miss-islington, 2021-10-20 15:18
Messages (4)
msg404422 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-10-20 10:40
In thread [1] Robin Becker requested to check for working OpenSSL in configure script. With reasonable effort it is possible to probe for basic APIs such as minimum SSL and EVP interface.

[1] https://mail.python.org/archives/list/python-dev@python.org/thread/IIFABHN7DOTCXMRQ72SLJSU4VDWRM2HB/
msg404425 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-10-20 11:02
Example output:

$ ./configure
checking whether compiling and linking against OpenSSL works... yes
checking for --with-openssl-rpath... 
checking whether OpenSSL provides required APIs... yes

$ ./configure --with-openssl=/home/heimes/dev/python/multissl/openssl/3.0.0
checking for openssl/ssl.h in /home/heimes/dev/python/multissl/openssl/3.0.0... yes
checking whether compiling and linking against OpenSSL works... yes
checking for --with-openssl-rpath... 
checking whether OpenSSL provides required APIs... yes

$ ./configure --with-openssl=/home/heimes/dev/python/multissl/openssl/1.0.2u
checking for openssl/ssl.h in /home/heimes/dev/python/multissl/openssl/1.0.2u... yes
checking whether compiling and linking against OpenSSL works... yes
checking for --with-openssl-rpath... 
checking whether OpenSSL provides required APIs... no
msg404474 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-10-20 15:18
New changeset 81520fe677d15cc7f9af5140bc5f9eca8409ad90 by Christian Heimes in branch 'main':
bpo-45536: Check OpenSSL APIs in configure (GH-29088)
https://github.com/python/cpython/commit/81520fe677d15cc7f9af5140bc5f9eca8409ad90
msg404477 - (view) Author: miss-islington (miss-islington) Date: 2021-10-20 15:46
New changeset 5537b9f10510735447bea81079ac586f46decf20 by Miss Islington (bot) in branch '3.10':
bpo-45536: Check OpenSSL APIs in configure (GH-29088)
https://github.com/python/cpython/commit/5537b9f10510735447bea81079ac586f46decf20
History
Date User Action Args
2022-04-11 14:59:51adminsetgithub: 89699
2021-10-20 15:47:53christian.heimessetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-10-20 15:46:44miss-islingtonsetmessages: + msg404477
2021-10-20 15:18:43miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request27369
2021-10-20 15:18:42christian.heimessetmessages: + msg404474
2021-10-20 11:02:48christian.heimessetmessages: + msg404425
2021-10-20 10:46:43christian.heimessetkeywords: + patch
stage: patch review
pull_requests: + pull_request27354
2021-10-20 10:40:24christian.heimescreate