lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 21 Mar 2019 16:29:02 +0200
From:   Boris Pismenny <borisp@...lanox.com>
To:     davejwatson@...com, borisp@...lanox.com, aviadye@...lanox.com,
        john.fastabend@...il.com, daniel@...earbox.net,
        netdev@...r.kernel.org
Subject: [PATCH net-next v2] tls: Add SOL_TLS to uapi

User applications are forced to define the SOL_TLS manually at the
moment, which is inappropriate. Add SOL_TLS to the uapi.

Other protocols handle this similarly. For example see SOL_TIPC.

Signed-off-by: Boris Pismenny <borisp@...lanox.com>
---
v1: update commit message
---
 include/uapi/linux/tls.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/uapi/linux/tls.h b/include/uapi/linux/tls.h
index 401d6f0..000a99e 100644
--- a/include/uapi/linux/tls.h
+++ b/include/uapi/linux/tls.h
@@ -36,6 +36,10 @@
 
 #include <linux/types.h>
 
+#ifndef SOL_TLS
+#define SOL_TLS                282
+#endif
+
 /* TLS socket options */
 #define TLS_TX			1	/* Set transmit parameters */
 #define TLS_RX			2	/* Set receive parameters */
-- 
1.8.3.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ