Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.0 RC2
-
None
-
3e1758e35d14e6ee16e30ae2f6f6bd92d29d57f0
Description
If the SSL handshake fails (e.g. when using unsupported protocols or ciphers), waitForEncrypted blocks instead of returning false immediately. For instance:
QSslSocket s;
s.setProtocol(QSsl::SslV2);
s.connectToHostEncrypted("www.google.com", 443);
bool ok = s.waitForEncrypted();