Add a ciphersuite NODTLS flag

This commit is contained in:
Manuel Pégourié-Gonnard 2014-02-06 13:26:57 +01:00 committed by Paul Bakker
parent 0b1ff29328
commit d66645130c
4 changed files with 23 additions and 10 deletions

View file

@ -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] ) );