mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-31 10:20:45 +00:00
ssl_server2: Add usage string for TLS 1.3 key exchange modes
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
parent
cfa4d4b3f5
commit
a9e4e6fd6f
@ -433,6 +433,15 @@ int main( void )
|
|||||||
#define USAGE_SERIALIZATION ""
|
#define USAGE_SERIALIZATION ""
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
|
||||||
|
#define USAGE_TLS13_KEY_EXCHANGE_MODES \
|
||||||
|
" tls13_kex_modes=%%s default: all\n" \
|
||||||
|
" options: psk_pure, psk_ephemeral, ephemeral_pure, ephemeral_all, psk_all, all\n"
|
||||||
|
#else
|
||||||
|
#define USAGE_TLS13_KEY_EXCHANGE_MODES ""
|
||||||
|
#endif /* MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL */
|
||||||
|
|
||||||
|
|
||||||
/* USAGE is arbitrarily split to stay under the portable string literal
|
/* USAGE is arbitrarily split to stay under the portable string literal
|
||||||
* length limit: 4095 bytes in C99. */
|
* length limit: 4095 bytes in C99. */
|
||||||
#define USAGE1 \
|
#define USAGE1 \
|
||||||
@ -496,18 +505,19 @@ int main( void )
|
|||||||
#define USAGE4 \
|
#define USAGE4 \
|
||||||
USAGE_SSL_ASYNC \
|
USAGE_SSL_ASYNC \
|
||||||
USAGE_SNI \
|
USAGE_SNI \
|
||||||
" allow_sha1=%%d default: 0\n" \
|
" allow_sha1=%%d default: 0\n" \
|
||||||
" min_version=%%s default: (library default: tls1_2)\n" \
|
" min_version=%%s default: (library default: tls1_2)\n" \
|
||||||
" max_version=%%s default: (library default: tls1_2)\n" \
|
" max_version=%%s default: (library default: tls1_2)\n" \
|
||||||
" force_version=%%s default: \"\" (none)\n" \
|
" force_version=%%s default: \"\" (none)\n" \
|
||||||
" options: tls1_2, dtls1_2" TLS1_3_VERSION_OPTIONS \
|
" options: tls1_2, dtls1_2" TLS1_3_VERSION_OPTIONS \
|
||||||
"\n\n" \
|
"\n\n" \
|
||||||
" force_ciphersuite=<name> default: all enabled\n" \
|
" force_ciphersuite=<name> default: all enabled\n" \
|
||||||
" query_config=<name> return 0 if the specified\n" \
|
USAGE_TLS13_KEY_EXCHANGE_MODES \
|
||||||
|
" query_config=<name> return 0 if the specified\n" \
|
||||||
" configuration macro is defined and 1\n" \
|
" configuration macro is defined and 1\n" \
|
||||||
" otherwise. The expansion of the macro\n" \
|
" otherwise. The expansion of the macro\n" \
|
||||||
" is printed if it is defined\n" \
|
" is printed if it is defined\n" \
|
||||||
USAGE_SERIALIZATION \
|
USAGE_SERIALIZATION \
|
||||||
" acceptable ciphersuite names:\n"
|
" acceptable ciphersuite names:\n"
|
||||||
|
|
||||||
#define ALPN_LIST_SIZE 10
|
#define ALPN_LIST_SIZE 10
|
||||||
|
Loading…
x
Reference in New Issue
Block a user