mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 01:15:42 +01:00
Minor code simplification in ssl programs
This commit is contained in:
parent
95c0a63023
commit
8de259b953
@ -458,11 +458,9 @@ int main( int argc, char *argv[] )
|
||||
opt.psk_identity = q;
|
||||
else if( strcmp( p, "force_ciphersuite" ) == 0 )
|
||||
{
|
||||
opt.force_ciphersuite[0] = -1;
|
||||
|
||||
opt.force_ciphersuite[0] = ssl_get_ciphersuite_id( q );
|
||||
|
||||
if( opt.force_ciphersuite[0] <= 0 )
|
||||
if( opt.force_ciphersuite[0] == 0 )
|
||||
{
|
||||
ret = 2;
|
||||
goto usage;
|
||||
|
@ -736,11 +736,9 @@ int main( int argc, char *argv[] )
|
||||
opt.psk_list = q;
|
||||
else if( strcmp( p, "force_ciphersuite" ) == 0 )
|
||||
{
|
||||
opt.force_ciphersuite[0] = -1;
|
||||
|
||||
opt.force_ciphersuite[0] = ssl_get_ciphersuite_id( q );
|
||||
|
||||
if( opt.force_ciphersuite[0] <= 0 )
|
||||
if( opt.force_ciphersuite[0] == 0 )
|
||||
{
|
||||
ret = 2;
|
||||
goto usage;
|
||||
|
Loading…
Reference in New Issue
Block a user