-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade OpenSSL to 1.1.1m for Windows, Mac, Android and iOS (#102)
* Update the OpenSSL library for Android, iOS and Mac Signed-off-by: Junbo Liang <[email protected]>
- Loading branch information
Showing
15 changed files
with
254 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
From 4fdbcfd46b65c2199e77b88f2478cf21ca19ee3c Mon Sep 17 00:00:00 2001 | ||
Date: Fri, 11 Mar 2022 13:18:47 -0800 | ||
Subject: [PATCH] Set OpenSSL version to 1.1.1m | ||
|
||
--- | ||
ports/openssl-unix/vcpkg.json | 2 +- | ||
ports/openssl-windows/vcpkg.json | 2 +- | ||
2 files changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/ports/openssl-unix/vcpkg.json b/ports/openssl-unix/vcpkg.json | ||
index 16ac635a7..e0694795f 100644 | ||
--- a/ports/openssl-unix/vcpkg.json | ||
+++ b/ports/openssl-unix/vcpkg.json | ||
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "openssl-unix", | ||
- "version-string": "1.1.1h", | ||
+ "version-string": "1.1.1m", | ||
"port-version": 2, | ||
"description": "Deprecated OpenSSL port", | ||
"supports": "!(windows | uwp)", | ||
diff --git a/ports/openssl-windows/vcpkg.json b/ports/openssl-windows/vcpkg.json | ||
index 069235b15..be53ad5c2 100644 | ||
--- a/ports/openssl-windows/vcpkg.json | ||
+++ b/ports/openssl-windows/vcpkg.json | ||
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "openssl-windows", | ||
- "version-string": "1.1.1h", | ||
+ "version-string": "1.1.1m", | ||
"port-version": 2, | ||
"description": "Deprecated OpenSSL port", | ||
"supports": "windows", | ||
-- | ||
2.34.0.windows.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# | ||
# Copyright (c) Contributors to the Open 3D Engine Project. | ||
# For complete copyright and license terms please see the LICENSE at the root of this distribution. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 OR MIT | ||
# | ||
# | ||
|
||
cmake_minimum_required(VERSION 3.20) | ||
|
||
PROJECT(test_OpenSSL VERSION 1.0 LANGUAGES C) | ||
|
||
find_package(OpenSSL) | ||
|
||
add_executable(test_OpenSSL test_OpenSSL.c) | ||
|
||
# note that we use 3rdParty::OpenSSL here. This will ONLY work | ||
# if the O3DE version of OpenSSL is used, which is what we are testing for. | ||
target_link_libraries(test_OpenSSL PRIVATE 3rdParty::OpenSSL) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
Copyright (c) Contributors to the Open 3D Engine Project. | ||
For complete copyright and license terms please see the LICENSE at the root of this distribution. | ||
SPDX-License-Identifier: Apache-2.0 OR MIT | ||
*/ | ||
|
||
#include <stdio.h> | ||
#include <string.h> | ||
|
||
// this is just a super basic include and compile and link test | ||
// it doesn't exercise the library much, but if this compiles and links | ||
// its likely that further testing needs to be done in a real full project | ||
// rather than artificially | ||
|
||
// test whether a header is found | ||
#include <openssl/ssl.h> | ||
|
||
int main() | ||
{ | ||
if (OPENSSL_init_ssl(0, NULL) == 0) | ||
{ | ||
printf("FAILURE! OPENSSL failed call to OPENSSL_init_ssl!\n"); | ||
return 1; | ||
} | ||
|
||
if (strcmp(OPENSSL_VERSION_TEXT, "OpenSSL 1.1.1m 14 Dec 2021") != 0) | ||
{ | ||
printf("FAILURE! OpenSSL OPENSSL_VERSION_TEXT returned invalid text (%s)!\n", OPENSSL_VERSION_TEXT); | ||
return 1; | ||
} | ||
|
||
printf("Success: All is ok!\n"); | ||
return 0; | ||
} |
Oops, something went wrong.