Message ID | 1518597968-72686-3-git-send-email-borisp@mellanox.com |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
Series | [1/3] tls: retrun the correct IV in getsockopt | expand |
From: Boris Pismenny <borisp@mellanox.com> Date: Wed, 14 Feb 2018 10:46:08 +0200 > Return the TLS record sequence number in getsockopt. > > Signed-off-by: Boris Pismenny <borisp@mellanox.com> Applied.
diff --git a/net/tls/tls_main.c b/net/tls/tls_main.c index c105f86..e9b4b53 100644 --- a/net/tls/tls_main.c +++ b/net/tls/tls_main.c @@ -311,6 +311,8 @@ static int do_tls_getsockopt_tx(struct sock *sk, char __user *optval, memcpy(crypto_info_aes_gcm_128->iv, ctx->iv + TLS_CIPHER_AES_GCM_128_SALT_SIZE, TLS_CIPHER_AES_GCM_128_IV_SIZE); + memcpy(crypto_info_aes_gcm_128->rec_seq, ctx->rec_seq, + TLS_CIPHER_AES_GCM_128_REC_SEQ_SIZE); release_sock(sk); if (copy_to_user(optval, crypto_info_aes_gcm_128,
Return the TLS record sequence number in getsockopt. Signed-off-by: Boris Pismenny <borisp@mellanox.com> --- net/tls/tls_main.c | 2 ++ 1 file changed, 2 insertions(+)