Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 0926d39

Browse files
author
Matthias Koeppe
committed
build/pkgs/openssl/spkg-configure.m4: Reject openssl < 1.1.1
1 parent 52915b6 commit 0926d39

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

build/pkgs/openssl/spkg-configure.m4

+21-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
11
SAGE_SPKG_CONFIGURE([openssl], [
2-
AX_CHECK_OPENSSL([], [
2+
AX_CHECK_OPENSSL([
3+
AC_MSG_CHECKING([whether OpenSSL >= 1.1.1, as required by PEP 644])
4+
AC_COMPILE_IFELSE(
5+
dnl Trac #32580: Need OpenSSL >= 1.1.1 for PEP 644
6+
dnl If M is the number from OPENSSL_VERSION_MAJOR
7+
dnl NN is the number from OPENSSL_VERSION_MINOR
8+
dnl PP is the number from OPENSSL_VERSION_PATCH
9+
dnl -> OPENSSL_VERSION_NUMBER is 0xMNN00PP0L
10+
[AC_LANG_PROGRAM([[
11+
#include <openssl/ssl.h>
12+
#if OPENSSL_VERSION_NUMBER < 0x10100010L
13+
# error OpenSSL >= 1.1.1 is required according to PEP 644
14+
#endif
15+
]], [])], [
16+
AC_MSG_RESULT([yes])
17+
sage_spkg_install_openssl=no
18+
], [
19+
AC_MSG_RESULT([no])
20+
sage_spkg_install_openssl=yes
21+
])
22+
], [dnl No openssl found
323
sage_spkg_install_openssl=yes
4-
AC_MSG_WARN([Because your system does not have a suitable OpenSSL library,
5-
Sage will install a prerelease version of OpenSSL from the 3.0 alpha series.
6-
The OpenSSL Project Team indicates that this prerelease version has been provided
7-
for testing ONLY. It should NOT be used for security critical purposes.
8-
We strongly recommend to install OpenSSL using the system package manager and
9-
to re-run configure.])
1024
])
1125
])

0 commit comments

Comments
 (0)