]> git.baikalelectronics.ru Git - kernel.git/commit
tls: Split decrypt_skb to two functions
authorBoris Pismenny <borisp@mellanox.com>
Fri, 13 Jul 2018 11:33:40 +0000 (14:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2018 07:13:10 +0000 (00:13 -0700)
commit35241fe5851b1098b3e56910d90c576792660db8
tree38d8b887cf55df7ffc5887c80c4994fdfaa53e8b
parent25ea25cb80c136edc674a1759da54c8df495c715
tls: Split decrypt_skb to two functions

Previously, decrypt_skb also updated the TLS context.
Now, decrypt_skb only decrypts the payload using the current context,
while decrypt_skb_update also updates the state.

Later, in the tls_device Rx flow, we will use decrypt_skb directly.

Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tls.h
net/tls/tls_sw.c