SHARE
TWEET

Untitled

a guest Aug 30th, 2011 150 Never
  1. diff --git a/tests/auto/qsslsocket/tst_qsslsocket.cpp b/tests/auto/qsslsocket/tst_qsslsocket.cpp
  2. index 2ea8fc8..0c058ac 100644
  3. --- a/tests/auto/qsslsocket/tst_qsslsocket.cpp
  4. +++ b/tests/auto/qsslsocket/tst_qsslsocket.cpp
  5. @@ -787,7 +787,7 @@ void tst_QSslSocket::privateKeyOpaque()
  6.      QList<QSslCertificate> localCert = QSslCertificate::fromPath(SRCDIR "certs/qt-test-server-cacert.pem");
  7.      socket->setCaCertificates(localCert);
  8.      socket->setLocalCertificate(QLatin1String(SRCDIR "certs/fluke.cert"));
  9. -    socket->setPrivateKey(QSslKey(pkey));
  10. +    socket->setPrivateKey(QSslKey(reinterpret_cast<Qt::HANDLE>(pkey)));
  11.  
  12.      socket->setPeerVerifyMode(QSslSocket::QueryPeer);
  13.      socket->connectToHostEncrypted(QtNetworkSettings::serverName(), 443);
RAW Paste Data
Top