From d89338ac470dbee720cc23bd5b32d4a0b4caf8c6 Mon Sep 17 00:00:00 2001 From: "Adrian L. Shaw" Date: Thu, 19 Sep 2019 13:32:57 +0100 Subject: [PATCH 1/2] Add API versioning --- include/psa/crypto.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/psa/crypto.h b/include/psa/crypto.h index 89392da67..cf2c1ef31 100644 --- a/include/psa/crypto.h +++ b/include/psa/crypto.h @@ -57,6 +57,22 @@ extern "C" { * algorithms, key types, policies, etc. */ #include "crypto_types.h" +/** \defgroup API version + * @{ + */ + +/** + * The major version of this implementation of the PSA Crypto API + */ +#define PSA_CRYPTO_API_VERSION_MAJOR 1 + +/** + * The minor version of this implementation of the PSA Crypto API + */ +#define PSA_CRYPTO_API_VERSION_MINOR 0 + +/**@}*/ + /* The file "crypto_values.h" declares macros to build and analyze values * of integral types defined in "crypto_types.h". */ #include "crypto_values.h" From 429fff487a0da3fcc7cff998d6f41edc16865ed7 Mon Sep 17 00:00:00 2001 From: "Adrian L. Shaw" Date: Thu, 19 Sep 2019 14:03:49 +0100 Subject: [PATCH 2/2] Remove whitespace --- include/psa/crypto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/psa/crypto.h b/include/psa/crypto.h index cf2c1ef31..7643a13e5 100644 --- a/include/psa/crypto.h +++ b/include/psa/crypto.h @@ -57,7 +57,7 @@ extern "C" { * algorithms, key types, policies, etc. */ #include "crypto_types.h" -/** \defgroup API version +/** \defgroup API version * @{ */