Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
dtlsopenssl::DtlsState Class Reference

#include <qdtls_openssl_p.h>

+ Collaboration diagram for dtlsopenssl::DtlsState:

Public Types

using BioMethod = QSharedPointer<BIO_METHOD>
 
using TlsContext = std::shared_ptr<QSslContext>
 
using TlsConnection = QSharedPointer<SSL>
 

Public Member Functions

bool init (QDtlsBasePrivate *dtlsBase, QUdpSocket *socket, const QHostAddress &remote, quint16 port, const QByteArray &receivedMessage)
 
void reset ()
 

Public Attributes

BioMethod bioMethod
 
TlsContext tlsContext
 
TlsConnection tlsConnection
 
QByteArray dgram
 
QHostAddress remoteAddress
 
quint16 remotePort = 0
 
QList< QSslErrorEntryx509Errors
 
long peeking = false
 
QUdpSocketudpSocket = nullptr
 
bool writeSuppressed = false
 
QDtlsPrivateOpenSSLdtlsPrivate = nullptr
 
QByteArray secret
 
QCryptographicHash::Algorithm hashAlgorithm = QCryptographicHash::Sha256
 

Detailed Description

Definition at line 51 of file qdtls_openssl_p.h.

Member Typedef Documentation

◆ BioMethod

Definition at line 56 of file qdtls_openssl_p.h.

◆ TlsConnection

◆ TlsContext

Definition at line 59 of file qdtls_openssl_p.h.

Member Function Documentation

◆ init()

bool dtlsopenssl::DtlsState::init ( QDtlsBasePrivate * dtlsBase,
QUdpSocket * socket,
const QHostAddress & remote,
quint16 port,
const QByteArray & receivedMessage )

Definition at line 561 of file qdtls_openssl.cpp.

References Q_ASSERT, q_BIO_set_app_data, q_SSL_get_rbio(), and socket.

Referenced by QDtlsPrivateOpenSSL::continueHandshake(), QDtlsPrivateOpenSSL::startHandshake(), and QDtlsClientVerifierOpenSSL::verifyClient().

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

◆ reset()

void dtlsopenssl::DtlsState::reset ( )

Definition at line 587 of file qdtls_openssl.cpp.

Referenced by QDtlsPrivateOpenSSL::continueHandshake(), QDtlsPrivateOpenSSL::decryptDatagram(), QDtlsPrivateOpenSSL::startHandshake(), and QDtlsPrivateOpenSSL::writeDatagramEncrypted().

+ Here is the caller graph for this function:

Member Data Documentation

◆ bioMethod

BioMethod dtlsopenssl::DtlsState::bioMethod

Definition at line 57 of file qdtls_openssl_p.h.

◆ dgram

QByteArray dtlsopenssl::DtlsState::dgram

Definition at line 65 of file qdtls_openssl_p.h.

Referenced by QDtlsPrivateOpenSSL::decryptDatagram().

◆ dtlsPrivate

QDtlsPrivateOpenSSL* dtlsopenssl::DtlsState::dtlsPrivate = nullptr

Definition at line 82 of file qdtls_openssl_p.h.

Referenced by QDtlsPrivateOpenSSL::QDtlsPrivateOpenSSL().

◆ hashAlgorithm

◆ peeking

long dtlsopenssl::DtlsState::peeking = false

Definition at line 72 of file qdtls_openssl_p.h.

◆ remoteAddress

QHostAddress dtlsopenssl::DtlsState::remoteAddress

Definition at line 67 of file qdtls_openssl_p.h.

◆ remotePort

quint16 dtlsopenssl::DtlsState::remotePort = 0

Definition at line 68 of file qdtls_openssl_p.h.

◆ secret

QByteArray dtlsopenssl::DtlsState::secret

◆ tlsConnection

◆ tlsContext

TlsContext dtlsopenssl::DtlsState::tlsContext

Definition at line 60 of file qdtls_openssl_p.h.

◆ udpSocket

◆ writeSuppressed

bool dtlsopenssl::DtlsState::writeSuppressed = false

Definition at line 74 of file qdtls_openssl_p.h.

Referenced by QDtlsPrivateOpenSSL::startHandshake().

◆ x509Errors

QList<QSslErrorEntry> dtlsopenssl::DtlsState::x509Errors

Definition at line 70 of file qdtls_openssl_p.h.

Referenced by QDtlsPrivateOpenSSL::continueHandshake().


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