netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] doc: tls: socket needs to be established to enable ulp
@ 2025-06-26 14:56 Ulrich Weber
  2025-06-27 22:40 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Weber @ 2025-06-26 14:56 UTC (permalink / raw)
  To: netdev

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

Signed-off-by: Ulrich Weber <ulrich.weber@gmail.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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] doc: tls: socket needs to be established to enable ulp
  2025-06-26 14:56 [PATCH] doc: tls: socket needs to be established to enable ulp Ulrich Weber
@ 2025-06-27 22:40 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-06-27 22:40 UTC (permalink / raw)
  To: Ulrich Weber; +Cc: netdev

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

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
> 
> Signed-off-by: Ulrich Weber <ulrich.weber@gmail.com>
> ---
>  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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-06-27 22:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-26 14:56 [PATCH] doc: tls: socket needs to be established to enable ulp Ulrich Weber
2025-06-27 22:40 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).