4#include <QtCore/qfile.h>
5#include <QtNetwork/qsslcipher.h>
10static constexpr std::array<QSsl::SslOption, 8>
SslOptions = {
62 QList<QSslCertificate> certificates;
73 if (!certificates.isEmpty())
76 qWarning() <<
"No certificates loaded.";
168 qWarning() <<
"No dtls support enabled";
void append(parameter_type t)
Q_INVOKABLE void setPrivateKey(const QQmlSslKey &privateKey)
void setSessionTicket(const QByteArray &sessionTicket)
QList< QSsl::SslOption > m_sslOptions
void setCiphersList(const QSslConfiguration &configuration)
void setPeerVerifyDepth(int depth)
QList< QSsl::SslOption > sslOptions
void setCiphers(const QString &ciphers)
QSslSocket::PeerVerifyMode peerVerifyMode
void setSslOptionsList(const QSslConfiguration &configuration)
QSsl::SslProtocol protocol
Q_INVOKABLE void setCertificateFiles(const QStringList &certificateFiles)
QStringList m_certificateFiles
void setProtocol(QSsl::SslProtocol protocol)
void setPeerVerifyMode(QSslSocket::PeerVerifyMode mode)
QSslConfiguration m_configuration
QSslConfiguration const configuration()
void setSslOptions(const QList< QSsl::SslOption > &options)
QQmlSslDefaultConfiguration()
QQmlSslDefaultDtlsConfiguration()
QSslKey getSslKey() const
The QSslCertificate class provides a convenient API for an X509 certificate.
The QSslConfiguration class holds the configuration and state of an SSL connection.
bool testSslOption(QSsl::SslOption option) const
void setSessionTicket(const QByteArray &sessionTicket)
void setPeerVerifyMode(QSslSocket::PeerVerifyMode mode)
Sets the verify mode to mode.
QSslSocket::PeerVerifyMode peerVerifyMode() const
Returns the verify mode.
QSsl::SslProtocol protocol() const
Returns the protocol setting for this SSL configuration.
int peerVerifyDepth() const
Returns the maximum number of certificates in the peer's certificate chain to be checked during the S...
void setSslOption(QSsl::SslOption option, bool on)
Enables or disables an SSL compatibility option.
QList< QSslCipher > ciphers() const
Returns this connection's current cryptographic cipher suite.
QByteArray sessionTicket() const
void setPrivateKey(const QSslKey &key)
Sets the connection's private \l {QSslKey} {key} to key.
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 ...
static QSslConfiguration defaultConfiguration()
Returns the default SSL configuration to be used in new SSL connections.
void setCaCertificates(const QList< QSslCertificate > &certificates)
Sets this socket's CA certificate database to be certificates.
void setProtocol(QSsl::SslProtocol protocol)
Sets the protocol setting for this configuration to be protocol.
\macro QT_RESTRICTED_CAST_FROM_ASCII
qsizetype size() const noexcept
Returns the number of characters in this string.
static QString fromUtf8(QByteArrayView utf8)
This is an overloaded member function, provided for convenience. It differs from the above function o...
SslOption
Describes the options that can be used to control the details of SSL behaviour.
@ SslOptionDisableSessionPersistence
@ SslOptionDisableCompression
@ SslOptionDisableSessionTickets
@ SslOptionDisableServerNameIndication
@ SslOptionDisableLegacyRenegotiation
@ SslOptionDisableSessionSharing
@ SslOptionDisableServerCipherPreference
@ SslOptionDisableEmptyFragments
SslProtocol
Describes the protocol of the cipher.
Combined button and popup list for selecting options.
GLint GLenum GLsizei GLsizei GLsizei depth
static QT_BEGIN_NAMESPACE constexpr std::array< QSsl::SslOption, 8 > SslOptions
QList< QSslCertificate > cert
[0]