304 qWarning(
"QSslConfiguration::setPeerVerifyDepth: cannot set negative depth of %d", depth);
The QSslKey class provides an interface for private and public keys.
QSharedDataPointer< QSslConfigurationPrivate > d
#define QT_END_NAMESPACE
This macro expands to.
QList< QSslCipher > ciphers() const
Returns this connection's current cryptographic cipher suite.
void setPrivateKey(const QSslKey &key)
Sets the connection's private QSslKey {key} to key.
void setCaCertificates(const QList< QSslCertificate > &certificates)
Sets this socket's CA certificate database to be certificates.
QSsl::SslOptions sslOptions
QList< QSslCipher > ciphers
void setCiphers(const QList< QSslCipher > &ciphers)
Sets the cryptographic cipher suite for this socket to ciphers, which must contain a subset of the ci...
void setPeerVerifyDepth(int depth)
Sets the maximum number of certificates in the peer's certificate chain to be checked during the SSL ...
bool operator==(const QSslConfiguration &other) const
Returns true if this QSslConfiguration object is equal to other.
QList< QSslCertificate > peerCertificateChain() const
Returns the peer's chain of digital certificates, starting with the peer's immediate certificate and ...
~QSslConfiguration()
Releases any resources held by QSslConfiguration.
int count(const T &t) const
Returns the number of occurrences of value in the list.
QSsl::SslProtocol protocol
The QSslCipher class represents an SSL cryptographic cipher.
bool isNull() const
Returns true if this is a null certificate (i.e., a certificate with no contents); otherwise returns ...
QSsl::SslProtocol protocol() const
Returns the protocol setting for this SSL configuration.
QList< QSslCertificate > caCertificates
#define QT_BEGIN_NAMESPACE
This macro expands to.
SslProtocol
Describes the protocol of the cipher.
QSslConfiguration()
Constructs an empty SSL configuration.
static QSslConfiguration defaultConfiguration()
static void setDefaultConfiguration(const QSslConfiguration &configuration)
Sets the default SSL configuration to be used in new SSL connections to be configuration.
QSslCipher sessionCipher() const
Returns the socket's cryptographic QSslCipher {cipher}, or a null cipher if the connection isn't encr...
bool isNull() const
Returns true if this is a null QSslConfiguration object.
QSslSocket::PeerVerifyMode peerVerifyMode
Q_CORE_EXPORT void qWarning(const char *,...)
static QSslConfiguration defaultConfiguration()
Returns the default SSL configuration to be used in new SSL connections.
static void setDefaultConfiguration(const QSslConfiguration &configuration)
QSslKey privateKey() const
Returns the QSslKey {SSL key} assigned to this connection or a null key if none has been assigned yet...
QSslCertificate localCertificate
SslOption
Describes the options that can be used to control the details of SSL behaviour.
void setLocalCertificate(const QSslCertificate &certificate)
Sets the certificate to be presented to the peer during SSL handshake to be certificate.
bool testSslOption(QSsl::SslOption option) const
Returns true if the specified SSL compatibility option is enabled.
void setPeerVerifyMode(QSslSocket::PeerVerifyMode mode)
Sets the verify mode to mode.
bool allowRootCertOnDemandLoading
int peerVerifyDepth() const
Returns the maximum number of certificates in the peer's certificate chain to be checked during the S...
QSslCertificate localCertificate() const
Returns the certificate to be presented to the peer during the SSL handshake process.
void setSslOption(QSsl::SslOption option, bool on)
Enables or disables an SSL compatibility option.
QSslConfiguration & operator=(const QSslConfiguration &other)
Copies the configuration and state of other.
bool isNull() const
Returns true if this is a null key; otherwise false.
The QSslCertificate class provides a convenient API for an X509 certificate.
The QSslConfiguration class holds the configuration and state of an SSL connection.
QSslSocket::PeerVerifyMode peerVerifyMode() const
Returns the verify mode.
QList< QSslCertificate > caCertificates() const
Returns this connection's CA certificate database.
QSslCertificate peerCertificate
QList< QSslCertificate > peerCertificateChain
void setProtocol(QSsl::SslProtocol protocol)
Sets the protocol setting for this configuration to be protocol.
QSslCertificate peerCertificate() const
Returns the peer's digital certificate (i.e., the immediate certificate of the host you are connected...
PeerVerifyMode
Describes the peer verification modes for QSslSocket.