Skip to content

Commit a990c49

Browse files
Merge pull request #269 from adrianlshaw/version
Add PSA API versioning
2 parents 9a562d4 + 429fff4 commit a990c49

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

include/psa/crypto.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,22 @@ extern "C" {
5757
* algorithms, key types, policies, etc. */
5858
#include "crypto_types.h"
5959

60+
/** \defgroup API version
61+
* @{
62+
*/
63+
64+
/**
65+
* The major version of this implementation of the PSA Crypto API
66+
*/
67+
#define PSA_CRYPTO_API_VERSION_MAJOR 1
68+
69+
/**
70+
* The minor version of this implementation of the PSA Crypto API
71+
*/
72+
#define PSA_CRYPTO_API_VERSION_MINOR 0
73+
74+
/**@}*/
75+
6076
/* The file "crypto_values.h" declares macros to build and analyze values
6177
* of integral types defined in "crypto_types.h". */
6278
#include "crypto_values.h"

0 commit comments

Comments
 (0)