1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Remove useless early data related macros for the time being

Signed-off-by: Xiaokang Qian <xiaokang.qian@arm.com>
This commit is contained in:
Xiaokang Qian
2022-10-20 09:22:38 +00:00
parent 54413b10c2
commit 600804b0e7
4 changed files with 7 additions and 13 deletions

View File

@ -1635,8 +1635,11 @@
/** /**
* \def MBEDTLS_SSL_EARLY_DATA * \def MBEDTLS_SSL_EARLY_DATA
* *
* Allows to add functionality for TLS/DTLS 1.3 early data. * Enable support for RFC 8446 TLS 1.3 early data.
* *
* Requires: MBEDTLS_SSL_PROTO_TLS1_3
*
* Comment this to disable support for early data.
*/ */
//#define MBEDTLS_SSL_EARLY_DATA //#define MBEDTLS_SSL_EARLY_DATA

View File

@ -332,9 +332,6 @@
#define MBEDTLS_SSL_EARLY_DATA_DISABLED 0 #define MBEDTLS_SSL_EARLY_DATA_DISABLED 0
#define MBEDTLS_SSL_EARLY_DATA_ENABLED 1 #define MBEDTLS_SSL_EARLY_DATA_ENABLED 1
#define MBEDTLS_SSL_EARLY_DATA_OFF 0
#define MBEDTLS_SSL_EARLY_DATA_ON 1
#define MBEDTLS_SSL_DTLS_SRTP_MKI_UNSUPPORTED 0 #define MBEDTLS_SSL_DTLS_SRTP_MKI_UNSUPPORTED 0
#define MBEDTLS_SSL_DTLS_SRTP_MKI_SUPPORTED 1 #define MBEDTLS_SSL_DTLS_SRTP_MKI_SUPPORTED 1
@ -1921,8 +1918,8 @@ void mbedtls_ssl_conf_authmode( mbedtls_ssl_config *conf, int authmode );
* \brief Set the early_data mode * \brief Set the early_data mode
* Default: disabled on server and client * Default: disabled on server and client
* *
* \param ssl SSL context * \param conf The SSL configuration to use.
* \param early_data can be: * \param early_data_enabled can be:
* *
* MBEDTLS_SSL_EARLY_DATA_DISABLED: early data functionality will not be used * MBEDTLS_SSL_EARLY_DATA_DISABLED: early data functionality will not be used
* (default on server) * (default on server)
@ -1934,9 +1931,6 @@ void mbedtls_ssl_conf_authmode( mbedtls_ssl_config *conf, int authmode );
* lack of replay protection of the early data application * lack of replay protection of the early data application
* payloads. * payloads.
* *
* \param max_early_data Max number of bytes allowed for early data (server only).
* \param early_data_callback Callback function when early data is received (server
* only).
*/ */
#if defined(MBEDTLS_SSL_PROTO_TLS1_3) && defined(MBEDTLS_SSL_EARLY_DATA) #if defined(MBEDTLS_SSL_PROTO_TLS1_3) && defined(MBEDTLS_SSL_EARLY_DATA)
void mbedtls_ssl_conf_early_data( mbedtls_ssl_config *conf, void mbedtls_ssl_conf_early_data( mbedtls_ssl_config *conf,

View File

@ -243,9 +243,6 @@
/* Maximum size in bytes of list in supported elliptic curve ext., RFC 4492 */ /* Maximum size in bytes of list in supported elliptic curve ext., RFC 4492 */
#define MBEDTLS_SSL_MAX_CURVE_LIST_LEN 65535 #define MBEDTLS_SSL_MAX_CURVE_LIST_LEN 65535
/* Maximum amount of early data to buffer on the server. */
#define MBEDTLS_SSL_MAX_EARLY_DATA 1024
#define MBEDTLS_RECEIVED_SIG_ALGS_SIZE 20 #define MBEDTLS_RECEIVED_SIG_ALGS_SIZE 20
#if defined(MBEDTLS_SSL_HANDSHAKE_WITH_CERT_ENABLED) #if defined(MBEDTLS_SSL_HANDSHAKE_WITH_CERT_ENABLED)

View File

@ -1084,7 +1084,7 @@ cleanup:
void mbedtls_ssl_conf_early_data( mbedtls_ssl_config *conf, void mbedtls_ssl_conf_early_data( mbedtls_ssl_config *conf,
int early_data_enabled ) int early_data_enabled )
{ {
conf->early_data_enabled = early_data; conf->early_data_enabled = early_data_enabled;
} }
#endif /* MBEDTLS_SSL_EARLY_DATA */ #endif /* MBEDTLS_SSL_EARLY_DATA */