Add SSL_CIPHERSUITES config option
This commit is contained in:
parent
791684c058
commit
dfc7df0bec
3 changed files with 27 additions and 0 deletions
|
@ -57,6 +57,9 @@
|
|||
*/
|
||||
static const int ciphersuite_preference[] =
|
||||
{
|
||||
#if defined(SSL_CIPHERSUITES)
|
||||
SSL_CIPHERSUITES,
|
||||
#else
|
||||
/* All AES-256 ephemeral suites */
|
||||
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
|
||||
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
|
||||
|
@ -257,6 +260,7 @@ static const int ciphersuite_preference[] =
|
|||
TLS_PSK_WITH_NULL_SHA256,
|
||||
TLS_PSK_WITH_NULL_SHA,
|
||||
|
||||
#endif
|
||||
0
|
||||
};
|
||||
|
||||
|
@ -1675,6 +1679,12 @@ static const ssl_ciphersuite_t ciphersuite_definitions[] =
|
|||
{ 0, "", 0, 0, 0, 0, 0, 0, 0, 0 }
|
||||
};
|
||||
|
||||
#if defined(SSL_CIPHERSUITES)
|
||||
const int *ssl_list_ciphersuites( void )
|
||||
{
|
||||
return( ciphersuite_preference );
|
||||
}
|
||||
#else
|
||||
#define MAX_CIPHERSUITES sizeof( ciphersuite_definitions ) / \
|
||||
sizeof( ciphersuite_definitions[0] )
|
||||
static int supported_ciphersuites[MAX_CIPHERSUITES];
|
||||
|
@ -1711,6 +1721,7 @@ const int *ssl_list_ciphersuites( void )
|
|||
|
||||
return( supported_ciphersuites );
|
||||
};
|
||||
#endif /* SSL_CIPHERSUITES */
|
||||
|
||||
const ssl_ciphersuite_t *ssl_ciphersuite_from_string(
|
||||
const char *ciphersuite_name )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue