From 013e2c8fdf40229754507c2627dca156d62f3f89 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Fri, 6 Mar 2026 17:22:25 -0700 Subject: [PATCH] remove special characters, use simple ASCII characters --- src/tls.c | 2 +- tests/api/test_tls13.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tls.c b/src/tls.c index 280d194d3f..07c69bcb75 100644 --- a/src/tls.c +++ b/src/tls.c @@ -16891,7 +16891,7 @@ int TLSX_Parse(WOLFSSL* ssl, const byte* input, word16 length, byte msgType, default: WOLFSSL_MSG("Unknown TLS extension type"); #if defined(WOLFSSL_TLS13) - /* RFC 8446 §4.2: for TLS 1.3 server-to-client messages, the + /* RFC 8446 4.2: for TLS 1.3 server-to-client messages, the * client MUST abort with unsupported_extension upon receiving * an extension that was not advertised in the ClientHello. */ if (IsAtLeastTLSv1_3(ssl->version) && !isRequest) { diff --git a/tests/api/test_tls13.c b/tests/api/test_tls13.c index 220560501a..f7164c2116 100644 --- a/tests/api/test_tls13.c +++ b/tests/api/test_tls13.c @@ -3149,7 +3149,7 @@ int test_tls13_warning_alert_is_fatal(void) } /* Test that an unknown extension in a TLS 1.3 server-to-client message is - * rejected with unsupported_extension (RFC 8446 §4.2). The client MUST abort + * rejected with unsupported_extension (RFC 8446 4.2). The client MUST abort * the handshake when it receives an extension it did not advertise. */ int test_tls13_unknown_ext_rejected(void) @@ -3166,9 +3166,9 @@ int test_tls13_warning_alert_is_fatal(void) * (TLS 1.3), and an extra unknown extension type 0xFABC. * * The base HRR (from test_tls13_same_ch) extended with 4 bytes: - * extensions length: 6 → 10 (0x00,0x0a) - * handshake body length: 46 → 50 (0x00,0x00,0x32) - * record body length: 50 → 54 (0x00,0x36) + * extensions length: 6 -> 10 (0x00,0x0a) + * handshake body length: 46 -> 50 (0x00,0x00,0x32) + * record body length: 50 -> 54 (0x00,0x36) * appended: 0xfa,0xbc,0x00,0x00 (unknown type, zero-length value) */ static const unsigned char hrr_unknown_ext[] = { @@ -3206,7 +3206,7 @@ int test_tls13_warning_alert_is_fatal(void) ExpectIntEQ(test_memio_inject_message(&test_ctx, 1, (const char *)hrr_unknown_ext, sizeof(hrr_unknown_ext)), 0); - /* RFC 8446 §4.2: the client MUST abort with unsupported_extension. */ + /* RFC 8446 4.2: the client MUST abort with unsupported_extension. */ ExpectIntEQ(wolfSSL_connect(ssl_c), -1); ExpectIntEQ(wolfSSL_get_error(ssl_c, -1), WC_NO_ERR_TRACE(UNSUPPORTED_EXTENSION));