mirror of
https://github.com/espressif/mbedtls.git
synced 2025-05-09 11:21:21 +08:00
Move #define Directive into ssl_helpers.h
Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
parent
09a6f7e14f
commit
5ba709c449
@ -44,6 +44,24 @@
|
|||||||
#include "mbedtls/ssl_cache.h"
|
#include "mbedtls/ssl_cache.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||||
|
#define PSA_TO_MBEDTLS_ERR(status) PSA_TO_MBEDTLS_ERR_LIST(status, \
|
||||||
|
psa_to_ssl_errors, \
|
||||||
|
psa_generic_status_to_mbedtls)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED) || \
|
||||||
|
defined(MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED) || \
|
||||||
|
defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED)
|
||||||
|
#define MBEDTLS_CAN_HANDLE_RSA_TEST_KEY
|
||||||
|
#endif
|
||||||
|
enum {
|
||||||
|
#define MBEDTLS_SSL_TLS1_3_LABEL(name, string) \
|
||||||
|
tls13_label_ ## name,
|
||||||
|
MBEDTLS_SSL_TLS1_3_LABEL_LIST
|
||||||
|
#undef MBEDTLS_SSL_TLS1_3_LABEL
|
||||||
|
};
|
||||||
|
|
||||||
typedef struct mbedtls_test_ssl_log_pattern {
|
typedef struct mbedtls_test_ssl_log_pattern {
|
||||||
const char *pattern;
|
const char *pattern;
|
||||||
size_t counter;
|
size_t counter;
|
||||||
|
@ -13,24 +13,6 @@
|
|||||||
#include <constant_time_internal.h>
|
#include <constant_time_internal.h>
|
||||||
#include <test/constant_flow.h>
|
#include <test/constant_flow.h>
|
||||||
|
|
||||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
|
||||||
#define PSA_TO_MBEDTLS_ERR(status) PSA_TO_MBEDTLS_ERR_LIST(status, \
|
|
||||||
psa_to_ssl_errors, \
|
|
||||||
psa_generic_status_to_mbedtls)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED) || \
|
|
||||||
defined(MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED) || \
|
|
||||||
defined(MBEDTLS_KEY_EXCHANGE_RSA_ENABLED)
|
|
||||||
#define MBEDTLS_CAN_HANDLE_RSA_TEST_KEY
|
|
||||||
#endif
|
|
||||||
enum {
|
|
||||||
#define MBEDTLS_SSL_TLS1_3_LABEL(name, string) \
|
|
||||||
tls13_label_ ## name,
|
|
||||||
MBEDTLS_SSL_TLS1_3_LABEL_LIST
|
|
||||||
#undef MBEDTLS_SSL_TLS1_3_LABEL
|
|
||||||
};
|
|
||||||
|
|
||||||
/* END_HEADER */
|
/* END_HEADER */
|
||||||
|
|
||||||
/* BEGIN_DEPENDENCIES
|
/* BEGIN_DEPENDENCIES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user