Skip to content

Commit

Permalink
Allow ssl_context_info and benchmark to use private functions
Browse files Browse the repository at this point in the history
Signed-off-by: Gilles Peskine <[email protected]>
  • Loading branch information
gilles-peskine-arm committed Dec 23, 2024
1 parent 37065ee commit 44b30cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions programs/ssl/ssl_context_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

/* Private access is needed to print cipher suite properties in
* print_deserialized_ssl_session(). It will no longer be needed once
* mbedtls_ssl_ciphersuite_t migrates from legacy metadata to
* PSA metadata. */
#define MBEDTLS_ALLOW_PRIVATE_ACCESS

#include "mbedtls/build_info.h"
#include "mbedtls/debug.h"
#include "mbedtls/platform.h"
Expand Down
4 changes: 4 additions & 0 deletions programs/test/benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

/* This program uses the legacy crypto API. It should be migrated to the
* PSA API. Until then, enable legacy crypto API functions. */
#define MBEDTLS_ALLOW_PRIVATE_ACCESS

#include "mbedtls/build_info.h"

#include "mbedtls/platform.h"
Expand Down

0 comments on commit 44b30cc

Please sign in to comment.