diff options
| author | 2019-08-30 12:25:49 +0200 | |
|---|---|---|
| committer | 2019-08-31 23:44:28 -0700 | |
| commit | 26811cc9f55acf835f7fdadc5ff2bbd6f06bc3ac (patch) | |
| tree | 852f49de4153d6687c91600d98d559a22c5812a3 /include/uapi/linux/tls.h | |
| parent | tcp: ulp: add functions to dump ulp-specific information (diff) | |
| download | linux-dev-26811cc9f55acf835f7fdadc5ff2bbd6f06bc3ac.tar.xz linux-dev-26811cc9f55acf835f7fdadc5ff2bbd6f06bc3ac.zip | |
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>
Diffstat (limited to 'include/uapi/linux/tls.h')
| -rw-r--r-- | include/uapi/linux/tls.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/uapi/linux/tls.h b/include/uapi/linux/tls.h index 5b9c26753e46..bcd2869ed472 100644 --- a/include/uapi/linux/tls.h +++ b/include/uapi/linux/tls.h @@ -109,4 +109,19 @@ struct tls12_crypto_info_aes_ccm_128 { unsigned char rec_seq[TLS_CIPHER_AES_CCM_128_REC_SEQ_SIZE]; }; +enum { + TLS_INFO_UNSPEC, + TLS_INFO_VERSION, + TLS_INFO_CIPHER, + TLS_INFO_TXCONF, + TLS_INFO_RXCONF, + __TLS_INFO_MAX, +}; +#define TLS_INFO_MAX (__TLS_INFO_MAX - 1) + +#define TLS_CONF_BASE 1 +#define TLS_CONF_SW 2 +#define TLS_CONF_HW 3 +#define TLS_CONF_HW_RECORD 4 + #endif /* _UAPI_LINUX_TLS_H */ |
