projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e45773
)
doc: tls: socket needs to be established to enable ulp
author
Ulrich Weber
<ulrich.weber@gmail.com>
Thu, 26 Jun 2025 14:56:18 +0000
(16:56 +0200)
committer
Jakub Kicinski
<kuba@kernel.org>
Fri, 27 Jun 2025 22:33:01 +0000
(15:33 -0700)
To enable TLS ulp socket needs to be in established state.
This was added in commit
d91c3e17f75f
("net/tls: Only attach
to sockets in ESTABLISHED state"), in 2018.
Signed-off-by: Ulrich Weber <ulrich.weber@gmail.com>
Link:
https://patch.msgid.link/20250626145618.15464-1-ulrich.weber@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/tls.rst
patch
|
blob
|
blame
|
history
diff --git
a/Documentation/networking/tls.rst
b/Documentation/networking/tls.rst
index c7904a1bc167410397fc8bb0b77773f634521b87..36cc7afc2527d4d046a7249daef6a3987332e7c8 100644
(file)
--- 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