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

Thiago Macieira thiago at kde.org
Wed Sep 1 20:40:53 CEST 2010


On Wednesday 1. September 2010 16.31.34 FD wrote:
> Hi again,
> 
> ok, ignoreSslErrors(const QList<QSslError> & errors) with specific
> QSslErrors does work, ignoring all errors by just calling
> ignoreSslErrors() however does not.
> 
> But I still find it strange, that sslErrors() is being emitted, even though
> the specific SSL error is being ignored. Is this the intended behaviour?

Yes, it's the intended behaviour.

You ignored the errors, but errors still happened.

Also, you should call ignoreSslErrors after calling connectToHost or 
connectToHostEncrypted.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100901/43787e06/attachment.bin 


More information about the Qt-interest-old mailing list