summaryrefslogtreecommitdiffstats
path: root/ssl/record
diff options
context:
space:
mode:
authorVadim Fedorenko <vadimjunk@gmail.com>2020-01-25 21:49:08 +0300
committerMatt Caswell <matt@openssl.org>2020-06-08 11:13:53 +0100
commitcc10b56dbe29e4f254ad1f3abc7ca5216c3069e6 (patch)
tree28fccbd3cbb6cea9f15bd2aa44f4dbe30ed1c629 /ssl/record
parent4ffccf6c4deebd6f3ab5d46234c64f957ff1c1c5 (diff)
TLSv13: add kTLS support
Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11589)
Diffstat (limited to 'ssl/record')
-rw-r--r--ssl/record/rec_layer_s3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/record/rec_layer_s3.c b/ssl/record/rec_layer_s3.c
index b1dcd517e2..fac3506b19 100644
--- a/ssl/record/rec_layer_s3.c
+++ b/ssl/record/rec_layer_s3.c
@@ -945,6 +945,7 @@ int do_ssl3_write(SSL *s, int type, const unsigned char *buf,
}
if (SSL_TREAT_AS_TLS13(s)
+ && !BIO_get_ktls_send(s->wbio)
&& s->enc_write_ctx != NULL
&& (s->statem.enc_write_state != ENC_WRITE_STATE_WRITE_PLAIN_ALERTS
|| type != SSL3_RT_ALERT)) {