![]() |
Qt 6.x
The Qt SDK
|
#include <qdtls_openssl_p.h>
Public Member Functions | |
QDtlsPrivateOpenSSL (QDtls *qObject, QSslSocket::SslMode mode) | |
unsigned | pskClientCallback (const char *hint, char *identity, unsigned max_identity_len, unsigned char *psk, unsigned max_psk_len) |
unsigned | pskServerCallback (const char *identity, unsigned char *psk, unsigned max_psk_len) |
![]() | |
QDtlsBasePrivate (QSslSocket::SslMode m, const QByteArray &s) | |
void | setDtlsError (QDtlsError code, const QString &description) override |
QDtlsError | error () const override |
QString | errorString () const override |
void | clearDtlsError () override |
void | setConfiguration (const QSslConfiguration &configuration) override |
QSslConfiguration | configuration () const override |
bool | setCookieGeneratorParameters (const GenParams &) override |
GenParams | cookieGeneratorParameters () const override |
Additional Inherited Members | |
![]() | |
static bool | isDtlsProtocol (QSsl::SslProtocol protocol) |
![]() | |
QHostAddress | remoteAddress |
quint16 | remotePort = 0 |
quint16 | mtuHint = 0 |
QDtlsError | errorCode = QDtlsError::NoError |
QString | errorDescription |
QSslConfiguration | dtlsConfiguration |
QSslSocket::SslMode | mode = QSslSocket::SslClientMode |
QSslCipher | sessionCipher |
QSsl::SslProtocol | sessionProtocol = QSsl::UnknownProtocol |
QString | peerVfyName |
QByteArray | secret |
QCryptographicHash::Algorithm | hashAlgorithm = QCryptographicHash::Sha256 |
Definition at line 122 of file qdtls_openssl_p.h.
QDtlsPrivateOpenSSL::QDtlsPrivateOpenSSL | ( | QDtls * | qObject, |
QSslSocket::SslMode | mode | ||
) |
Definition at line 826 of file qdtls_openssl.cpp.
References dtlsopenssl::DtlsState::dtlsPrivate, and Q_ASSERT.
|
overrideprivate |
Definition at line 1057 of file qdtls_openssl.cpp.
References QDtlsBasePrivate::clearDtlsError(), QDtls::HandshakeInProgress, QDtls::PeerVerificationFailed, Q_ASSERT, sendShutdownAlert(), and socket.
|
overrideprivate |
Definition at line 933 of file qdtls_openssl.cpp.
References QSslSocket::AutoVerifyPeer, QList< T >::clear(), QDtlsBasePrivate::clearDtlsError(), QScopedPointer< T, Cleanup >::data(), QSharedPointer< T >::data(), QDtlsBasePrivate::dtlsConfiguration, QDtls::HandshakeComplete, QDtls::HandshakeInProgress, QDtls::HandshakeNotStarted, dtlsopenssl::DtlsState::init(), QTlsBackendOpenSSL::msgErrorsDuringHandshake(), PeerVerificationError, QDtls::PeerVerificationFailed, QSslConfiguration::peerVerifyMode(), Q_ASSERT, q_SSL_accept(), q_SSL_connect(), q_SSL_get_error(), QDtlsBasePrivate::remoteAddress, QDtlsBasePrivate::remotePort, dtlsopenssl::DtlsState::reset(), QScopedPointer< T, Cleanup >::reset(), QDtlsBasePrivate::setDtlsError(), socket, QSslSocket::SslClientMode, QSslSocket::SslServerMode, dtlsopenssl::DtlsState::tlsConnection, TlsFatalError, QSslSocket::VerifyPeer, and dtlsopenssl::DtlsState::x509Errors.
Referenced by startHandshake().
|
overrideprivate |
Definition at line 834 of file qdtls_openssl.cpp.
References QDtlsBasePrivate::mode.
|
overrideprivate |
Definition at line 1164 of file qdtls_openssl.cpp.
References arg, QByteArray::clear(), QDtlsBasePrivate::clearDtlsError(), QByteArray::data(), QSharedPointer< T >::data(), dtlsopenssl::DtlsState::dgram, QDtlsBasePrivate::errorCode, QTlsBackendOpenSSL::getErrorsFromOpenSsl(), QDtls::HandshakeNotStarted, Q_ASSERT, q_ERR_get_error(), q_SSL_get_shutdown(), q_SSL_read(), read(), RemoteClosedConnectionError, dtlsopenssl::DtlsState::reset(), QByteArray::resize(), QDtlsBasePrivate::setDtlsError(), QByteArray::size(), socket, dtlsopenssl::DtlsState::tlsConnection, TlsNonFatalError, and dtlsopenssl::DtlsState::udpSocket.
|
overrideprivatevirtual |
Definition at line 871 of file qdtls_openssl.cpp.
References QDtlsBasePrivate::mtuHint.
|
overrideprivate |
Definition at line 1099 of file qdtls_openssl.cpp.
References QDtlsBasePrivate::sessionCipher.
|
overrideprivate |
Definition at line 1104 of file qdtls_openssl.cpp.
References QDtlsBasePrivate::sessionProtocol.
|
overrideprivate |
Definition at line 1017 of file qdtls_openssl.cpp.
References QDtlsBasePrivate::clearDtlsError(), QScopedPointer< T, Cleanup >::data(), QSharedPointer< T >::data(), dtlsutil::next_timeoutMs(), Q_ASSERT, socket, dtlsopenssl::DtlsState::tlsConnection, and dtlsopenssl::DtlsState::udpSocket.
|
overrideprivate |
Definition at line 1094 of file qdtls_openssl.cpp.
|
overrideprivatevirtual |
Definition at line 881 of file qdtls_openssl.cpp.
|
overrideprivate |
Definition at line 846 of file qdtls_openssl.cpp.
References QDtlsBasePrivate::remoteAddress.
|
overrideprivate |
Definition at line 851 of file qdtls_openssl.cpp.
References QDtlsBasePrivate::remotePort.
Definition at line 1089 of file qdtls_openssl.cpp.
|
overrideprivate |
Definition at line 861 of file qdtls_openssl.cpp.
References QDtlsBasePrivate::peerVfyName.
unsigned QDtlsPrivateOpenSSL::pskClientCallback | ( | const char * | hint, |
char * | identity, | ||
unsigned | max_identity_len, | ||
unsigned char * | psk, | ||
unsigned | max_psk_len | ||
) |
Definition at line 1223 of file qdtls_openssl.cpp.
References QByteArray::append(), QByteArray::clear(), QByteArray::constData(), emit, hint(), QSslPreSharedKeyAuthenticator::identity(), QByteArray::isEmpty(), QSslPreSharedKeyAuthenticator::maximumIdentityLength(), QSslPreSharedKeyAuthenticator::maximumPreSharedKeyLength(), QSslPreSharedKeyAuthenticator::preSharedKey(), qMin(), QTlsBackend::setupClientPskAuth(), QByteArray::size(), and QSslPreSharedKeyAuthenticator::swap().
unsigned QDtlsPrivateOpenSSL::pskServerCallback | ( | const char * | identity, |
unsigned char * | psk, | ||
unsigned | max_psk_len | ||
) |
Definition at line 1263 of file qdtls_openssl.cpp.
References QByteArray::constData(), QDtlsBasePrivate::dtlsConfiguration, emit, QByteArray::isEmpty(), QSslPreSharedKeyAuthenticator::maximumPreSharedKeyLength(), QSslPreSharedKeyAuthenticator::preSharedKey(), QSslConfiguration::preSharedKeyIdentityHint(), qMin(), QTlsBackend::setupServerPskAuth(), QByteArray::size(), and QSslPreSharedKeyAuthenticator::swap().
|
overrideprivate |
Definition at line 1038 of file qdtls_openssl.cpp.
References QList< T >::clear(), QDtlsBasePrivate::clearDtlsError(), QDtls::HandshakeComplete, QDtls::PeerVerificationFailed, Q_ASSERT, Q_UNUSED, and socket.
|
overrideprivate |
Definition at line 1074 of file qdtls_openssl.cpp.
References QDtlsBasePrivate::clearDtlsError(), QSharedPointer< T >::data(), Q_ASSERT, q_SSL_shutdown(), socket, dtlsopenssl::DtlsState::tlsConnection, and dtlsopenssl::DtlsState::udpSocket.
Referenced by abortHandshake().
Definition at line 866 of file qdtls_openssl.cpp.
References QDtlsBasePrivate::mtuHint.
|
overrideprivate |
Definition at line 839 of file qdtls_openssl.cpp.
References QDtlsBasePrivate::peerVfyName, QDtlsBasePrivate::remoteAddress, and QDtlsBasePrivate::remotePort.
Definition at line 856 of file qdtls_openssl.cpp.
References QDtlsBasePrivate::peerVfyName.
|
overrideprivate |
Definition at line 886 of file qdtls_openssl.cpp.
References QList< T >::clear(), QDtlsBasePrivate::clearDtlsError(), continueHandshake(), QSharedPointer< T >::data(), dtlsutil::delete_BIO_ADDR(), QDtlsBasePrivate::dtlsConfiguration, QDtls::HandshakeInProgress, QDtls::HandshakeNotStarted, dtlsopenssl::DtlsState::hashAlgorithm, QDtlsBasePrivate::hashAlgorithm, dtlsopenssl::DtlsState::init(), Q_ASSERT, QDtlsBasePrivate::remoteAddress, QDtlsBasePrivate::remotePort, dtlsopenssl::DtlsState::reset(), dtlsopenssl::DtlsState::secret, QDtlsBasePrivate::secret, QDtlsBasePrivate::setDtlsError(), socket, QSslSocket::SslServerMode, dtlsopenssl::DtlsState::tlsConnection, TlsFatalError, TlsInitializationError, and dtlsopenssl::DtlsState::writeSuppressed.
|
overrideprivatevirtual |
Definition at line 876 of file qdtls_openssl.cpp.
|
overrideprivate |
Definition at line 1109 of file qdtls_openssl.cpp.
References arg, QDtlsBasePrivate::clearDtlsError(), QByteArray::constData(), QSharedPointer< T >::data(), QAbstractSocket::error(), QDtlsBasePrivate::errorCode, QIODevice::errorString(), QTlsBackendOpenSSL::getErrorsFromOpenSsl(), QDtls::HandshakeNotStarted, QString::isEmpty(), Q_ASSERT, q_ERR_get_error(), q_SSL_write(), dtlsopenssl::DtlsState::reset(), QDtlsBasePrivate::setDtlsError(), QByteArray::size(), socket, dtlsopenssl::DtlsState::tlsConnection, TlsFatalError, dtlsopenssl::DtlsState::udpSocket, UnderlyingSocketError, and QAbstractSocket::UnknownSocketError.