-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integration-tests: Enable access to mbedtls "private" fields
Define the macro `MBEDTLS_ALLOW_PRIVATE_ACCESS` to avoid the build failures caused while accessing private members of Mbed TLS structure with Mbed TLS 3.6.0. Signed-off-by: Devaraj Ranganna <[email protected]>
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 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
32 changes: 32 additions & 0 deletions
32
..._integration_tests/integration/patches/0004-Enable-access-to-mbedtls-private-fields.patch
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,32 @@ | ||
From c5a51e721331175a3ea3f42093c4336ad2697889 Mon Sep 17 00:00:00 2001 | ||
From: Devaraj Ranganna <[email protected]> | ||
Date: Tue, 21 May 2024 12:56:39 +0000 | ||
Subject: [PATCH] Enable access to mbedtls "private" fields | ||
|
||
Define the macro `MBEDTLS_ALLOW_PRIVATE_ACCESS` so that, the Mbed TLS structure | ||
fields that are marked as private are still accessible. | ||
|
||
Signed-off-by: Devaraj Ranganna <[email protected]> | ||
--- | ||
src/pkcs11/core_pkcs11_test.c | 5 +++++ | ||
1 file changed, 5 insertions(+) | ||
|
||
diff --git a/src/pkcs11/core_pkcs11_test.c b/src/pkcs11/core_pkcs11_test.c | ||
index 71bad5a..6dcc8b5 100644 | ||
--- a/src/pkcs11/core_pkcs11_test.c | ||
+++ b/src/pkcs11/core_pkcs11_test.c | ||
@@ -32,6 +32,11 @@ | ||
#include <stdlib.h> | ||
#include <string.h> | ||
|
||
+/** | ||
+ * @brief Declaring MBEDTLS_ALLOW_PRIVATE_ACCESS allows access to mbedtls "private" fields. | ||
+ */ | ||
+#define MBEDTLS_ALLOW_PRIVATE_ACCESS | ||
+ | ||
/* corePKCS11 includes. */ | ||
#include "core_pki_utils.h" | ||
#include "core_pkcs11.h" | ||
-- | ||
2.43.2 | ||
|