]> git.baikalelectronics.ru Git - kernel.git/commit
tls: retrun the correct IV in getsockopt
authorBoris Pismenny <borisp@mellanox.com>
Wed, 14 Feb 2018 08:46:06 +0000 (10:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Feb 2018 20:05:19 +0000 (15:05 -0500)
commitebd41b4643dd02b608021095253d5647526b93cc
tree99850708433de9870bf9aa9f356809b0eec28f90
parent4c8dbd51544897fdc9f594a4509e19c340e05621
tls: retrun the correct IV in getsockopt

Current code returns four bytes of salt followed by four bytes of IV.
This patch returns all eight bytes of IV.

fixes: 3a71956a2d9a ("tls: kernel TLS support")
Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_main.c