aboutsummaryrefslogtreecommitdiff
path: root/include/net/tls.h
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2023-10-09 22:50:43 +0200
committerDavid S. Miller <davem@davemloft.net>2023-10-13 11:26:09 +0100
commit6d5029e54700b2427581513c533232b02ce05043 (patch)
tree6bbec467aea8449f61117d8b973b3a11ed62dee9 /include/net/tls.h
parent8f1d532b4a49e196696b0aa150962d7ce96985e4 (diff)
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.h2
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 {