mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
- Added support for NULL cipher (POLARSSL_CIPHER_NULL_CIPHER) and weak ciphersuites (POLARSSL_ENABLE_WEAK_CIPHERSUITES). They are disabled by default!
This commit is contained in:
parent
13eb9f01cf
commit
fab5c829e7
16 changed files with 556 additions and 41 deletions
|
|
@ -144,6 +144,9 @@ int main( int argc, char *argv[] )
|
|||
if( argc == 0 )
|
||||
{
|
||||
usage:
|
||||
if( ret == 0 )
|
||||
ret = 1;
|
||||
|
||||
printf( USAGE );
|
||||
|
||||
list = ssl_list_ciphersuites();
|
||||
|
|
@ -153,7 +156,6 @@ int main( int argc, char *argv[] )
|
|||
list++;
|
||||
}
|
||||
printf("\n");
|
||||
ret = 1;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
|
@ -210,8 +212,10 @@ int main( int argc, char *argv[] )
|
|||
opt.force_ciphersuite[0] = ssl_get_ciphersuite_id( q );
|
||||
|
||||
if( opt.force_ciphersuite[0] <= 0 )
|
||||
{
|
||||
ret = 2;
|
||||
goto usage;
|
||||
|
||||
}
|
||||
opt.force_ciphersuite[1] = 0;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue