mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-19 15:17:57 +00:00
tls13: Improve argument name
Signed-off-by: Ronald Cron <[email protected]>
This commit is contained in:
+1
-1
@@ -2028,7 +2028,7 @@ static inline int mbedtls_ssl_tls13_key_exchange_mode_with_ephemeral(
|
||||
MBEDTLS_CHECK_RETURN_CRITICAL
|
||||
int mbedtls_ssl_tls13_fetch_handshake_msg(mbedtls_ssl_context *ssl,
|
||||
unsigned hs_type,
|
||||
unsigned record_boundary,
|
||||
unsigned require_record_boundary,
|
||||
unsigned char **buf,
|
||||
size_t *buf_len);
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ const uint8_t mbedtls_ssl_tls13_hello_retry_request_magic[
|
||||
|
||||
int mbedtls_ssl_tls13_fetch_handshake_msg(mbedtls_ssl_context *ssl,
|
||||
unsigned hs_type,
|
||||
unsigned record_boundary,
|
||||
unsigned require_record_boundary,
|
||||
unsigned char **buf,
|
||||
size_t *buf_len)
|
||||
{
|
||||
@@ -60,7 +60,7 @@ int mbedtls_ssl_tls13_fetch_handshake_msg(mbedtls_ssl_context *ssl,
|
||||
|
||||
if (ssl->in_msgtype != MBEDTLS_SSL_MSG_HANDSHAKE ||
|
||||
ssl->in_msg[0] != hs_type ||
|
||||
(record_boundary && (ssl->in_hslen != ssl->in_msglen))) {
|
||||
(require_record_boundary && (ssl->in_hslen != ssl->in_msglen))) {
|
||||
MBEDTLS_SSL_DEBUG_MSG(1, ("Receive unexpected handshake message."));
|
||||
MBEDTLS_SSL_PEND_FATAL_ALERT(MBEDTLS_SSL_ALERT_MSG_UNEXPECTED_MESSAGE,
|
||||
MBEDTLS_ERR_SSL_UNEXPECTED_MESSAGE);
|
||||
|
||||
Reference in New Issue
Block a user