diff options
Diffstat (limited to 'src/network/ssl/qsslsocket.cpp')
-rw-r--r-- | src/network/ssl/qsslsocket.cpp | 188 |
1 files changed, 0 insertions, 188 deletions
diff --git a/src/network/ssl/qsslsocket.cpp b/src/network/ssl/qsslsocket.cpp index ab1f2b0dc8..188473912c 100644 --- a/src/network/ssl/qsslsocket.cpp +++ b/src/network/ssl/qsslsocket.cpp @@ -1378,194 +1378,6 @@ QSslKey QSslSocket::privateKey() const } /*! - \deprecated - - Use QSslConfiguration::addCaCertificate() instead. - - Adds the \a certificate to this socket's CA certificate database. - The CA certificate database is used by the socket during the - handshake phase to validate the peer's certificate. - - To add multiple certificates, use addCaCertificates(). - - \sa QSslConfiguration::caCertificates(), - QSslConfiguration::setCaCertificates() -*/ -void QSslSocket::addCaCertificate(const QSslCertificate &certificate) -{ - Q_D(QSslSocket); - d->configuration.caCertificates += certificate; -} - -/*! - \deprecated - - Use QSslConfiguration::addCaCertificates() instead. - - Adds the \a certificates to this socket's CA certificate database. - The CA certificate database is used by the socket during the - handshake phase to validate the peer's certificate. - - For more precise control, use addCaCertificate(). - - \sa QSslConfiguration::caCertificates(), addDefaultCaCertificate() -*/ -void QSslSocket::addCaCertificates(const QList<QSslCertificate> &certificates) -{ - Q_D(QSslSocket); - d->configuration.caCertificates += certificates; -} - -#if QT_DEPRECATED_SINCE(5, 5) -/*! - \deprecated - - Use QSslConfiguration::setCaCertificates() instead. - - Sets this socket's CA certificate database to be \a certificates. - The certificate database must be set prior to the SSL handshake. - The CA certificate database is used by the socket during the - handshake phase to validate the peer's certificate. - - The CA certificate database can be reset to the current default CA - certificate database by calling this function with the list of CA - certificates returned by defaultCaCertificates(). - - \sa defaultCaCertificates() -*/ -void QSslSocket::setCaCertificates(const QList<QSslCertificate> &certificates) -{ - Q_D(QSslSocket); - d->configuration.caCertificates = certificates; - d->allowRootCertOnDemandLoading = false; -} - -/*! - \deprecated - - Use QSslConfiguration::caCertificates() instead. - - Returns this socket's CA certificate database. The CA certificate - database is used by the socket during the handshake phase to - validate the peer's certificate. It can be moodified prior to the - handshake with addCaCertificate(), addCaCertificates(), and - setCaCertificates(). - - \note On Unix, this method may return an empty list if the root - certificates are loaded on demand. - - \sa addCaCertificate(), addCaCertificates(), setCaCertificates() -*/ -QList<QSslCertificate> QSslSocket::caCertificates() const -{ - Q_D(const QSslSocket); - return d->configuration.caCertificates; -} -#endif // #if QT_DEPRECATED_SINCE(5, 5) - -/*! - \deprecated - - Use QSslConfiguration::addCaCertificate() on the default QSslConfiguration instead. - - Adds \a certificate to the default CA certificate database. Each - SSL socket's CA certificate database is initialized to the default - CA certificate database. - - \sa QSslConfiguration::addCaCertificates() -*/ -void QSslSocket::addDefaultCaCertificate(const QSslCertificate &certificate) -{ - QSslSocketPrivate::addDefaultCaCertificate(certificate); -} - -/*! - \deprecated - - Use QSslConfiguration::addCaCertificates() on the default QSslConfiguration instead. - - Adds \a certificates to the default CA certificate database. Each - SSL socket's CA certificate database is initialized to the default - CA certificate database. - - \sa QSslConfiguration::caCertificates(), QSslConfiguration::addCaCertificates() -*/ -void QSslSocket::addDefaultCaCertificates(const QList<QSslCertificate> &certificates) -{ - QSslSocketPrivate::addDefaultCaCertificates(certificates); -} - -#if QT_DEPRECATED_SINCE(5, 5) -/*! - \deprecated - - Use QSslConfiguration::setCaCertificates() on the default QSslConfiguration instead. - - Sets the default CA certificate database to \a certificates. The - default CA certificate database is originally set to your system's - default CA certificate database. You can override the default CA - certificate database with your own CA certificate database using - this function. - - Each SSL socket's CA certificate database is initialized to the - default CA certificate database. - - \sa addDefaultCaCertificate() -*/ -void QSslSocket::setDefaultCaCertificates(const QList<QSslCertificate> &certificates) -{ - QSslSocketPrivate::setDefaultCaCertificates(certificates); -} - -/*! - \deprecated - - Use QSslConfiguration::caCertificates() on the default QSslConfiguration instead. - - Returns the current default CA certificate database. This database - is originally set to your system's default CA certificate database. - If no system default database is found, an empty database will be - returned. You can override the default CA certificate database - with your own CA certificate database using setDefaultCaCertificates(). - - Each SSL socket's CA certificate database is initialized to the - default CA certificate database. - - \note On Unix, this method may return an empty list if the root - certificates are loaded on demand. - - \sa caCertificates() -*/ -QList<QSslCertificate> QSslSocket::defaultCaCertificates() -{ - return QSslSocketPrivate::defaultCaCertificates(); -} - -/*! - \deprecated - - Use QSslConfiguration::systemDefaultCaCertificates instead. - - This function provides the CA certificate database - provided by the operating system. The CA certificate database - returned by this function is used to initialize the database - returned by defaultCaCertificates(). You can replace that database - with your own with setDefaultCaCertificates(). - - \note: On OS X, only certificates that are either trusted for all - purposes or trusted for the purpose of SSL in the keychain will be - returned. - - \sa caCertificates(), defaultCaCertificates(), setDefaultCaCertificates() -*/ -QList<QSslCertificate> QSslSocket::systemCaCertificates() -{ - // we are calling ensureInitialized() in the method below - return QSslSocketPrivate::systemCaCertificates(); -} -#endif // #if QT_DEPRECATED_SINCE(5, 5) - -/*! Waits until the socket is connected, or \a msecs milliseconds, whichever happens first. If the connection has been established, this function returns \c true; otherwise it returns \c false. |