Skip to content

Commit

Permalink
support openssl3 linking
Browse files Browse the repository at this point in the history
  • Loading branch information
kashifkhan committed Sep 23, 2024
1 parent ccdbea5 commit 38659ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ CFLAGS = "-mmacosx-version-min=10.9 -I/tmp/openssl/include"
[tool.cibuildwheel.linux]
archs = ["x86_64"]
manylinux-x86_64-image = "manylinux2014"
before-build = ["yum -y install perl-IPC-Cmd openssl-devel","bash utils/install_openssl.sh"]
environment = {OPENSSL_ROOT_DIR="/opt/pyca/cryptography/openssl", LIBRARY_PATH="/opt/pyca/cryptography/openssl/lib", CPATH="/opt/pyca/cryptography/openssl/include", CFLAGS="-Wno-error=incompatible-pointer-types -Wunused-function"}
before-build = ["yum -y install perl-IPC-Cmd","bash utils/install_openssl.sh"]
environment = {OPENSSL_ROOT_DIR="/opt/pyca/cryptography/openssl", LD_LIBRARY_PATH="/opt/pyca/cryptography/openssl/lib64", LIBRARY_PATH="/opt/pyca/cryptography/openssl/lib64", CPATH="/opt/pyca/cryptography/openssl/include", CFLAGS="-Wno-error=incompatible-pointer-types -Wunused-function"}
5 changes: 3 additions & 2 deletions utils/install_openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ set -xe

OPENSSL_URL="https://github.com/openssl/openssl/releases/download/"

export OPENSSL_VERSION="openssl-3.2.3"
export OPENSSL_SHA256=" 52b5f1c6b8022bc5868c308c54fb77705e702d6c6f4594f99a0df216acf46239"
export OPENSSL_VERSION="openssl-3.0.15"
export OPENSSL_SHA256=" 23c666d0edf20f14249b3d8f0368acaee9ab585b09e1de82107c66e1f3ec9533"
# We need a base set of flags because on Windows using MSVC
# enable-ec_nistp_64_gcc_128 doesn't work since there's no 128-bit type
export OPENSSL_BUILD_FLAGS_WINDOWS="no-ssl3 no-ssl3-method no-zlib no-shared no-comp no-dynamic-engine"
Expand All @@ -19,6 +19,7 @@ function check_sha256sum {
}

curl -#LO "${OPENSSL_URL}/${OPENSSL_VERSION}/${OPENSSL_VERSION}.tar.gz"
yum -y remove openssl openssl-devel
check_sha256sum ${OPENSSL_VERSION}.tar.gz ${OPENSSL_SHA256}
tar zxf ${OPENSSL_VERSION}.tar.gz
PATH=/opt/perl/bin:$PATH
Expand Down

0 comments on commit 38659ac

Please sign in to comment.