mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-24 20:36:52 +00:00
Fix style issue and wording
This commit is contained in:
parent
c1e18bdf06
commit
46f34d0ac0
|
@ -5448,7 +5448,7 @@ static int ssl_check_peer_crt_unchanged( mbedtls_ssl_context *ssl,
|
||||||
if( peer_crt->raw.len != crt_buf_len )
|
if( peer_crt->raw.len != crt_buf_len )
|
||||||
return( -1 );
|
return( -1 );
|
||||||
|
|
||||||
return( memcmp( peer_crt->raw.p, crt_buf, crt_buf_len) );
|
return( memcmp( peer_crt->raw.p, crt_buf, crt_buf_len ) );
|
||||||
}
|
}
|
||||||
#endif /* MBEDTLS_SSL_RENEGOTIATION && MBEDTLS_SSL_CLI_C */
|
#endif /* MBEDTLS_SSL_RENEGOTIATION && MBEDTLS_SSL_CLI_C */
|
||||||
|
|
||||||
|
@ -5592,10 +5592,10 @@ static int ssl_parse_certificate_chain( mbedtls_ssl_context *ssl )
|
||||||
/* Check if we're handling the first CRT in the chain. */
|
/* Check if we're handling the first CRT in the chain. */
|
||||||
if( ssl->session_negotiate->peer_cert == NULL )
|
if( ssl->session_negotiate->peer_cert == NULL )
|
||||||
{
|
{
|
||||||
/* During client-side renegotiation, check the server's end-CRTs
|
/* During client-side renegotiation, check that the server's
|
||||||
* hasn't changed compared to the initial handshake, mitigating
|
* end-CRTs hasn't changed compared to the initial handshake,
|
||||||
* the triple handshake attack. On success, reuse the original
|
* mitigating the triple handshake attack. On success, reuse
|
||||||
* end-CRT instead of parsing it again. */
|
* the original end-CRT instead of parsing it again. */
|
||||||
#if defined(MBEDTLS_SSL_RENEGOTIATION) && defined(MBEDTLS_SSL_CLI_C)
|
#if defined(MBEDTLS_SSL_RENEGOTIATION) && defined(MBEDTLS_SSL_CLI_C)
|
||||||
if( ssl->conf->endpoint == MBEDTLS_SSL_IS_CLIENT &&
|
if( ssl->conf->endpoint == MBEDTLS_SSL_IS_CLIENT &&
|
||||||
ssl->renego_status == MBEDTLS_SSL_RENEGOTIATION_IN_PROGRESS )
|
ssl->renego_status == MBEDTLS_SSL_RENEGOTIATION_IN_PROGRESS )
|
||||||
|
|
Loading…
Reference in a new issue