From a078c8c1ab57779e03a11bc9494a2f5c07ba5654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 13 Aug 2018 12:45:26 +0200 Subject: [PATCH] Fix two typos in comments --- include/mbedtls/ssl.h | 2 +- library/ssl_tls.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mbedtls/ssl.h b/include/mbedtls/ssl.h index 706e27284be2..a3b514cd4f03 100644 --- a/include/mbedtls/ssl.h +++ b/include/mbedtls/ssl.h @@ -2470,7 +2470,7 @@ void mbedtls_ssl_conf_mtu( mbedtls_ssl_config *conf, uint16_t mtu ); * with \c mbedtls_ssl_read()), not handshake messages. * With DTLS, this affects both ApplicationData and handshake. * - * \note This sets the maximum length for a record's paylaod, + * \note This sets the maximum length for a record's payload, * excluding record overhead that will be added to it, see * \c mbedtls_ssl_get_record_expansion(). * diff --git a/library/ssl_tls.c b/library/ssl_tls.c index a87b8d2e370b..470cdc74d8da 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -2923,7 +2923,7 @@ int mbedtls_ssl_flight_transmit( mbedtls_ssl_context *ssl ) MBEDTLS_SSL_DEBUG_BUF( 3, "handshake header", ssl->out_msg, 12 ); - /* Copy the handshame message content and set records fields */ + /* Copy the handshake message content and set records fields */ memcpy( ssl->out_msg + 12, p, frag_len ); ssl->out_msglen = frag_len + 12; ssl->out_msgtype = cur->type;