mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-31 10:20:45 +00:00
Change parameter names and code style
Signed-off-by: XiaokangQian <xiaokang.qian@arm.com>
This commit is contained in:
parent
5e3c947841
commit
9deb90f74e
@ -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,
|
static int ssl_tls13_write_cookie_ext( mbedtls_ssl_context *ssl,
|
||||||
unsigned char *buf,
|
unsigned char *buf,
|
||||||
unsigned char *end,
|
unsigned char *end,
|
||||||
size_t *olen )
|
size_t *out_len )
|
||||||
{
|
{
|
||||||
unsigned char *p = buf;
|
unsigned char *p = buf;
|
||||||
|
|
||||||
*olen = 0;
|
*out_len = 0;
|
||||||
|
|
||||||
if( ssl->handshake->verify_cookie == NULL )
|
if( ssl->handshake->verify_cookie == NULL )
|
||||||
{
|
{
|
||||||
@ -719,7 +719,7 @@ static int ssl_tls13_write_cookie_ext( mbedtls_ssl_context *ssl,
|
|||||||
/* Cookie */
|
/* Cookie */
|
||||||
memcpy( p, ssl->handshake->verify_cookie, ssl->handshake->verify_cookie_len );
|
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 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user