Skip to content

Commit

Permalink
[openssl] add feature to enable ssl3/weak-ssl-ciphers (#35196)
Browse files Browse the repository at this point in the history
  • Loading branch information
BamButz committed Dec 21, 2023
1 parent 4874bea commit ec05fe4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
11 changes: 9 additions & 2 deletions ports/openssl/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ vcpkg_from_github(
vcpkg_list(SET CONFIGURE_OPTIONS
enable-static-engine
enable-capieng
no-ssl3
no-weak-ssl-ciphers
no-tests
no-docs
)
Expand All @@ -58,6 +56,15 @@ if(NOT "tools" IN_LIST FEATURES)
vcpkg_list(APPEND CONFIGURE_OPTIONS no-apps)
endif()

if("weak-ssl-ciphers" IN_LIST FEATURES)
vcpkg_list(APPEND CONFIGURE_OPTIONS enable-weak-ssl-ciphers)
endif()

if("ssl3" IN_LIST FEATURES)
vcpkg_list(APPEND CONFIGURE_OPTIONS enable-ssl3)
vcpkg_list(APPEND CONFIGURE_OPTIONS enable-ssl3-method)
endif()

if(DEFINED OPENSSL_USE_NOPINSHARED)
vcpkg_list(APPEND CONFIGURE_OPTIONS no-pinshared)
endif()
Expand Down
7 changes: 7 additions & 0 deletions ports/openssl/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "openssl",
"version": "3.2.0",
"port-version": 1,
"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",
Expand All @@ -23,9 +24,15 @@
"description": "Enable fips",
"supports": "!static"
},
"ssl3": {
"description": "Enable SSL3"
},
"tools": {
"description": "Install openssl executable and scripts",
"supports": "!uwp"
},
"weak-ssl-ciphers": {
"description": "Enable weak-ssl-ciphers"
}
}
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6338,7 +6338,7 @@
},
"openssl": {
"baseline": "3.2.0",
"port-version": 0
"port-version": 1
},
"openssl-unix": {
"baseline": "deprecated",
Expand Down
5 changes: 5 additions & 0 deletions versions/o-/openssl.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "dd76b04663283d999c149033c3fac211d08f0324",
"version": "3.2.0",
"port-version": 1
},
{
"git-tree": "b9b4587c2e00e793e735d8ac5094f64dbfcf44e1",
"version": "3.2.0",
Expand Down

0 comments on commit ec05fe4

Please sign in to comment.