equal
deleted
inserted
replaced
208 \value VerifyPeer QSslSocket will request a certificate from the peer |
208 \value VerifyPeer QSslSocket will request a certificate from the peer |
209 during the SSL handshake phase, and requires that this certificate is |
209 during the SSL handshake phase, and requires that this certificate is |
210 valid. On failure, QSslSocket will emit the QSslSocket::sslErrors() |
210 valid. On failure, QSslSocket will emit the QSslSocket::sslErrors() |
211 signal. This mode is the default for clients. |
211 signal. This mode is the default for clients. |
212 |
212 |
213 \value AutoVerifyPeer QSslSocket will automaticaly use QueryPeer for |
213 \value AutoVerifyPeer QSslSocket will automatically use QueryPeer for |
214 server sockets and VerifyPeer for client sockets. |
214 server sockets and VerifyPeer for client sockets. |
215 |
215 |
216 \sa QSslSocket::peerVerifyMode() |
216 \sa QSslSocket::peerVerifyMode() |
217 */ |
217 */ |
218 |
218 |
1963 void QSslConfigurationPrivate::deepCopyDefaultConfiguration(QSslConfigurationPrivate *ptr) |
1963 void QSslConfigurationPrivate::deepCopyDefaultConfiguration(QSslConfigurationPrivate *ptr) |
1964 { |
1964 { |
1965 QSslSocketPrivate::ensureInitialized(); |
1965 QSslSocketPrivate::ensureInitialized(); |
1966 QMutexLocker locker(&globalData()->mutex); |
1966 QMutexLocker locker(&globalData()->mutex); |
1967 const QSslConfigurationPrivate *global = globalData()->config.constData(); |
1967 const QSslConfigurationPrivate *global = globalData()->config.constData(); |
|
1968 |
|
1969 if (!global) { |
|
1970 ptr = 0; |
|
1971 return; |
|
1972 } |
1968 |
1973 |
1969 ptr->ref = 1; |
1974 ptr->ref = 1; |
1970 ptr->peerCertificate = global->peerCertificate; |
1975 ptr->peerCertificate = global->peerCertificate; |
1971 ptr->peerCertificateChain = global->peerCertificateChain; |
1976 ptr->peerCertificateChain = global->peerCertificateChain; |
1972 ptr->localCertificate = global->localCertificate; |
1977 ptr->localCertificate = global->localCertificate; |