TLSv13: add kTLS support
[openssl.git] / ssl / record / rec_layer_s3.c
index b1dcd517e2d81d7d228e201a39bced873f8602e1..fac3506b191a3d9120345e99d3d96bf8ba51a788 100644 (file)
@@ -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)) {