From 9deb90f74e7b6f2b3aaae26184ca44cab5dcdd6a Mon Sep 17 00:00:00 2001 From: XiaokangQian Date: Tue, 8 Feb 2022 10:31:07 +0000 Subject: [PATCH] Change parameter names and code style Signed-off-by: XiaokangQian --- library/ssl_tls13_client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/ssl_tls13_client.c b/library/ssl_tls13_client.c index 84051c198..829664fac 100644 --- a/library/ssl_tls13_client.c +++ b/library/ssl_tls13_client.c @@ -691,11 +691,11 @@ static int ssl_tls13_parse_cookie_ext( mbedtls_ssl_context *ssl, static int ssl_tls13_write_cookie_ext( mbedtls_ssl_context *ssl, unsigned char *buf, unsigned char *end, - size_t *olen ) + size_t *out_len ) { unsigned char *p = buf; - *olen = 0; + *out_len = 0; if( ssl->handshake->verify_cookie == NULL ) { @@ -719,7 +719,7 @@ static int ssl_tls13_write_cookie_ext( mbedtls_ssl_context *ssl, /* Cookie */ memcpy( p, ssl->handshake->verify_cookie, ssl->handshake->verify_cookie_len ); - *olen = ssl->handshake->verify_cookie_len + 6; + *out_len = ssl->handshake->verify_cookie_len + 6; return( 0 ); }