projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
257082e
)
tls: getsockopt return record sequence number
author
Boris Pismenny
<borisp@mellanox.com>
Wed, 14 Feb 2018 08:46:08 +0000
(10:46 +0200)
committer
David S. Miller
<davem@davemloft.net>
Wed, 14 Feb 2018 20:05:19 +0000
(15:05 -0500)
Return the TLS record sequence number in getsockopt.
Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_main.c
patch
|
blob
|
history
diff --git
a/net/tls/tls_main.c
b/net/tls/tls_main.c
index c105f86a7ea628dc15996c7c563087be52dae251..e9b4b53ab53e08b2b8ddaf7e57da9d0a9862a4b1 100644
(file)
--- 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,