|
|
I'm trying to log SSL errors in a QSslSocket that is verifying
client certificates, and although the QSslError::errorString()
values seem to be sensible, the associated certificate contains
no useful data:
> connect(reader, SIGNAL( sslErrors(const QList<QSslError>&) ),
> this, SLOT( ssl_encryption_failed(const QList<QSslError>&) ));
> void HTTPSListener::ssl_encryption_failed(const QList<QSslError> & errors)
> {
> mdp_log(QObject::tr("server encryption failed"));
>
> foreach (QSslError error, errors)
> {
> mdp_log(QObject::tr(" issuer common name :
> %1").arg(error.certificate().issuerInfo(QSslCertificate::CommonName)));
> mdp_log(QObject::tr(" issuer organization :
> %1").arg(error.certificate().issuerInfo(QSslCertificate::Organization)));
> mdp_log(QObject::tr("SSL error: %1,
> %2").arg(error.error()).arg(error.errorString()));
> }
> }
The first two log lines return empty common name and organization
strings.
I note that there's a related bug report 173249 in Bug
Tracker but this was apparently fixed in Qt 4.3.2. Is it
possible that it's crept back into 4.4.0 ?
--
Regards
Steve Collyer
Netspinner Ltd
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
|
|