]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit85b071d7912dde53b7a61c9a82cf9985e6a408ad
tree51737f7c36a156c4901a095061f71d81230915af
parent1b4316bfc9eca8290cfc3ae9c7213103b4f1bd6a
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