Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify TLS 1.3 handshake state machine and handshake handlers #347

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions library/ssl_misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,10 @@ struct mbedtls_ssl_handshake_params

mbedtls_ssl_tls_prf_cb *tls_prf;

#if defined(MBEDTLS_SSL_USE_MPS)
mbedtls_mps_handshake_out hs_msg_out;
#endif

/*
* State-local variables used during the processing
* of a specific handshake state.
Expand Down Expand Up @@ -2015,6 +2019,14 @@ static inline int mbedtls_ssl_named_group_is_ecdhe( uint16_t named_group )
named_group == MBEDTLS_SSL_TLS13_NAMED_GROUP_X448 );
}

int mbedtls_ssl_start_handshake_msg( mbedtls_ssl_context *ssl,
unsigned hs_type,
unsigned char **buf,
size_t *buflen );
int mbedtls_ssl_finish_handshake_msg( mbedtls_ssl_context *ssl,
size_t buf_len,
size_t msg_len );

#endif /* MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL */


Expand Down
Loading