Changeset 846 for trunk/src/network/ssl/qsslsocket.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/network/ssl/qsslsocket.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 211 211 signal. This mode is the default for clients. 212 212 213 \value AutoVerifyPeer QSslSocket will automatical y use QueryPeer for213 \value AutoVerifyPeer QSslSocket will automatically use QueryPeer for 214 214 server sockets and VerifyPeer for client sockets. 215 215 … … 297 297 #include <QtCore/qdebug.h> 298 298 #include <QtCore/qdir.h> 299 #include <QtCore/qdatetime.h>300 299 #include <QtCore/qmutex.h> 300 #include <QtCore/qelapsedtimer.h> 301 301 #include <QtNetwork/qhostaddress.h> 302 302 #include <QtNetwork/qhostinfo.h> … … 575 575 576 576 The default mode is AutoVerifyPeer, which tells QSslSocket to use 577 VerifyPeer for clients , QueryPeer for clients.577 VerifyPeer for clients and QueryPeer for servers. 578 578 579 579 \sa setPeerVerifyMode(), peerVerifyDepth(), mode() … … 595 595 596 596 The default mode is AutoVerifyPeer, which tells QSslSocket to use 597 VerifyPeer for clients , QueryPeer for clients.597 VerifyPeer for clients and QueryPeer for servers. 598 598 599 599 Setting this mode after encryption has started has no effect on the … … 1330 1330 Returns the current default CA certificate database. This database 1331 1331 is originally set to your system's default CA certificate database. 1332 If no system default database is found, Qt will provide its own1333 default database. You can override the default CA certificate database1332 If no system default database is found, an empty database will be 1333 returned. You can override the default CA certificate database 1334 1334 with your own CA certificate database using setDefaultCaCertificates(). 1335 1335 … … 1345 1345 1346 1346 /*! 1347 This function provides a defaultCA certificate database1348 shipped together with Qt. The CA certificate database1347 This function provides the CA certificate database 1348 provided by the operating system. The CA certificate database 1349 1349 returned by this function is used to initialize the database 1350 1350 returned by defaultCaCertificates(). You can replace that database … … 1355 1355 QList<QSslCertificate> QSslSocket::systemCaCertificates() 1356 1356 { 1357 QSslSocketPrivate::ensureInitialized();1357 // we are calling ensureInitialized() in the method below 1358 1358 return QSslSocketPrivate::systemCaCertificates(); 1359 1359 } … … 1404 1404 return false; 1405 1405 1406 Q TimestopWatch;1406 QElapsedTimer stopWatch; 1407 1407 stopWatch.start(); 1408 1408 … … 1444 1444 d->readyReadEmittedPointer = &readyReadEmitted; 1445 1445 1446 Q TimestopWatch;1446 QElapsedTimer stopWatch; 1447 1447 stopWatch.start(); 1448 1448 … … 1481 1481 return d->plainSocket->waitForBytesWritten(msecs); 1482 1482 1483 Q TimestopWatch;1483 QElapsedTimer stopWatch; 1484 1484 stopWatch.start(); 1485 1485 … … 1519 1519 return d->plainSocket->waitForDisconnected(msecs); 1520 1520 1521 Q TimestopWatch;1521 QElapsedTimer stopWatch; 1522 1522 stopWatch.start(); 1523 1523 … … 1557 1557 bool QSslSocket::supportsSsl() 1558 1558 { 1559 return QSslSocketPrivate:: ensureInitialized();1559 return QSslSocketPrivate::supportsSsl(); 1560 1560 } 1561 1561 … … 1966 1966 QMutexLocker locker(&globalData()->mutex); 1967 1967 const QSslConfigurationPrivate *global = globalData()->config.constData(); 1968 1969 if (!global) { 1970 ptr = 0; 1971 return; 1972 } 1968 1973 1969 1974 ptr->ref = 1; … … 2031 2036 } 2032 2037 2038 void QSslSocketPrivate::pauseSocketNotifiers(QSslSocket *socket) 2039 { 2040 if (!socket->d_func()->plainSocket) 2041 return; 2042 QAbstractSocketPrivate::pauseSocketNotifiers(socket->d_func()->plainSocket); 2043 } 2044 2045 void QSslSocketPrivate::resumeSocketNotifiers(QSslSocket *socket) 2046 { 2047 if (!socket->d_func()->plainSocket) 2048 return; 2049 QAbstractSocketPrivate::resumeSocketNotifiers(socket->d_func()->plainSocket); 2050 } 2051 2033 2052 /*! 2034 2053 \internal
Note:
See TracChangeset
for help on using the changeset viewer.