1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

Add TLS1.3 process certificate request

Signed-off-by: Xiaofei Bai <xiaofei.bai@arm.com>
This commit is contained in:
Xiaofei Bai
2021-12-23 12:09:05 +00:00
parent f51b79c297
commit e1e344213a
3 changed files with 397 additions and 7 deletions

View File

@ -556,6 +556,13 @@ struct mbedtls_ssl_handshake_params
#if defined(MBEDTLS_SSL_PROTO_DTLS)
unsigned char retransmit_state; /*!< Retransmission state */
#endif
/*
* Handshake specific crypto variables
*/
#if defined(MBEDTLS_X509_CRT_PARSE_C)
int recv_sig_schemes_list[MBEDTLS_PK_SIGNATURE_MAX_SIZE];
/*!< Received signature algorithms */
#endif /* MBEDTLS_X509_CRT_PARSE_C */
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
unsigned char group_list_heap_allocated;
@ -802,6 +809,12 @@ struct mbedtls_ssl_handshake_params
represents an extension and defined
as \c MBEDTLS_SSL_EXT_XXX */
#if defined(MBEDTLS_ECDSA_C)
unsigned char cert_req_ctx_len; /*!< certificate request context
length */
unsigned char* cert_req_ctx; /*!< certificate request context */
#endif
union
{
unsigned char early [MBEDTLS_TLS1_3_MD_MAX_SIZE];
@ -1687,6 +1700,11 @@ int mbedtls_ssl_tls13_start_handshake_msg( mbedtls_ssl_context *ssl,
unsigned char **buf,
size_t *buf_len );
/*
* Handler of TLS 1.3 server certificate request message
*/
int mbedtls_ssl_tls13_process_certificate_request( mbedtls_ssl_context *ssl );
/*
* Handler of TLS 1.3 server certificate message
*/