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:
Hanno Becker 2020-09-09 10:57:24 +01:00
parent 59b50a1997
commit 2fe043a6d1
2 changed files with 0 additions and 8 deletions

View file

@ -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_IV_LENGTH 16
#define MBEDTLS_SSL_MAX_KEY_LENGTH 32 #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) * \brief The data structure holding the cryptographic material (key and IV)
* used for record protection in TLS 1.3. * used for record protection in TLS 1.3.
@ -423,7 +420,6 @@ struct mbedtls_ssl_key_set
* server_write_iv, in Bytes. */ * server_write_iv, in Bytes. */
}; };
typedef struct mbedtls_ssl_key_set mbedtls_ssl_key_set; 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. * This structure contains the parameters only needed during handshake.

View file

@ -19,8 +19,6 @@
#if !defined(MBEDTLS_SSL_TLS1_3_KEYS_H) #if !defined(MBEDTLS_SSL_TLS1_3_KEYS_H)
#define 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 /* 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 * the point of use. See e.g. the definition of mbedtls_ssl_tls1_3_labels_union
* below. */ * below. */
@ -264,6 +262,4 @@ int mbedtls_ssl_tls1_3_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 );
#endif /* MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL */
#endif /* MBEDTLS_SSL_TLS1_3_KEYS_H */ #endif /* MBEDTLS_SSL_TLS1_3_KEYS_H */