doc: net: sockets: tls: Document the meaning of the protocol version
Document explicitly that the TLS version passed in the protocol parameter matters and specifies the minimum TLS version to use for the socket. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
committed by
Anas Nashif
parent
5a0f33b31f
commit
8a5c82ae1d
@@ -153,6 +153,9 @@ A secure socket can be created by specifying secure protocol type, for instance:
|
||||
|
||||
sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TLS_1_2);
|
||||
|
||||
The protocol version specified when creating the secure socket indicates the
|
||||
minimum TLS version used for the TLS session.
|
||||
|
||||
Once created, it can be configured with socket options. For instance, the
|
||||
CA certificate and hostname can be set:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user