Skip to contentSkip to conversation

doc: tls: socket needs to be established to enable ulp

PATCH Applied Ulrich Weber 2 participants 2 messages Jun 26, 2025 – Jun 27, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 Documentation/networking/tls.rst | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/networking/tls.rst +3 -1
index c7904a1bc167..36cc7afc2527 100644
@@ -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
Signature · 1 line
2.43.0
#1 lore raw
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

Quoted 7 lines · On Thu, 26 Jun 2025 16:56:18 +0200 you wrote:

To enable TLS ulp socket needs to be in established state. This was added in d91c3e17f75f218022140dee18cf515292184a8f

---
 Documentation/networking/tls.rst | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Here is the summary with links:
- doc: tls: socket needs to be established to enable ulp

    https://git.kernel.org/netdev/net/c/ba2f83eecd2b

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html