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)
commitdafb67f3bb4a58a45fe92c1e362ea6429831688a
tree38d8b887cf55df7ffc5887c80c4994fdfaa53e8b
parentd80a1b9d186057ddb0d384ba601cf2b7d214539c
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