mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-08 07:55:38 +00:00
Merge remote-tracking branch 'public/pr/2922' into baremetal
This commit is contained in:
commit
7c5de360da
3 changed files with 76 additions and 26 deletions
|
|
@ -39,14 +39,16 @@
|
|||
#include MBEDTLS_CONFIG_FILE
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_HAVE_TIME)
|
||||
#include "platform_time.h"
|
||||
#endif
|
||||
|
||||
#define MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED -0x0070 /**< Hardware accelerator failed */
|
||||
#define MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED -0x0072 /**< The requested feature is not supported by the platform */
|
||||
#define MBEDTLS_ERR_PLATFORM_FAULT_DETECTED -0x0071 /**< A hardware fault was detected in a critical path. As a security precaution this should be treated as a potential physical attack */
|
||||
|
||||
#if defined(MBEDTLS_PLATFORM_C)
|
||||
|
||||
#if defined(MBEDTLS_HAVE_TIME)
|
||||
#include "platform_time.h"
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
@ -365,4 +367,6 @@ void mbedtls_platform_teardown( mbedtls_platform_context *ctx );
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* MBEDTLS_PLATFORM_C */
|
||||
|
||||
#endif /* platform.h */
|
||||
|
|
|
|||
|
|
@ -85,6 +85,8 @@
|
|||
* \{
|
||||
*/
|
||||
/* Reminder: update x509_crt_verify_strings[] in library/x509_crt.c */
|
||||
/* Reminder: update X509_BADCERT_FI_EXTRA in library/x509_crt.c if using more
|
||||
* that 24 bits */
|
||||
#define MBEDTLS_X509_BADCERT_EXPIRED 0x01 /**< The certificate validity has expired. */
|
||||
#define MBEDTLS_X509_BADCERT_REVOKED 0x02 /**< The certificate has been revoked (is on a CRL). */
|
||||
#define MBEDTLS_X509_BADCERT_CN_MISMATCH 0x04 /**< The certificate Common Name (CN) does not match with the expected CN. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue