[Qt-interest] QSslSocket::ignoreSslErrors() strange behaviour?

FD dof at projektfabrik.com
Wed Sep 1 15:46:13 CEST 2010


Dear all,

I'm instantiating a QSslSocket and then issuing ignoreSslErrors() (be it with 
specific QSslErrors or for all). After that I call connectToHostEncrypted(), 
which results in the signal sslErrors() being emitted and waitForEncrypted() 
immediately returning with false. Only when I call ignoreSslErrors() from 
within the slot that's connected to the sslErrors() signal, waitForEncrypted() 
returns true, even though the signal sslErrors() is still emitted...

Now that sslErrors() is still being emitted, even though all SSL errors should 
be ignored is strange, but that the encryption only succeeds when called from 
within the slot is even stranger.

Any idea why that is? Or am I doing something completely wrong?

Thank you in advance for any help.


Greetings,
Florian



More information about the Qt-interest-old mailing list