Skip to content

Commit e0fb66a

Browse files
Add backward compatibility alias for PSA_ERROR_CORRUPTION_DETECTED
This was renamed from PSA_ERROR_TAMPERING_DETECTED. Add a backward compatibility alias in case somebody was already using it.
1 parent 8960194 commit e0fb66a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

include/psa/crypto_extra.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ extern "C" {
6262
MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( PSA_ERROR_INSUFFICIENT_DATA )
6363
#endif
6464

65+
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
66+
#define PSA_ERROR_TAMPERING_DETECTED \
67+
MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( PSA_ERROR_CORRUPTION_DETECTED )
68+
#endif
69+
6570
/**
6671
* \brief Library deinitialization.
6772
*

tests/scripts/test_psa_constant_names.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ def distribute_arguments(self, name):
146146
'PSA_ERROR_OCCUPIED_SLOT',
147147
'PSA_ERROR_EMPTY_SLOT',
148148
'PSA_ERROR_INSUFFICIENT_CAPACITY',
149+
'PSA_ERROR_TAMPERING_DETECTED',
149150
])
150151
argument_split_re = re.compile(r' *, *')
151152
def parse_header_line(self, line):

0 commit comments

Comments
 (0)