tls: rx: wrap decryption arguments in a structure
authorJakub Kicinski <kuba@kernel.org>
Fri, 8 Apr 2022 18:31:26 +0000 (11:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 Apr 2022 16:32:11 +0000 (17:32 +0100)
commit4175eac37123a68ebee71f288826339fb89bfec7
tree51737f7c36a156c4901a095061f71d81230915af
parent9bdf75ccffa690237cd0b472cd598cf6d22873dc
tls: rx: wrap decryption arguments in a structure

We pass zc as a pointer to bool a few functions down as an in/out
argument. This is error prone since C will happily evalue a pointer
as a boolean (IOW forgetting *zc and writing zc leads to loss of
developer time..). Wrap the arguments into a structure.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_sw.c