commit | d66645130c1fee01e694c51caace8ea4701c9733 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Thu Feb 06 13:26:57 2014 +0100 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Tue Oct 21 16:30:03 2014 +0200 |
tree | 3449e890031aa1b6c58f0330b86fd2465f91ff31 | |
parent | 0b1ff29328f108a8994711f32a873669a686200f [diff] [blame] |
Add a ciphersuite NODTLS flag
diff --git a/library/ssl_cli.c b/library/ssl_cli.c index 27abb3e..e1bfbc2 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c
@@ -588,6 +588,12 @@ 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] ) );