mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Add a ciphersuite NODTLS flag
This commit is contained in:
committed by
Paul Bakker
parent
0b1ff29328
commit
d66645130c
@ -588,6 +588,12 @@ static int ssl_write_client_hello( ssl_context *ssl )
|
||||
ciphersuite_info->max_minor_ver < ssl->min_minor_ver )
|
||||
continue;
|
||||
|
||||
#if defined(POLARSSL_SSL_PROTO_DTLS)
|
||||
if( ssl->transport == SSL_TRANSPORT_DATAGRAM &&
|
||||
( ciphersuite_info->flags & POLARSSL_CIPHERSUITE_NODTLS ) )
|
||||
continue;
|
||||
#endif
|
||||
|
||||
SSL_DEBUG_MSG( 3, ( "client hello, add ciphersuite: %2d",
|
||||
ciphersuites[i] ) );
|
||||
|
||||
|
Reference in New Issue
Block a user