Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QDtlsPrivateOpenSSL Class Reference

#include <qdtls_openssl_p.h>

Inheritance diagram for QDtlsPrivateOpenSSL:
Collaboration diagram for QDtlsPrivateOpenSSL:

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)
Public Member Functions inherited from QDtlsBasePrivate
 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

Private Member Functions

QSslSocket::SslMode cryptographMode () const override
void setPeer (const QHostAddress &addr, quint16 port, const QString &name) override
QHostAddress peerAddress () const override
quint16 peerPort () const override
void setPeerVerificationName (const QString &name) override
QString peerVerificationName () const override
virtual void setDtlsMtuHint (quint16 mtu) override
virtual quint16 dtlsMtuHint () const override
virtual QDtls::HandshakeState state () const override
virtual bool isConnectionEncrypted () const override
bool startHandshake (QUdpSocket *socket, const QByteArray &datagram) override
bool continueHandshake (QUdpSocket *socket, const QByteArray &datagram) override
bool resumeHandshake (QUdpSocket *socket) override
void abortHandshake (QUdpSocket *socket) override
bool handleTimeout (QUdpSocket *socket) override
void sendShutdownAlert (QUdpSocket *socket) override
QList< QSslErrorpeerVerificationErrors () const override
void ignoreVerificationErrors (const QList< QSslError > &errorsToIgnore) override
QSslCipher dtlsSessionCipher () const override
QSsl::SslProtocol dtlsSessionProtocol () const override
qint64 writeDatagramEncrypted (QUdpSocket *socket, const QByteArray &datagram) override
QByteArray decryptDatagram (QUdpSocket *socket, const QByteArray &tlsdgram) override

Additional Inherited Members

Static Public Member Functions inherited from QDtlsBasePrivate
static bool isDtlsProtocol (QSsl::SslProtocol protocol)
Public Attributes inherited from QDtlsBasePrivate
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

Detailed Description

Definition at line 120 of file qdtls_openssl_p.h.

Constructor & Destructor Documentation

◆ QDtlsPrivateOpenSSL()

QDtlsPrivateOpenSSL::QDtlsPrivateOpenSSL ( QDtls * qObject,
QSslSocket::SslMode mode )

Definition at line 820 of file qdtls_openssl.cpp.

References QDtlsPrivateOpenSSL().

Referenced by QDtlsPrivateOpenSSL().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ abortHandshake()

void QDtlsPrivateOpenSSL::abortHandshake ( QUdpSocket * socket)
overrideprivate

Definition at line 1051 of file qdtls_openssl.cpp.

References sendShutdownAlert().

Here is the call graph for this function:

◆ continueHandshake()

bool QDtlsPrivateOpenSSL::continueHandshake ( QUdpSocket * socket,
const QByteArray & datagram )
overrideprivate

Definition at line 927 of file qdtls_openssl.cpp.

◆ cryptographMode()

QSslSocket::SslMode QDtlsPrivateOpenSSL::cryptographMode ( ) const
overrideprivate

Definition at line 828 of file qdtls_openssl.cpp.

◆ decryptDatagram()

QByteArray QDtlsPrivateOpenSSL::decryptDatagram ( QUdpSocket * socket,
const QByteArray & tlsdgram )
overrideprivate

Definition at line 1158 of file qdtls_openssl.cpp.

References q_ERR_get_error().

Here is the call graph for this function:

◆ dtlsMtuHint()

quint16 QDtlsPrivateOpenSSL::dtlsMtuHint ( ) const
overrideprivatevirtual

Definition at line 865 of file qdtls_openssl.cpp.

◆ dtlsSessionCipher()

QSslCipher QDtlsPrivateOpenSSL::dtlsSessionCipher ( ) const
overrideprivate

Definition at line 1093 of file qdtls_openssl.cpp.

◆ dtlsSessionProtocol()

QSsl::SslProtocol QDtlsPrivateOpenSSL::dtlsSessionProtocol ( ) const
overrideprivate

Definition at line 1098 of file qdtls_openssl.cpp.

◆ handleTimeout()

bool QDtlsPrivateOpenSSL::handleTimeout ( QUdpSocket * socket)
overrideprivate

Definition at line 1011 of file qdtls_openssl.cpp.

◆ ignoreVerificationErrors()

void QDtlsPrivateOpenSSL::ignoreVerificationErrors ( const QList< QSslError > & errorsToIgnore)
overrideprivate

Definition at line 1088 of file qdtls_openssl.cpp.

◆ isConnectionEncrypted()

bool QDtlsPrivateOpenSSL::isConnectionEncrypted ( ) const
overrideprivatevirtual

Definition at line 875 of file qdtls_openssl.cpp.

◆ peerAddress()

QHostAddress QDtlsPrivateOpenSSL::peerAddress ( ) const
overrideprivate

Definition at line 840 of file qdtls_openssl.cpp.

◆ peerPort()

quint16 QDtlsPrivateOpenSSL::peerPort ( ) const
overrideprivate

Definition at line 845 of file qdtls_openssl.cpp.

◆ peerVerificationErrors()

QList< QSslError > QDtlsPrivateOpenSSL::peerVerificationErrors ( ) const
overrideprivate

Definition at line 1083 of file qdtls_openssl.cpp.

◆ peerVerificationName()

QString QDtlsPrivateOpenSSL::peerVerificationName ( ) const
overrideprivate

Definition at line 855 of file qdtls_openssl.cpp.

◆ pskClientCallback()

unsigned QDtlsPrivateOpenSSL::pskClientCallback ( const char * hint,
char * identity,
unsigned max_identity_len,
unsigned char * psk,
unsigned max_psk_len )

Definition at line 1217 of file qdtls_openssl.cpp.

Referenced by dtlscallbacks::q_PSK_client_callback().

Here is the caller graph for this function:

◆ pskServerCallback()

unsigned QDtlsPrivateOpenSSL::pskServerCallback ( const char * identity,
unsigned char * psk,
unsigned max_psk_len )

Definition at line 1257 of file qdtls_openssl.cpp.

Referenced by dtlscallbacks::q_PSK_server_callback().

Here is the caller graph for this function:

◆ resumeHandshake()

bool QDtlsPrivateOpenSSL::resumeHandshake ( QUdpSocket * socket)
overrideprivate

Definition at line 1032 of file qdtls_openssl.cpp.

◆ sendShutdownAlert()

void QDtlsPrivateOpenSSL::sendShutdownAlert ( QUdpSocket * socket)
overrideprivate

Definition at line 1068 of file qdtls_openssl.cpp.

Referenced by abortHandshake().

Here is the caller graph for this function:

◆ setDtlsMtuHint()

void QDtlsPrivateOpenSSL::setDtlsMtuHint ( quint16 mtu)
overrideprivatevirtual

Definition at line 860 of file qdtls_openssl.cpp.

◆ setPeer()

void QDtlsPrivateOpenSSL::setPeer ( const QHostAddress & addr,
quint16 port,
const QString & name )
overrideprivate

Definition at line 833 of file qdtls_openssl.cpp.

◆ setPeerVerificationName()

void QDtlsPrivateOpenSSL::setPeerVerificationName ( const QString & name)
overrideprivate

Definition at line 850 of file qdtls_openssl.cpp.

◆ startHandshake()

bool QDtlsPrivateOpenSSL::startHandshake ( QUdpSocket * socket,
const QByteArray & datagram )
overrideprivate

Definition at line 880 of file qdtls_openssl.cpp.

◆ state()

QDtls::HandshakeState QDtlsPrivateOpenSSL::state ( ) const
overrideprivatevirtual

Definition at line 870 of file qdtls_openssl.cpp.

◆ writeDatagramEncrypted()

qint64 QDtlsPrivateOpenSSL::writeDatagramEncrypted ( QUdpSocket * socket,
const QByteArray & datagram )
overrideprivate

Definition at line 1103 of file qdtls_openssl.cpp.

References q_ERR_get_error().

Here is the call graph for this function:

The documentation for this class was generated from the following files: