mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 03:35:39 +01:00
Remove guard for TLS 1.3 specific declarations
We only guard the implementations of modules, not their declarations. Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
parent
59b50a1997
commit
2fe043a6d1
@ -399,9 +399,6 @@ typedef int mbedtls_ssl_tls_prf_cb( const unsigned char *secret, size_t slen,
|
||||
#define MBEDTLS_SSL_MAX_IV_LENGTH 16
|
||||
#define MBEDTLS_SSL_MAX_KEY_LENGTH 32
|
||||
|
||||
|
||||
#if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
|
||||
|
||||
/**
|
||||
* \brief The data structure holding the cryptographic material (key and IV)
|
||||
* used for record protection in TLS 1.3.
|
||||
@ -423,7 +420,6 @@ struct mbedtls_ssl_key_set
|
||||
* server_write_iv, in Bytes. */
|
||||
};
|
||||
typedef struct mbedtls_ssl_key_set mbedtls_ssl_key_set;
|
||||
#endif /* MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL */
|
||||
|
||||
/*
|
||||
* This structure contains the parameters only needed during handshake.
|
||||
|
@ -19,8 +19,6 @@
|
||||
#if !defined(MBEDTLS_SSL_TLS1_3_KEYS_H)
|
||||
#define MBEDTLS_SSL_TLS1_3_KEYS_H
|
||||
|
||||
#if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
|
||||
|
||||
/* This requires MBEDTLS_SSL_TLS1_3_LABEL( idx, name, string ) to be defined at
|
||||
* the point of use. See e.g. the definition of mbedtls_ssl_tls1_3_labels_union
|
||||
* below. */
|
||||
@ -264,6 +262,4 @@ int mbedtls_ssl_tls1_3_evolve_secret(
|
||||
const unsigned char *input, size_t input_len,
|
||||
unsigned char *secret_new );
|
||||
|
||||
#endif /* MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL */
|
||||
|
||||
#endif /* MBEDTLS_SSL_TLS1_3_KEYS_H */
|
||||
|
Loading…
Reference in New Issue
Block a user