mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 16:45:41 +01:00
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.
This commit is contained in:
parent
33b84f4db7
commit
1983512803
@ -45,21 +45,14 @@ extern "C" {
|
|||||||
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
|
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
|
||||||
#define PSA_ERROR_UNKNOWN_ERROR \
|
#define PSA_ERROR_UNKNOWN_ERROR \
|
||||||
MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( PSA_ERROR_GENERIC_ERROR )
|
MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( PSA_ERROR_GENERIC_ERROR )
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
|
|
||||||
#define PSA_ERROR_OCCUPIED_SLOT \
|
#define PSA_ERROR_OCCUPIED_SLOT \
|
||||||
MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( PSA_ERROR_ALREADY_EXISTS )
|
MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( PSA_ERROR_ALREADY_EXISTS )
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
|
|
||||||
#define PSA_ERROR_EMPTY_SLOT \
|
#define PSA_ERROR_EMPTY_SLOT \
|
||||||
MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( PSA_ERROR_DOES_NOT_EXIST )
|
MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( PSA_ERROR_DOES_NOT_EXIST )
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
|
|
||||||
#define PSA_ERROR_INSUFFICIENT_CAPACITY \
|
#define PSA_ERROR_INSUFFICIENT_CAPACITY \
|
||||||
MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( PSA_ERROR_INSUFFICIENT_DATA )
|
MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( PSA_ERROR_INSUFFICIENT_DATA )
|
||||||
|
#define PSA_ERROR_TAMPERING_DETECTED \
|
||||||
|
MBEDTLS_DEPRECATED_NUMERIC_CONSTANT( PSA_ERROR_CORRUPTION_DETECTED )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** \addtogroup attributes
|
/** \addtogroup attributes
|
||||||
|
@ -176,6 +176,7 @@ class Inputs:
|
|||||||
'PSA_ERROR_OCCUPIED_SLOT',
|
'PSA_ERROR_OCCUPIED_SLOT',
|
||||||
'PSA_ERROR_EMPTY_SLOT',
|
'PSA_ERROR_EMPTY_SLOT',
|
||||||
'PSA_ERROR_INSUFFICIENT_CAPACITY',
|
'PSA_ERROR_INSUFFICIENT_CAPACITY',
|
||||||
|
'PSA_ERROR_TAMPERING_DETECTED',
|
||||||
])
|
])
|
||||||
def parse_header_line(self, line):
|
def parse_header_line(self, line):
|
||||||
"""Parse a C header line, looking for "#define PSA_xxx"."""
|
"""Parse a C header line, looking for "#define PSA_xxx"."""
|
||||||
|
Loading…
Reference in New Issue
Block a user