OSDN Git Service

net: tls: export protocol version, cipher, tx_conf/rx_conf to socket diag
authorDavide Caratti <dcaratti@redhat.com>
Fri, 30 Aug 2019 10:25:49 +0000 (12:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Sep 2019 06:44:28 +0000 (23:44 -0700)
commit26811cc9f55acf835f7fdadc5ff2bbd6f06bc3ac
tree852f49de4153d6687c91600d98d559a22c5812a3
parent61723b393292f1e4ea27f8d123384d50b176c29d
net: tls: export protocol version, cipher, tx_conf/rx_conf to socket diag

When an application configures kernel TLS on top of a TCP socket, it's
now possible for inet_diag_handler() to collect information regarding the
protocol version, the cipher type and TX / RX configuration, in case
INET_DIAG_INFO is requested.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tls.h
include/uapi/linux/inet_diag.h
include/uapi/linux/tls.h
net/tls/tls_main.c