This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 30th, 2011  |  syntax: Diff  |  size: 0.75 KB  |  views: 149  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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);
clone this paste RAW Paste Data