Skip to content

Commit

Permalink
[wolfssl] Build wolfssl with HAVE_EX_DATA and NO_WOLFSSL_STUB to enab…
Browse files Browse the repository at this point in the history
…le async use and coexistence with openssl without link error (microsoft#38994)

Async applications using wolfssl need to associate extra data
(application context) with the ssl session and context. This is used in
verification callback.
NO_WOLFSSL_STUB is needed to prevent a link time error resulting from
duplicate symbols when linking to both wolfssl and openssl at the same
time

---------

Co-authored-by: Kai Pastor <[email protected]>
Co-authored-by: Monica <[email protected]>
  • Loading branch information
3 people authored Jun 6, 2024
1 parent bdd4abf commit 6e31ee3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ports/wolfssl/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ vcpkg_cmake_get_vars(cmake_vars_file)
include("${cmake_vars_file}")

foreach(config RELEASE DEBUG)
string(APPEND VCPKG_COMBINED_C_FLAGS_${config} " -DWOLFSSL_ALT_CERT_CHAINS -DWOLFSSL_DES_ECB -DWOLFSSL_CUSTOM_OID -DHAVE_OID_ENCODING -DWOLFSSL_CERT_GEN -DWOLFSSL_ASN_TEMPLATE -DWOLFSSL_KEY_GEN -DHAVE_PKCS7 -DHAVE_AES_KEYWRAP -DWOLFSSL_AES_DIRECT -DHAVE_X963_KDF")
string(APPEND VCPKG_COMBINED_C_FLAGS_${config} " -DHAVE_EX_DATA -DNO_WOLFSSL_STUB -DWOLFSSL_ALT_CERT_CHAINS -DWOLFSSL_DES_ECB -DWOLFSSL_CUSTOM_OID -DHAVE_OID_ENCODING -DWOLFSSL_CERT_GEN -DWOLFSSL_ASN_TEMPLATE -DWOLFSSL_KEY_GEN -DHAVE_PKCS7 -DHAVE_AES_KEYWRAP -DWOLFSSL_AES_DIRECT -DHAVE_X963_KDF")
if ("secret-callback" IN_LIST FEATURES)
string(APPEND VCPKG_COMBINED_C_FLAGS_${config} " -DHAVE_SECRET_CALLBACK")
endif()
Expand Down
1 change: 1 addition & 0 deletions ports/wolfssl/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "wolfssl",
"version": "5.7.0",
"port-version": 1,
"description": "TLS and Cryptographic library for many platforms",
"homepage": "https://wolfssl.com",
"license": "GPL-2.0-or-later",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -9386,7 +9386,7 @@
},
"wolfssl": {
"baseline": "5.7.0",
"port-version": 0
"port-version": 1
},
"wolftpm": {
"baseline": "3.2.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/w-/wolfssl.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "60802b6ec5e1284242e1b501a1eed34033bbdc35",
"version": "5.7.0",
"port-version": 1
},
{
"git-tree": "45cca8d8dd8cf4b0310f1c4bbb84c9332cdba032",
"version": "5.7.0",
Expand Down

0 comments on commit 6e31ee3

Please sign in to comment.