[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250626145618.15464-1-ulrich.weber@gmail.com>
Date: Thu, 26 Jun 2025 16:56:18 +0200
From: Ulrich Weber <ulrich.weber@...il.com>
To: netdev@...r.kernel.org
Subject: [PATCH] doc: tls: socket needs to be established to enable ulp
To enable TLS ulp socket needs to be in established state.
This was added in d91c3e17f75f218022140dee18cf515292184a8f
Signed-off-by: Ulrich Weber <ulrich.weber@...il.com>
---
Documentation/networking/tls.rst | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Documentation/networking/tls.rst b/Documentation/networking/tls.rst
index c7904a1bc167..36cc7afc2527 100644
--- a/Documentation/networking/tls.rst
+++ b/Documentation/networking/tls.rst
@@ -16,11 +16,13 @@ User interface
Creating a TLS connection
-------------------------
-First create a new TCP socket and set the TLS ULP.
+First create a new TCP socket and once the connection is established set the
+TLS ULP.
.. code-block:: c
sock = socket(AF_INET, SOCK_STREAM, 0);
+ connect(sock, addr, addrlen);
setsockopt(sock, SOL_TCP, TCP_ULP, "tls", sizeof("tls"));
Setting the TLS ULP allows us to set/get TLS socket options. Currently
--
2.43.0
Powered by blists - more mailing lists