-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[openssl] Update openssl to 1.1.1g #11003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| Source: openssl-unix | ||
| Version: 1.1.1d-3 | ||
| Version: 1.1.1g | ||
| 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. | ||
| Supports: !(windows|uwp) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| Source: openssl-uwp | ||
| Version: 1.1.1d-1 | ||
| Version: 1.1.1g | ||
| 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. | ||
| Supports: uwp | ||
| Supports: uwp |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| if (NOT VCPKG_TARGET_IS_UWP) | ||
| message(FATAL_ERROR "${PORT} only supports UWP") | ||
| endif() | ||
| vcpkg_fail_port_install(MESSAGE "${PORT} is only for Windows Universal Platform" ON_TARGET "Linux" "OSX") | ||
|
|
||
|
|
||
| if(EXISTS "${CURRENT_INSTALLED_DIR}/include/openssl/ssl.h") | ||
| message(WARNING "Can't build openssl if libressl is installed. Please remove libressl, and try install openssl again if you need it. Build will continue but there might be problems since libressl is only a subset of openssl") | ||
|
|
@@ -10,30 +9,18 @@ endif() | |
|
|
||
| vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY) | ||
|
|
||
| if (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm") | ||
| set(UWP_PLATFORM "arm") | ||
| elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64") | ||
| set(UWP_PLATFORM "arm64") | ||
| elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "x64") | ||
| set(UWP_PLATFORM "x64") | ||
| elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "x86") | ||
| set(UWP_PLATFORM "Win32") | ||
| else () | ||
| message(FATAL_ERROR "Unsupported architecture") | ||
| endif() | ||
|
|
||
| vcpkg_find_acquire_program(PERL) | ||
| vcpkg_find_acquire_program(JOM) | ||
| get_filename_component(JOM_EXE_PATH ${JOM} DIRECTORY) | ||
| get_filename_component(PERL_EXE_PATH ${PERL} DIRECTORY) | ||
| set(ENV{PATH} "$ENV{PATH};${PERL_EXE_PATH};${JOM_EXE_PATH}") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We prefer to use |
||
|
|
||
| set(OPENSSL_VERSION 1.1.1d) | ||
| set(OPENSSL_VERSION 1.1.1g) | ||
|
|
||
| vcpkg_download_distfile(ARCHIVE | ||
| URLS "https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz" "https://www.openssl.org/source/old/1.1.1/openssl-${OPENSSL_VERSION}.tar.gz" | ||
| FILENAME "openssl-${OPENSSL_VERSION}.tar.gz" | ||
| SHA512 2bc9f528c27fe644308eb7603c992bac8740e9f0c3601a130af30c9ffebbf7e0f5c28b76a00bbb478bad40fbe89b4223a58d604001e1713da71ff4b7fe6a08a7 | ||
| SHA512 01e3d0b1bceeed8fb066f542ef5480862001556e0f612e017442330bbd7e5faee228b2de3513d7fc347446b7f217e27de1003dc9d7214d5833b97593f3ec25ab | ||
| ) | ||
|
|
||
| vcpkg_extract_source_archive_ex( | ||
|
|
@@ -56,6 +43,7 @@ set(CONFIGURE_COMMAND ${PERL} Configure | |
| no-ssl2 | ||
| no-asm | ||
| no-uplink | ||
| no-tests | ||
| -utf-8 | ||
| shared | ||
| ) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| Source: openssl-windows | ||
| Version: 1.1.1d-2 | ||
| Version: 1.1.1g | ||
| 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. | ||
| Supports: windows | ||
| Supports: windows |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,15 +8,15 @@ endif() | |
|
|
||
| vcpkg_find_acquire_program(PERL) | ||
|
|
||
| set(OPENSSL_VERSION 1.1.1d) | ||
| set(OPENSSL_VERSION 1.1.1g) | ||
|
|
||
| get_filename_component(PERL_EXE_PATH ${PERL} DIRECTORY) | ||
| set(ENV{PATH} "$ENV{PATH};${PERL_EXE_PATH}") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We prefer to use |
||
|
|
||
| vcpkg_download_distfile(ARCHIVE | ||
| URLS "https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz" "https://www.openssl.org/source/old/1.1.1/openssl-${OPENSSL_VERSION}.tar.gz" | ||
| FILENAME "openssl-${OPENSSL_VERSION}.tar.gz" | ||
| SHA512 2bc9f528c27fe644308eb7603c992bac8740e9f0c3601a130af30c9ffebbf7e0f5c28b76a00bbb478bad40fbe89b4223a58d604001e1713da71ff4b7fe6a08a7 | ||
| SHA512 01e3d0b1bceeed8fb066f542ef5480862001556e0f612e017442330bbd7e5faee228b2de3513d7fc347446b7f217e27de1003dc9d7214d5833b97593f3ec25ab | ||
| ) | ||
|
|
||
| vcpkg_extract_source_archive_ex( | ||
|
|
@@ -39,6 +39,7 @@ set(CONFIGURE_COMMAND ${PERL} Configure | |
| enable-static-engine | ||
| enable-capieng | ||
| no-ssl2 | ||
| no-tests | ||
| -utf-8 | ||
| ${OPENSSL_SHARED} | ||
| ) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| Source: openssl | ||
| Version: 1.1.1d | ||
| Version: 1.1.1g | ||
| Homepage: https://www.openssl.org | ||
| 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. | ||
| Build-Depends: openssl-windows (!uwp&windows), openssl-uwp (uwp), openssl-unix (!uwp&!windows) | ||
| Build-Depends: openssl-windows (!uwp&windows), openssl-uwp (uwp), openssl-unix (!uwp&!windows) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please update the way to handle copyright as
file(INSTALL ${MASTER_COPY_SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vcpkg_test_cmake(PACKAGE_NAME OpenSSL MODULE)is deprecated.Could you please remove this?