Skip to content

Commit

Permalink
Clarify the priority in selecting TLS backends
Browse files Browse the repository at this point in the history
In case a custom TLS plugin is provided, the order can be unclear
(next after OpenSSL is either Schannel on Windows, or Secure Transport
on Darwin, then a custom plugin, if any, and the last one is 'cert-only').

Pick-to: 6.5 6.2
Fixes: QTBUG-123092
Change-Id: I02bcc1fa5448f64846d561a72b2522af3286c66c
Reviewed-by: Mårten Nordheim <[email protected]>
(cherry picked from commit 128645d)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
(cherry picked from commit 8e0bb88)
  • Loading branch information
Timur Pocheptsov authored and Qt Cherry-pick Bot committed Apr 20, 2024
1 parent b52f20c commit 2bace7a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/network/ssl/qsslsocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,12 @@ QList<QString> QSslSocket::availableBackends()
from the list of available backends.
\note When selecting a default backend implicitly, QSslSocket prefers
the OpenSSL backend if available.
the OpenSSL backend if available. If it's not available, the Schannel backend
is implicitly selected on Windows, and Secure Transport on Darwin platforms.
Failing these, if a custom TLS backend is found, it is used.
If no other backend is found, the "certificate only" backend is selected.
For more information about TLS plugins, please see
\l {Enabling and Disabling SSL Support when Building Qt from Source}.
\sa setActiveBackend(), availableBackends()
*/
Expand Down

0 comments on commit 2bace7a

Please sign in to comment.