Skip to content

Commit 9feeafb

Browse files
authored
Merge pull request #814 from joshcooper/PA-6131-2
(PA-6131) Bump openssl version
2 parents 8022244 + d72e298 commit 9feeafb

File tree

2 files changed

+69
-2
lines changed

2 files changed

+69
-2
lines changed

configs/components/openssl-3.0.rb

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
component 'openssl' do |pkg, settings, platform|
2-
pkg.version '3.0.12'
3-
pkg.sha256sum 'f93c9e8edde5e9166119de31755fc87b4aa34863662f67ddfcba14d0b6b69b61'
2+
pkg.version '3.0.13'
3+
pkg.sha256sum '88525753f79d3bec27d2fa7c66aa0b92b3aa9498dafd93d7cfa4b3780cdae313'
44
pkg.url "https://openssl.org/source/openssl-#{pkg.get_version}.tar.gz"
55
pkg.mirror "#{settings[:buildsources_url]}/openssl-#{pkg.get_version}.tar.gz"
66

@@ -27,6 +27,9 @@
2727
pkg.environment 'CYGWIN', settings[:cygwin]
2828
pkg.environment 'MAKE', platform[:make]
2929

30+
# Remove this in 3.0.14 or later
31+
pkg.apply_patch 'resources/patches/openssl/openssl-3.0.13-crypto-providers.patch'
32+
3033
target = platform.architecture == 'x64' ? 'mingw64' : 'mingw'
3134
# elsif platform.is_cross_compiled_linux?
3235
# pkg.environment 'PATH', "/opt/pl-build-tools/bin:$(PATH)"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
From 7b3eda56d7891aceef91867de64f24b20e3db212 Mon Sep 17 00:00:00 2001
2+
From: Richard Levitte <[email protected]>
3+
Date: Thu, 1 Feb 2024 10:57:51 +0100
4+
Subject: [PATCH] Fix a few incorrect paths in some build.info files
5+
6+
The following files referred to ../liblegacy.a when they should have
7+
referred to ../../liblegacy.a. This cause the creation of a mysterious
8+
directory 'crypto/providers', and because of an increased strictness
9+
with regards to where directories are created, configuration failure
10+
on some platforms.
11+
12+
Fixes #23436
13+
14+
Reviewed-by: Matt Caswell <[email protected]>
15+
Reviewed-by: Tomas Mraz <[email protected]>
16+
Reviewed-by: Tom Cosgrove <[email protected]>
17+
(Merged from https://github.com/openssl/openssl/pull/23452)
18+
19+
(cherry picked from commit 667b45454a47959ce2934b74c899662e686993de)
20+
---
21+
crypto/aes/build.info | 2 +-
22+
crypto/ec/build.info | 2 +-
23+
crypto/sha/build.info | 2 +-
24+
3 files changed, 3 insertions(+), 3 deletions(-)
25+
26+
diff --git a/crypto/aes/build.info b/crypto/aes/build.info
27+
index b250903fa6e26..271015e35e1bb 100644
28+
--- a/crypto/aes/build.info
29+
+++ b/crypto/aes/build.info
30+
@@ -76,7 +76,7 @@ DEFINE[../../providers/libdefault.a]=$AESDEF
31+
# already gets everything that the static libcrypto.a has, and doesn't need it
32+
# added again.
33+
IF[{- !$disabled{module} && !$disabled{shared} -}]
34+
- DEFINE[../providers/liblegacy.a]=$AESDEF
35+
+ DEFINE[../../providers/liblegacy.a]=$AESDEF
36+
ENDIF
37+
38+
GENERATE[aes-ia64.s]=asm/aes-ia64.S
39+
diff --git a/crypto/ec/build.info b/crypto/ec/build.info
40+
index a511e887a9ba1..6dd98e9f4f172 100644
41+
--- a/crypto/ec/build.info
42+
+++ b/crypto/ec/build.info
43+
@@ -77,7 +77,7 @@ DEFINE[../../providers/libdefault.a]=$ECDEF
44+
# Otherwise, it already gets everything that the static libcrypto.a
45+
# has, and doesn't need it added again.
46+
IF[{- !$disabled{module} && !$disabled{shared} -}]
47+
- DEFINE[../providers/liblegacy.a]=$ECDEF
48+
+ DEFINE[../../providers/liblegacy.a]=$ECDEF
49+
ENDIF
50+
51+
GENERATE[ecp_nistz256-x86.S]=asm/ecp_nistz256-x86.pl
52+
diff --git a/crypto/sha/build.info b/crypto/sha/build.info
53+
index d61f7de9b6bde..186ec13cc82a1 100644
54+
--- a/crypto/sha/build.info
55+
+++ b/crypto/sha/build.info
56+
@@ -88,7 +88,7 @@ DEFINE[../../providers/libdefault.a]=$SHA1DEF $KECCAK1600DEF
57+
# linked with libcrypto. Otherwise, it already gets everything that
58+
# the static libcrypto.a has, and doesn't need it added again.
59+
IF[{- !$disabled{module} && !$disabled{shared} -}]
60+
- DEFINE[../providers/liblegacy.a]=$SHA1DEF $KECCAK1600DEF
61+
+ DEFINE[../../providers/liblegacy.a]=$SHA1DEF $KECCAK1600DEF
62+
ENDIF
63+
64+
GENERATE[sha1-586.S]=asm/sha1-586.pl

0 commit comments

Comments
 (0)