openssl/ssl
Matt Caswell 9924087573 Fix DTLS failure when used in a build which has SCTP enabled
The value of BIO_CTRL_DGRAM_SET_PEEK_MODE was clashing with the value for
BIO_CTRL_DGRAM_SCTP_SET_IN_HANDSHAKE. In an SCTP enabled build
BIO_CTRL_DGRAM_SCTP_SET_IN_HANDSHAKE was used unconditionally with
the reasoning that it would be ignored if SCTP wasn't in use. Unfortunately
due to this clash, this wasn't the case. The BIO ended up going into peek
mode and was continually reading the same data over and over - throwing it
away as a replay.

Fixes #3723

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3724)
2017-06-21 14:56:24 +01:00
..
record drop some no-longer-relevant TODO(TLS1.3) entries 2017-06-12 09:19:05 +01:00
statem Fix DTLS failure when used in a build which has SCTP enabled 2017-06-21 14:56:24 +01:00
bio_ssl.c Get pointer type right in BIO_ssl_shutdown() 2017-03-07 09:56:49 -05:00
build.info Move ssl/t1_ext.c to ssl/statem/extensions_cust.c 2017-04-07 13:41:04 +01:00
d1_lib.c Convert existing usage of assert() to ossl_assert() in libssl 2017-05-22 14:00:43 +01:00
d1_msg.c Remove special case code for SCTP reneg handling 2017-04-25 11:13:39 +01:00
d1_srtp.c Move client parsing of ServerHello extensions into new framework 2016-12-08 17:18:25 +00:00
methods.c
packet_locl.h TLS1.3 Padding 2017-05-02 09:44:43 +01:00
packet.c Convert existing usage of assert() to ossl_assert() in libssl 2017-05-22 14:00:43 +01:00
pqueue.c Fix a missed size_t variable declaration 2016-11-04 12:09:46 +00:00
s3_cbc.c Convert existing usage of assert() to ossl_assert() in libssl 2017-05-22 14:00:43 +01:00
s3_enc.c Merge Nokia copyright notice into standard 2017-06-21 08:59:18 -04:00
s3_lib.c Merge Nokia copyright notice into standard 2017-06-21 08:59:18 -04:00
s3_msg.c Always flush the BIO when we send any alert 2017-06-06 22:39:41 +01:00
ssl_asn1.c Merge Nokia copyright notice into standard 2017-06-21 08:59:18 -04:00
ssl_cert.c Modify Sun copyright to follow OpenSSL style 2017-06-20 11:13:45 -04:00
ssl_ciph.c PSK related tweaks based on review feedback 2017-06-21 14:45:36 +01:00
ssl_conf.c Ignore -named_curve auto value to improve backwards compatibility 2017-06-08 21:28:36 +01:00
ssl_err.c Add TLSv1.3 client side external PSK support 2017-06-21 14:45:35 +01:00
ssl_init.c Convert existing usage of assert() to ossl_assert() in libssl 2017-05-22 14:00:43 +01:00
ssl_lib.c PSK related tweaks based on review feedback 2017-06-21 14:45:36 +01:00
ssl_locl.h Add TLSv1.3 client side external PSK support 2017-06-21 14:45:35 +01:00
ssl_mcnf.c Fix misc size_t issues causing Windows warnings in 64 bit 2016-11-04 12:09:46 +00:00
ssl_rsa.c Try to be more consistent about the alerts we send 2017-05-19 08:47:08 +01:00
ssl_sess.c Add SSL_SESSION_set_protocol_version() 2017-06-21 14:45:35 +01:00
ssl_stat.c Merge Nokia copyright notice into standard 2017-06-21 08:59:18 -04:00
ssl_txt.c Merge Nokia copyright notice into standard 2017-06-21 08:59:18 -04:00
ssl_utst.c Remove heartbeat support 2016-11-13 16:24:02 -05:00
t1_enc.c Merge Nokia copyright notice into standard 2017-06-21 08:59:18 -04:00
t1_lib.c Use EVP_PKEY_X25519, EVP_PKEY_ED25519 instead of NIDs where appropriate. 2017-06-21 14:11:01 +01:00
t1_trce.c Add Ed25519 to trace output 2017-06-21 14:11:01 +01:00
tls13_enc.c Fix a memleak in tls13_generate_secret. 2017-06-12 15:15:04 -04:00
tls_srp.c Use memset to clear SRP_CTX instead of NULL and zero assignments 2017-06-08 20:59:24 +01:00