From 8afd6e430871d764c55b2b326044a32c066cf08b Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Thu, 20 Jan 2022 15:54:26 +0800 Subject: [PATCH] fix typo issues in comments Signed-off-by: Jerry Yu --- library/ssl_misc.h | 2 +- library/ssl_tls.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/library/ssl_misc.h b/library/ssl_misc.h index 2b1fa2272b..2be88d60b0 100644 --- a/library/ssl_misc.h +++ b/library/ssl_misc.h @@ -261,7 +261,7 @@ /* Maximum size in bytes of list in signature algorithms ext., RFC 5246/8446 */ #define MBEDTLS_SSL_MAX_SIG_ALG_LIST_LEN 65534 -/* Minimue size in bytes of list in signature algorithms ext., RFC 5246/8446 */ +/* Minimum size in bytes of list in signature algorithms ext., RFC 5246/8446 */ #define MBEDTLS_SSL_MIN_SIG_ALG_LIST_LEN 2 /* Maximum size in bytes of list in supported elliptic curve ext., RFC 4492 */ diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 143ce822ec..6d03276423 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -7411,7 +7411,7 @@ int mbedtls_ssl_write_supported_groups_ext( mbedtls_ssl_context *ssl, /* * Function for writing a signature algorithm extension. * - * The `exitension_data` field of signature algorithm contains `SignatureSchemeList` + * The `extension_data` field of signature algorithm contains a `SignatureSchemeList` * value (TLS 1.3 RFC8446): * enum { * .... @@ -7425,8 +7425,8 @@ int mbedtls_ssl_write_supported_groups_ext( mbedtls_ssl_context *ssl, * SignatureScheme supported_signature_algorithms<2..2^16-2>; * } SignatureSchemeList; * - * The `exitension_data` field of signature algorithm contains - * `SignatureAndHashAlgorithm` value (TLS 1.2 RFC5246): + * The `extension_data` field of signature algorithm contains a `SignatureAndHashAlgorithm` + * value (TLS 1.2 RFC5246): * enum { * none(0), md5(1), sha1(2), sha224(3), sha256(4), sha384(5), * sha512(6), (255)