summaryrefslogtreecommitdiffstats
path: root/ssl/tls13_enc.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2022-08-31 17:39:36 +0200
committerMatt Caswell <matt@openssl.org>2022-09-23 15:54:49 +0200
commiteb7d6c2a9b3b9d1582e3e1b65c9d431cf3209207 (patch)
treeb5eea05b839850d54337ad1345c0736216a6c47f /ssl/tls13_enc.c
parentMove the record padding callback fully into the record layer (diff)
downloadopenssl-eb7d6c2a9b3b9d1582e3e1b65c9d431cf3209207.tar.xz
openssl-eb7d6c2a9b3b9d1582e3e1b65c9d431cf3209207.zip
Move the record block_padding capability fully into the record layer
Previously we were referencing the block_padding value through the SSL_CONNECTION. Now it is held within OSSL_RECORD_LAYER. Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19198)
Diffstat (limited to 'ssl/tls13_enc.c')
-rw-r--r--ssl/tls13_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/tls13_enc.c b/ssl/tls13_enc.c
index 1e8e189b7c..431a7fff70 100644
--- a/ssl/tls13_enc.c
+++ b/ssl/tls13_enc.c
@@ -735,7 +735,7 @@ int tls13_change_cipher_state(SSL_CONNECTION *s, int which)
goto skip_ktls;
/* ktls does not support record padding */
- if (s->record_padding_cb != NULL)
+ if (s->rlayer.record_padding_cb != NULL || s->rlayer.block_padding > 0)
goto skip_ktls;
/* check that cipher is supported */