mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-09 21:44:28 +00:00
Add macro guard for header file
Some of the macros are used by the test data files and must be moved before the macros guard. Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
cb5ef6a532
commit
e42d8bf83b
@ -44,6 +44,14 @@
|
|||||||
MBEDTLS_SSL_TLS1_3_LABEL( client_cv , "TLS 1.3, client CertificateVerify" ) \
|
MBEDTLS_SSL_TLS1_3_LABEL( client_cv , "TLS 1.3, client CertificateVerify" ) \
|
||||||
MBEDTLS_SSL_TLS1_3_LABEL( server_cv , "TLS 1.3, server CertificateVerify" )
|
MBEDTLS_SSL_TLS1_3_LABEL( server_cv , "TLS 1.3, server CertificateVerify" )
|
||||||
|
|
||||||
|
#define MBEDTLS_SSL_TLS1_3_CONTEXT_UNHASHED 0
|
||||||
|
#define MBEDTLS_SSL_TLS1_3_CONTEXT_HASHED 1
|
||||||
|
|
||||||
|
#define MBEDTLS_SSL_TLS1_3_PSK_EXTERNAL 0
|
||||||
|
#define MBEDTLS_SSL_TLS1_3_PSK_RESUMPTION 1
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_SSL_PROTO_TLS1_3)
|
||||||
|
|
||||||
#define MBEDTLS_SSL_TLS1_3_LABEL( name, string ) \
|
#define MBEDTLS_SSL_TLS1_3_LABEL( name, string ) \
|
||||||
const unsigned char name [ sizeof(string) - 1 ];
|
const unsigned char name [ sizeof(string) - 1 ];
|
||||||
|
|
||||||
@ -158,10 +166,6 @@ int mbedtls_ssl_tls13_make_traffic_keys(
|
|||||||
size_t key_len, size_t iv_len,
|
size_t key_len, size_t iv_len,
|
||||||
mbedtls_ssl_key_set *keys );
|
mbedtls_ssl_key_set *keys );
|
||||||
|
|
||||||
|
|
||||||
#define MBEDTLS_SSL_TLS1_3_CONTEXT_UNHASHED 0
|
|
||||||
#define MBEDTLS_SSL_TLS1_3_CONTEXT_HASHED 1
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief The \c Derive-Secret function from the TLS 1.3 standard RFC 8446.
|
* \brief The \c Derive-Secret function from the TLS 1.3 standard RFC 8446.
|
||||||
*
|
*
|
||||||
@ -455,9 +459,6 @@ int mbedtls_ssl_tls13_evolve_secret(
|
|||||||
const unsigned char *input, size_t input_len,
|
const unsigned char *input, size_t input_len,
|
||||||
unsigned char *secret_new );
|
unsigned char *secret_new );
|
||||||
|
|
||||||
#define MBEDTLS_SSL_TLS1_3_PSK_EXTERNAL 0
|
|
||||||
#define MBEDTLS_SSL_TLS1_3_PSK_RESUMPTION 1
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Calculate a TLS 1.3 PSK binder.
|
* \brief Calculate a TLS 1.3 PSK binder.
|
||||||
*
|
*
|
||||||
@ -637,4 +638,6 @@ int mbedtls_ssl_tls13_calculate_verify_data( mbedtls_ssl_context *ssl,
|
|||||||
size_t *actual_len,
|
size_t *actual_len,
|
||||||
int which );
|
int which );
|
||||||
|
|
||||||
|
#endif /* MBEDTLS_SSL_PROTO_TLS1_3 */
|
||||||
|
|
||||||
#endif /* MBEDTLS_SSL_TLS1_3_KEYS_H */
|
#endif /* MBEDTLS_SSL_TLS1_3_KEYS_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user