mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 09:15:43 +01:00
Add missing uses of mbedtls_ssl_get_minor()
This commit is contained in:
parent
ae3f8511fd
commit
981f81dc30
@ -965,7 +965,7 @@ static int ssl_write_client_hello( mbedtls_ssl_context *ssl )
|
||||
p += 2;
|
||||
|
||||
MBEDTLS_SSL_BEGIN_FOR_EACH_CIPHERSUITE( ssl,
|
||||
ssl->minor_ver,
|
||||
mbedtls_ssl_get_minor_ver( ssl ),
|
||||
ciphersuite_info )
|
||||
{
|
||||
if( ssl_validate_ciphersuite( ciphersuite_info, ssl,
|
||||
@ -1885,7 +1885,7 @@ static int ssl_parse_server_hello( mbedtls_ssl_context *ssl )
|
||||
* Perform cipher suite validation in same way as in ssl_write_client_hello.
|
||||
*/
|
||||
MBEDTLS_SSL_BEGIN_FOR_EACH_CIPHERSUITE( ssl,
|
||||
ssl->minor_ver,
|
||||
mbedtls_ssl_get_minor_ver( ssl ),
|
||||
ciphersuite_info )
|
||||
{
|
||||
if( ssl_validate_ciphersuite( ciphersuite_info, ssl,
|
||||
|
@ -1249,13 +1249,13 @@ static int ssl_parse_client_hello_v2( mbedtls_ssl_context *ssl )
|
||||
#if defined(MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE)
|
||||
for( j = 0, p = buf + 6; j < ciph_len; j += 3, p += 3 )
|
||||
{
|
||||
MBEDTLS_SSL_BEGIN_FOR_EACH_CIPHERSUITE( ssl, \
|
||||
ssl->minor_ver, \
|
||||
MBEDTLS_SSL_BEGIN_FOR_EACH_CIPHERSUITE( ssl, \
|
||||
mbedtls_ssl_get_minor_ver( ssl ), \
|
||||
cur_info )
|
||||
{
|
||||
#else
|
||||
MBEDTLS_SSL_BEGIN_FOR_EACH_CIPHERSUITE( ssl, \
|
||||
ssl->minor_ver, \
|
||||
MBEDTLS_SSL_BEGIN_FOR_EACH_CIPHERSUITE( ssl, \
|
||||
mbedtls_ssl_get_minor_ver( ssl ), \
|
||||
cur_info )
|
||||
{
|
||||
for( j = 0, p = buf + 6; j < ciph_len; j += 3, p += 3 )
|
||||
@ -2183,13 +2183,13 @@ read_record_header:
|
||||
#if defined(MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE)
|
||||
for( j = 0, p = buf + ciph_offset + 2; j < ciph_len; j += 2, p += 2 )
|
||||
{
|
||||
MBEDTLS_SSL_BEGIN_FOR_EACH_CIPHERSUITE( ssl, \
|
||||
ssl->minor_ver, \
|
||||
MBEDTLS_SSL_BEGIN_FOR_EACH_CIPHERSUITE( ssl, \
|
||||
mbedtls_ssl_get_minor_ver( ssl ), \
|
||||
cur_info )
|
||||
{
|
||||
#else
|
||||
MBEDTLS_SSL_BEGIN_FOR_EACH_CIPHERSUITE( ssl, \
|
||||
ssl->minor_ver, \
|
||||
MBEDTLS_SSL_BEGIN_FOR_EACH_CIPHERSUITE( ssl, \
|
||||
mbedtls_ssl_get_minor_ver( ssl ), \
|
||||
cur_info )
|
||||
{
|
||||
for( j = 0, p = buf + ciph_offset + 2; j < ciph_len; j += 2, p += 2 )
|
||||
|
Loading…
Reference in New Issue
Block a user