mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 08:58:59 +08:00
update openssl to 3.1.0 (#30263)
This commit is contained in:
parent
9b9c2758ec
commit
e84a58fe26
@ -19,14 +19,13 @@ vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO openssl/openssl
|
||||
REF "openssl-${VERSION}"
|
||||
SHA512 5a821aaaaa89027ce08a347e5fc216757c2971e29f7d24792609378c54f657839b3775bf639e7330b28b4f96ef0d32869f0a96afcb25c8a2e1c2fe51a6eb4aa3
|
||||
SHA512 877b4bc4b59126bdaf626b01322c8ac5325945234acd14907e4a23019f1fd38ec17b5fae9ff60aa9b6b0089c29b0e4255a19cd2a1743c3db82a616286c60d3b9
|
||||
PATCHES
|
||||
disable-apps.patch
|
||||
disable-install-docs.patch
|
||||
script-prefix.patch
|
||||
windows/install-layout.patch
|
||||
windows/install-pdbs.patch
|
||||
windows/umul128-arm64.patch # Fixed upstream in https://github.com/openssl/openssl/pull/20244, but not released as of 3.0.8
|
||||
unix/android-cc.patch
|
||||
unix/move-openssldir.patch
|
||||
unix/no-empty-dirs.patch
|
||||
|
@ -1,7 +1,6 @@
|
||||
{
|
||||
"name": "openssl",
|
||||
"version": "3.0.8",
|
||||
"port-version": 2,
|
||||
"version": "3.1.0",
|
||||
"description": "OpenSSL is an open source project that provides a robust, commercial-grade, and full-featured toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. It is also a general-purpose cryptography library.",
|
||||
"homepage": "https://www.openssl.org",
|
||||
"license": "Apache-2.0",
|
||||
|
@ -1,40 +0,0 @@
|
||||
diff --git a/crypto/bn/rsa_sup_mul.c b/crypto/bn/rsa_sup_mul.c
|
||||
index 0e0d02e1946e..3b57161b4589 100644
|
||||
--- a/crypto/bn/rsa_sup_mul.c
|
||||
+++ b/crypto/bn/rsa_sup_mul.c
|
||||
@@ -110,12 +110,34 @@ static ossl_inline void _mul_limb(limb_t *hi, limb_t *lo, limb_t a, limb_t b)
|
||||
*lo = (limb_t)t;
|
||||
}
|
||||
#elif (BN_BYTES == 8) && (defined _MSC_VER)
|
||||
-/* https://learn.microsoft.com/en-us/cpp/intrinsics/umul128?view=msvc-170 */
|
||||
+# if defined(_M_X64)
|
||||
+/*
|
||||
+ * on x86_64 (x64) we can use the _umul128 intrinsic to get one `mul`
|
||||
+ * instruction to get both high and low 64 bits of the multiplication.
|
||||
+ * https://learn.microsoft.com/en-us/cpp/intrinsics/umul128?view=msvc-140
|
||||
+ */
|
||||
+#include <intrin.h>
|
||||
#pragma intrinsic(_umul128)
|
||||
static ossl_inline void _mul_limb(limb_t *hi, limb_t *lo, limb_t a, limb_t b)
|
||||
{
|
||||
*lo = _umul128(a, b, hi);
|
||||
}
|
||||
+# elif defined(_M_ARM64) || defined (_M_IA64)
|
||||
+/*
|
||||
+ * We can't use the __umulh() on x86_64 as then msvc generates two `mul`
|
||||
+ * instructions; so use this more portable intrinsic on platforms that
|
||||
+ * don't support _umul128 (like aarch64 (ARM64) or ia64)
|
||||
+ * https://learn.microsoft.com/en-us/cpp/intrinsics/umulh?view=msvc-140
|
||||
+ */
|
||||
+#include <intrin.h>
|
||||
+static ossl_inline void _mul_limb(limb_t *hi, limb_t *lo, limb_t a, limb_t b)
|
||||
+{
|
||||
+ *lo = a * b;
|
||||
+ *hi = __umulh(a, b);
|
||||
+}
|
||||
+# else
|
||||
+# error Only x64, ARM64 and IA64 supported.
|
||||
+# endif /* defined(_M_X64) */
|
||||
#else
|
||||
/*
|
||||
* if the compiler doesn't have either a 128bit data type nor a "return
|
@ -5809,8 +5809,8 @@
|
||||
"port-version": 0
|
||||
},
|
||||
"openssl": {
|
||||
"baseline": "3.0.8",
|
||||
"port-version": 2
|
||||
"baseline": "3.1.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"openssl-unix": {
|
||||
"baseline": "deprecated",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "179a1ad3f5a5bbcb77f2e00688e4c467f03d4311",
|
||||
"version": "3.1.0",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "3fbd85566107cc3a76ed800844569f1a7503f9d6",
|
||||
"version": "3.0.8",
|
||||
|
Loading…
Reference in New Issue
Block a user