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
QDtlsBasePrivate Class Reference

#include <qdtls_base_p.h>

+ Inheritance diagram for QDtlsBasePrivate:
+ Collaboration diagram for QDtlsBasePrivate:

Public Member Functions

 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
 

Static Public Member Functions

static bool isDtlsProtocol (QSsl::SslProtocol protocol)
 

Public Attributes

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 41 of file qdtls_base_p.h.

Constructor & Destructor Documentation

◆ QDtlsBasePrivate()

QDtlsBasePrivate::QDtlsBasePrivate ( QSslSocket::SslMode m,
const QByteArray & s )
inline

Definition at line 44 of file qdtls_base_p.h.

Member Function Documentation

◆ clearDtlsError()

void QDtlsBasePrivate::clearDtlsError ( )
override

Definition at line 24 of file qdtls_base.cpp.

References QString::clear(), errorCode, errorDescription, and NoError.

Referenced by QDtlsPrivateOpenSSL::abortHandshake(), QDtlsPrivateOpenSSL::continueHandshake(), QDtlsPrivateOpenSSL::decryptDatagram(), QDtlsPrivateOpenSSL::handleTimeout(), QDtlsPrivateOpenSSL::resumeHandshake(), QDtlsPrivateOpenSSL::sendShutdownAlert(), setConfiguration(), setCookieGeneratorParameters(), QDtlsPrivateOpenSSL::startHandshake(), QDtlsClientVerifierOpenSSL::verifyClient(), and QDtlsPrivateOpenSSL::writeDatagramEncrypted().

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

◆ configuration()

QSslConfiguration QDtlsBasePrivate::configuration ( ) const
override

Definition at line 30 of file qdtls_base.cpp.

References dtlsConfiguration.

Referenced by setConfiguration().

+ Here is the caller graph for this function:

◆ cookieGeneratorParameters()

QDtlsClientVerifier::GeneratorParameters QDtlsBasePrivate::cookieGeneratorParameters ( ) const
override

Definition at line 58 of file qdtls_base.cpp.

References hashAlgorithm, and secret.

◆ error()

QDtlsError QDtlsBasePrivate::error ( ) const
override

Definition at line 14 of file qdtls_base.cpp.

References errorCode.

◆ errorString()

QString QDtlsBasePrivate::errorString ( ) const
override

Definition at line 19 of file qdtls_base.cpp.

References errorDescription.

◆ isDtlsProtocol()

bool QDtlsBasePrivate::isDtlsProtocol ( QSsl::SslProtocol protocol)
static

◆ setConfiguration()

void QDtlsBasePrivate::setConfiguration ( const QSslConfiguration & configuration)
override

Definition at line 35 of file qdtls_base.cpp.

References clearDtlsError(), configuration(), and dtlsConfiguration.

+ Here is the call graph for this function:

◆ setCookieGeneratorParameters()

bool QDtlsBasePrivate::setCookieGeneratorParameters ( const GenParams & params)
override

Definition at line 41 of file qdtls_base.cpp.

References clearDtlsError(), hashAlgorithm, InvalidInputParameters, secret, and setDtlsError().

+ Here is the call graph for this function:

◆ setDtlsError()

QT_BEGIN_NAMESPACE void QDtlsBasePrivate::setDtlsError ( QDtlsError code,
const QString & description )
override

Definition at line 8 of file qdtls_base.cpp.

References errorCode, and errorDescription.

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

+ Here is the caller graph for this function:

Member Data Documentation

◆ dtlsConfiguration

◆ errorCode

◆ errorDescription

QString QDtlsBasePrivate::errorDescription

Definition at line 63 of file qdtls_base_p.h.

Referenced by clearDtlsError(), errorString(), and setDtlsError().

◆ hashAlgorithm

◆ mode

Definition at line 65 of file qdtls_base_p.h.

Referenced by QDtlsPrivateOpenSSL::cryptographMode().

◆ mtuHint

quint16 QDtlsBasePrivate::mtuHint = 0

◆ peerVfyName

◆ remoteAddress

◆ remotePort

◆ secret

◆ sessionCipher

QSslCipher QDtlsBasePrivate::sessionCipher

Definition at line 66 of file qdtls_base_p.h.

Referenced by QDtlsPrivateOpenSSL::dtlsSessionCipher().

◆ sessionProtocol

QSsl::SslProtocol QDtlsBasePrivate::sessionProtocol = QSsl::UnknownProtocol

Definition at line 67 of file qdtls_base_p.h.

Referenced by QDtlsPrivateOpenSSL::dtlsSessionProtocol().


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