Skip to content

Commit

Permalink
Introduce deprecate warning and removed config options
Browse files Browse the repository at this point in the history
Introduce the PSA_CRYPTO_DEPRECATED_WARNING and
PSA_CRYPTO_DEPRECATED_REMOVED config options to
mirror the similarly named options in Mbed TLS.

Signed-off-by: Thomas Daubney <[email protected]>
  • Loading branch information
tom-daubney-arm committed Dec 12, 2023
1 parent 2de5bb4 commit 65f539d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions include/psa/crypto_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,33 @@
*/
//#define TF_PSA_CRYPTO_PLATFORM_ZEROIZE

/**
* \def PSA_CRYPTO_DEPRECATED_WARNING
*
* Mark deprecated functions and features so that they generate a warning if
* used. Functionality deprecated in one version will usually be removed in the
* next version. You can enable this to help you prepare the transition to a
* new major version by making sure your code is not using this functionality.
*
* This only works with GCC and Clang. With other compilers, you may want to
* use PSA_CRYPTO_DEPRECATED_REMOVED
*
* Uncomment to get warnings on using deprecated functions and features.
*/
//#define PSA_CRYPTO_DEPRECATED_WARNING

/**
* \def PSA_CRYPTO_DEPRECATED_REMOVED
*
* Remove deprecated functions and features so that they generate an error if
* used. Functionality deprecated in one version will usually be removed in the
* next version. You can enable this to help you prepare the transition to a
* new major version by making sure your code is not using this functionality.
*
* Uncomment to get errors on using deprecated functions and features.
*/
//#define PSA_CRYPTO_DEPRECATED_REMOVED

/*
* Platform exit macros
*/
Expand Down

0 comments on commit 65f539d

Please sign in to comment.