Skip to content

Commit 7a6855a

Browse files
Ahmed Yarub Hani Al NuaimiJonLiu1993ahmedalnuaimi
authored
[s2n] Update s2n's version to 1.3.5 (#22833)
* Update s2n's version * Update s2n's version * Update s2n * Update s2n's patch * Update s2n's patch * Update ports/s2n/vcpkg.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update s2n's version * Update s2n's version * Update versions * Update versions * Update versions * Update versions * Update versions * Update versions * Update versions * Update versions * Update versions * Update versions * Update versions * Update to 1.3.5 * Update to 1.3.5 * Update to 1.3.5 * Update to 1.3.5 Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Ahmed Yarub Hani Al Nuaimi <ahmed.alnuaimi@zwift.com>
1 parent 0573bca commit 7a6855a

5 files changed

Lines changed: 54 additions & 6 deletions

File tree

ports/s2n/portfile.cmake

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
vcpkg_from_github(
22
OUT_SOURCE_PATH SOURCE_PATH
33
REPO aws/s2n-tls
4-
REF ab9a3be5a8abcbc5bd7bdba662497a717737c838 # v1.3.0
5-
SHA512 0150cba56f7940253ffa5af0c27fdc8db08961d4c8a80377d25f588fa8a56249eb02723304969d0fdebe570388545527ee826a3070c21e50e63c4f021d425728
4+
REF 36c3dc72ab1359cf721294e1258dfdc2962f3ffc # v1.3.5
5+
SHA512 2c9eed12e90e5fc987758635fec4a7418c20d25c724cfa391090b06bfcc4eb5925b4011d51a99e7c7ab80f535684ee3934ba4734b7966edd323bf88bc5953d7c
66
PATCHES
77
fix-cmake-target-path.patch
88
use-openssl-crypto.patch
9+
remove-trycompile.patch
910
)
1011

1112
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
1213
FEATURES
1314
tests BUILD_TESTING
1415
)
16+
17+
set(EXTRA_ARGS)
18+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "wasm32")
19+
set(EXTRA_ARGS "-DS2N_NO_PQ=TRUE")
20+
endif()
21+
1522
vcpkg_cmake_configure(
1623
SOURCE_PATH "${SOURCE_PATH}"
1724
OPTIONS
25+
${EXTRA_ARGS}
1826
${FEATURE_OPTIONS}
1927
-DUNSAFE_TREAT_WARNINGS_AS_ERRORS=OFF
2028
)

ports/s2n/remove-trycompile.patch

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
--- a/CMakeLists.txt (revision 86c857094a2d94fafce15a3d32abb4052e664c5c)
3+
+++ b/CMakeLists.txt (date 1643340236796)
4+
@@ -409,32 +409,6 @@
5+
endif()
6+
endif()
7+
8+
-# Determine if EVP_md5_sha1 is available in libcrypto
9+
-try_compile(
10+
- LIBCRYPTO_SUPPORTS_EVP_MD5_SHA1_HASH
11+
- ${CMAKE_BINARY_DIR}
12+
- SOURCES "${CMAKE_CURRENT_LIST_DIR}/tests/features/evp_md5_sha1.c"
13+
- LINK_LIBRARIES crypto ${OS_LIBS}
14+
- CMAKE_FLAGS
15+
- "-DINCLUDE_DIRECTORIES=$<TARGET_PROPERTY:crypto,INTERFACE_INCLUDE_DIRECTORIES>"
16+
-)
17+
-if (LIBCRYPTO_SUPPORTS_EVP_MD5_SHA1_HASH)
18+
- target_compile_options(${PROJECT_NAME} PUBLIC -DS2N_LIBCRYPTO_SUPPORTS_EVP_MD5_SHA1_HASH)
19+
-endif()
20+
-
21+
-# Determine if EVP_MD_CTX_set_pkey_ctx is available in libcrypto
22+
-try_compile(
23+
- LIBCRYPTO_SUPPORTS_EVP_MD_CTX_SET_PKEY_CTX
24+
- ${CMAKE_BINARY_DIR}
25+
- SOURCES "${CMAKE_CURRENT_LIST_DIR}/tests/features/evp_md_ctx_set_pkey_ctx.c"
26+
- LINK_LIBRARIES crypto ${OS_LIBS}
27+
- CMAKE_FLAGS
28+
- "-DINCLUDE_DIRECTORIES=$<TARGET_PROPERTY:crypto,INTERFACE_INCLUDE_DIRECTORIES>"
29+
-)
30+
-if (LIBCRYPTO_SUPPORTS_EVP_MD_CTX_SET_PKEY_CTX)
31+
- target_compile_options(${PROJECT_NAME} PUBLIC -DS2N_LIBCRYPTO_SUPPORTS_EVP_MD_CTX_SET_PKEY_CTX)
32+
-endif()
33+
-
34+
if (S2N_INTERN_LIBCRYPTO)
35+
if (NOT LibCrypto_STATIC_LIBRARY)
36+
message(FATAL_ERROR "libcrypto interning requires a static build of libcrypto.a to be available")

ports/s2n/vcpkg.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "s2n",
3-
"version": "1.3.0",
4-
"port-version": 1,
3+
"version": "1.3.5",
54
"description": "C99 implementation of the TLS/SSL protocols.",
65
"homepage": "https://github.com/aws/s2n-tls",
76
"supports": "!uwp & !windows",

versions/baseline.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6201,8 +6201,8 @@
62016201
"port-version": 1
62026202
},
62036203
"s2n": {
6204-
"baseline": "1.3.0",
6205-
"port-version": 1
6204+
"baseline": "1.3.5",
6205+
"port-version": 0
62066206
},
62076207
"safeint": {
62086208
"baseline": "3.0.26",

versions/s-/s2n.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "6eed0d44ebcda6eea8c4a79b37ee119b9125060a",
5+
"version": "1.3.5",
6+
"port-version": 0
7+
},
38
{
49
"git-tree": "7cb2325defd326de178cf524bd5db039ff1dc112",
510
"version": "1.3.0",

0 commit comments

Comments
 (0)