mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Add code for testing server-initiated renegotiation
This commit is contained in:
parent
53b3e0603b
commit
f3dc2f6a1d
4 changed files with 59 additions and 2 deletions
|
|
@ -1930,7 +1930,8 @@ int ssl_write_record( ssl_context *ssl )
|
|||
ssl->out_msg[2] = (unsigned char)( ( len - 4 ) >> 8 );
|
||||
ssl->out_msg[3] = (unsigned char)( ( len - 4 ) );
|
||||
|
||||
ssl->handshake->update_checksum( ssl, ssl->out_msg, len );
|
||||
if( ssl->out_msg[0] != SSL_HS_HELLO_REQUEST )
|
||||
ssl->handshake->update_checksum( ssl, ssl->out_msg, len );
|
||||
}
|
||||
|
||||
#if defined(POLARSSL_ZLIB_SUPPORT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue