mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 21:05:37 +01:00
- Prevent compiler warning
This commit is contained in:
parent
8611e73dd3
commit
35a7fe52f3
@ -758,8 +758,8 @@ static int ssl_write_server_key_exchange( ssl_context *ssl )
|
|||||||
int ret;
|
int ret;
|
||||||
size_t n, rsa_key_len = 0;
|
size_t n, rsa_key_len = 0;
|
||||||
unsigned char hash[64];
|
unsigned char hash[64];
|
||||||
int hash_id;
|
int hash_id = 0;
|
||||||
unsigned int hashlen;
|
unsigned int hashlen = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
SSL_DEBUG_MSG( 2, ( "=> write server key exchange" ) );
|
SSL_DEBUG_MSG( 2, ( "=> write server key exchange" ) );
|
||||||
@ -876,7 +876,7 @@ static int ssl_write_server_key_exchange( ssl_context *ssl )
|
|||||||
hashlen = 64;
|
hashlen = 64;
|
||||||
hash_id = SIG_RSA_SHA512;
|
hash_id = SIG_RSA_SHA512;
|
||||||
}
|
}
|
||||||
if( ssl->handshake->sig_alg == SSL_HASH_SHA384 )
|
else if( ssl->handshake->sig_alg == SSL_HASH_SHA384 )
|
||||||
{
|
{
|
||||||
sha4_context sha4;
|
sha4_context sha4;
|
||||||
|
|
||||||
@ -888,6 +888,7 @@ static int ssl_write_server_key_exchange( ssl_context *ssl )
|
|||||||
hashlen = 48;
|
hashlen = 48;
|
||||||
hash_id = SIG_RSA_SHA384;
|
hash_id = SIG_RSA_SHA384;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
#endif
|
#endif
|
||||||
#if defined(POLARSSL_SHA2_C)
|
#if defined(POLARSSL_SHA2_C)
|
||||||
if( ssl->handshake->sig_alg == SSL_HASH_SHA256 )
|
if( ssl->handshake->sig_alg == SSL_HASH_SHA256 )
|
||||||
@ -902,7 +903,7 @@ static int ssl_write_server_key_exchange( ssl_context *ssl )
|
|||||||
hashlen = 32;
|
hashlen = 32;
|
||||||
hash_id = SIG_RSA_SHA256;
|
hash_id = SIG_RSA_SHA256;
|
||||||
}
|
}
|
||||||
if( ssl->handshake->sig_alg == SSL_HASH_SHA224 )
|
else if( ssl->handshake->sig_alg == SSL_HASH_SHA224 )
|
||||||
{
|
{
|
||||||
sha2_context sha2;
|
sha2_context sha2;
|
||||||
|
|
||||||
@ -914,6 +915,7 @@ static int ssl_write_server_key_exchange( ssl_context *ssl )
|
|||||||
hashlen = 24;
|
hashlen = 24;
|
||||||
hash_id = SIG_RSA_SHA224;
|
hash_id = SIG_RSA_SHA224;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
#endif
|
#endif
|
||||||
if( ssl->handshake->sig_alg == SSL_HASH_SHA1 )
|
if( ssl->handshake->sig_alg == SSL_HASH_SHA1 )
|
||||||
{
|
{
|
||||||
@ -927,7 +929,7 @@ static int ssl_write_server_key_exchange( ssl_context *ssl )
|
|||||||
hashlen = 20;
|
hashlen = 20;
|
||||||
hash_id = SIG_RSA_SHA1;
|
hash_id = SIG_RSA_SHA1;
|
||||||
}
|
}
|
||||||
if( ssl->handshake->sig_alg == SSL_HASH_MD5 )
|
else if( ssl->handshake->sig_alg == SSL_HASH_MD5 )
|
||||||
{
|
{
|
||||||
md5_context md5;
|
md5_context md5;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user