tls: retrun the correct IV in getsockopt
authorBoris Pismenny <borisp@mellanox.com>
Wed, 14 Feb 2018 08:46:06 +0000 (10:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:51:56 +0000 (07:51 +0200)
commit94203f213c1938aec35f063c411bc5a73a9b814b
treeb2607d48ae38ab0af01b19f405f2c8bea6d4bbbe
parentcec7d77a1db83c6b9dfdac5b6963cd1cdaaacb77
tls: retrun the correct IV in getsockopt

[ Upstream commit a1dfa6812b682eef750412dd5a90e7d38d7af068 ]

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

fixes: 3c4d7559159b ("tls: kernel TLS support")
Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/tls/tls_main.c