openssl/ssl
Matt Caswell 3119ab3c9e Fix error in BIO_get_ktls_send() and BIO_get_ktls_recv()
If we were using a different type of BIO than a socket BIO then
BIO_get_ktls_send() and BIO_get_ktls_recv() could return the wrong
result.

The above occurred even if KTLS was disabled at compile time - so we should
additionally ensure that those macros do nothing if KTLS is disabled.

Finally we make the logic in ssl3_get_record() a little more robust when
KTLS has been disabled.

[extended tests]

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8793)
2019-04-25 13:02:52 +01:00
..
record Fix error in BIO_get_ktls_send() and BIO_get_ktls_recv() 2019-04-25 13:02:52 +01:00
statem conn_is_closed should return 1 if get_last_sys_error is WSAECONNRESET 2019-03-28 10:22:20 +00:00
bio_ssl.c
build.info
d1_lib.c
d1_msg.c
d1_srtp.c
methods.c
packet_locl.h
packet.c
pqueue.c
s3_cbc.c
s3_enc.c
s3_lib.c Remove heartbeats completely 2019-03-29 13:50:59 +01:00
s3_msg.c
ssl_asn1.c constify *_dup() and *i2d_*() and related functions as far as possible, introducing DECLARE_ASN1_DUP_FUNCTION 2019-03-06 16:10:09 +00:00
ssl_cert_table.h
ssl_cert.c
ssl_ciph.c Adapt CIPHER_DEBUG to the new generic trace API 2019-03-06 11:15:13 +01:00
ssl_conf.c
ssl_err.c Remove heartbeats completely 2019-03-29 13:50:59 +01:00
ssl_init.c Adapt OPENSSL_INIT_DEBUG to the new generic trace API 2019-03-06 11:15:13 +01:00
ssl_lib.c Check if num is 0 before trying to malloc memory. Otherwise for client hellos without extensions SSL_client_hello_get1_extensions_present will return MALLOC_FAILURE. 2019-04-19 09:51:48 +01:00
ssl_locl.h Fix typos 2019-04-10 12:00:20 +02:00
ssl_mcnf.c
ssl_rsa.c
ssl_sess.c constify *_dup() and *i2d_*() and related functions as far as possible, introducing DECLARE_ASN1_DUP_FUNCTION 2019-03-06 16:10:09 +00:00
ssl_stat.c
ssl_txt.c
ssl_utst.c
t1_enc.c ssl: Linux TLS Rx Offload 2019-04-01 11:54:48 +01:00
t1_lib.c
t1_trce.c Remove heartbeats completely 2019-03-29 13:50:59 +01:00
tls13_enc.c
tls_srp.c