diff options
author | Sabrina Dubroca <sd@queasysnail.net> | 2023-10-09 22:50:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-10-13 12:26:09 +0200 |
commit | 6d5029e54700b2427581513c533232b02ce05043 (patch) | |
tree | 6bbec467aea8449f61117d8b973b3a11ed62dee9 /include/net/tls.h | |
parent | tls: drop unnecessary cipher_type checks in tls offload (diff) | |
download | linux-6d5029e54700b2427581513c533232b02ce05043.tar.xz linux-6d5029e54700b2427581513c533232b02ce05043.zip |
tls: store rec_seq directly within cipher_context
TLS_MAX_REC_SEQ_SIZE is 8B, we don't get anything by using kmalloc.
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tls.h')
-rw-r--r-- | include/net/tls.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tls.h b/include/net/tls.h index a2b44578dcb7..f3f22b08af26 100644 --- a/include/net/tls.h +++ b/include/net/tls.h @@ -194,7 +194,7 @@ enum tls_context_flags { struct cipher_context { char *iv; - char *rec_seq; + char rec_seq[TLS_MAX_REC_SEQ_SIZE]; }; union tls_crypto_context { |