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
QTlsPrivate::TlsCryptographOpenSSL Class Reference

#include <qtls_openssl_p.h>

Inheritance diagram for QTlsPrivate::TlsCryptographOpenSSL:
Collaboration diagram for QTlsPrivate::TlsCryptographOpenSSL:

Public Types

enum  ExDataOffset { errorOffsetInExData = 1 , socketOffsetInExData = 2 }

Public Member Functions

 ~TlsCryptographOpenSSL ()
void init (QSslSocket *qObj, QSslSocketPrivate *dObj) override
void checkSettingSslContext (std::shared_ptr< QSslContext > tlsContext) override
std::shared_ptr< QSslContextsslContext () const override
QList< QSslErrortlsErrors () const override
void startClientEncryption () override
void startServerEncryption () override
bool startHandshake ()
void enableHandshakeContinuation () override
void cancelCAFetch () override
void continueHandshake () override
void transmit () override
void disconnectFromHost () override
void disconnected () override
QSslCipher sessionCipher () const override
QSsl::SslProtocol sessionProtocol () const override
QList< QOcspResponseocsps () const override
bool checkSslErrors ()
int handleNewSessionTicket (SSL *connection)
void alertMessageSent (int encoded)
void alertMessageReceived (int encoded)
int emitErrorFromCallback (X509_STORE_CTX *ctx)
void trySendFatalAlert ()
void exportKeyingMaterial ()
void storePeerCertificates ()
unsigned pskClientTlsCallback (const char *hint, char *identity, unsigned max_identity_len, unsigned char *psk, unsigned max_psk_len)
unsigned pskServerTlsCallback (const char *identity, unsigned char *psk, unsigned max_psk_len)
bool isInSslRead () const
void setRenegotiated (bool renegotiated)

Public Attributes

QSslSocketq = nullptr
QSslSocketPrivated = nullptr
QByteArray ocspResponseDer

Detailed Description

Definition at line 37 of file qtls_openssl_p.h.

Member Enumeration Documentation

◆ ExDataOffset

Enumerator
errorOffsetInExData 
socketOffsetInExData 

Definition at line 40 of file qtls_openssl_p.h.

Constructor & Destructor Documentation

◆ ~TlsCryptographOpenSSL()

QTlsPrivate::TlsCryptographOpenSSL::~TlsCryptographOpenSSL ( )

Definition at line 472 of file qtls_openssl.cpp.

Member Function Documentation

◆ alertMessageReceived()

void QTlsPrivate::TlsCryptographOpenSSL::alertMessageReceived ( int encoded)

Definition at line 1337 of file qtls_openssl.cpp.

Referenced by QTlsPrivate::qt_AlertInfoCallback().

Here is the caller graph for this function:

◆ alertMessageSent()

void QTlsPrivate::TlsCryptographOpenSSL::alertMessageSent ( int encoded)

Definition at line 1322 of file qtls_openssl.cpp.

Referenced by QTlsPrivate::qt_AlertInfoCallback().

Here is the caller graph for this function:

◆ cancelCAFetch()

void QTlsPrivate::TlsCryptographOpenSSL::cancelCAFetch ( )
override

Definition at line 747 of file qtls_openssl.cpp.

◆ checkSettingSslContext()

void QTlsPrivate::TlsCryptographOpenSSL::checkSettingSslContext ( std::shared_ptr< QSslContext > tlsContext)
override

Definition at line 494 of file qtls_openssl.cpp.

◆ checkSslErrors()

bool QTlsPrivate::TlsCryptographOpenSSL::checkSslErrors ( )

Definition at line 1235 of file qtls_openssl.cpp.

Referenced by startHandshake().

Here is the caller graph for this function:

◆ continueHandshake()

void QTlsPrivate::TlsCryptographOpenSSL::continueHandshake ( )
override

Definition at line 798 of file qtls_openssl.cpp.

References exportKeyingMaterial(), q_SSL_get0_alpn_selected(), and q_SSL_get0_next_proto_negotiated().

Referenced by startHandshake().

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

◆ disconnected()

void QTlsPrivate::TlsCryptographOpenSSL::disconnected ( )
override

Definition at line 1177 of file qtls_openssl.cpp.

References transmit().

Here is the call graph for this function:

◆ disconnectFromHost()

void QTlsPrivate::TlsCryptographOpenSSL::disconnectFromHost ( )
override

Definition at line 1159 of file qtls_openssl.cpp.

References QTlsBackendOpenSSL::clearErrorQueue(), q_SSL_in_init(), q_SSL_shutdown(), and transmit().

Here is the call graph for this function:

◆ emitErrorFromCallback()

int QTlsPrivate::TlsCryptographOpenSSL::emitErrorFromCallback ( X509_STORE_CTX * ctx)

Definition at line 1344 of file qtls_openssl.cpp.

References QTlsPrivate::X509CertificateOpenSSL::errorEntryFromStoreContext(), errorOffsetInExData, q_SSL_get_ex_data(), q_X509_STORE_CTX_get_current_cert(), and QTlsBackendOpenSSL::s_indexForSSLExtraData.

Referenced by QTlsPrivate::q_X509CallbackDirect().

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

◆ enableHandshakeContinuation()

void QTlsPrivate::TlsCryptographOpenSSL::enableHandshakeContinuation ( )
override

Definition at line 742 of file qtls_openssl.cpp.

◆ exportKeyingMaterial()

void QTlsPrivate::TlsCryptographOpenSSL::exportKeyingMaterial ( )

Definition at line 753 of file qtls_openssl.cpp.

Referenced by continueHandshake().

Here is the caller graph for this function:

◆ handleNewSessionTicket()

int QTlsPrivate::TlsCryptographOpenSSL::handleNewSessionTicket ( SSL * connection)

Definition at line 1267 of file qtls_openssl.cpp.

References q_i2d_SSL_SESSION(), q_SSL_get_session(), and q_SSL_version().

Here is the call graph for this function:

◆ init()

void QTlsPrivate::TlsCryptographOpenSSL::init ( QSslSocket * qObj,
QSslSocketPrivate * dObj )
override

Definition at line 477 of file qtls_openssl.cpp.

◆ isInSslRead()

bool QTlsPrivate::TlsCryptographOpenSSL::isInSslRead ( ) const

Definition at line 1805 of file qtls_openssl.cpp.

Referenced by QTlsPrivate::q_X509Callback().

Here is the caller graph for this function:

◆ ocsps()

QList< QOcspResponse > QTlsPrivate::TlsCryptographOpenSSL::ocsps ( ) const
override

Definition at line 1230 of file qtls_openssl.cpp.

◆ pskClientTlsCallback()

unsigned QTlsPrivate::TlsCryptographOpenSSL::pskClientTlsCallback ( const char * hint,
char * identity,
unsigned max_identity_len,
unsigned char * psk,
unsigned max_psk_len )

Definition at line 1756 of file qtls_openssl.cpp.

Referenced by QTlsPrivate::q_ssl_psk_client_callback().

Here is the caller graph for this function:

◆ pskServerTlsCallback()

unsigned QTlsPrivate::TlsCryptographOpenSSL::pskServerTlsCallback ( const char * identity,
unsigned char * psk,
unsigned max_psk_len )

Definition at line 1783 of file qtls_openssl.cpp.

Referenced by QTlsPrivate::q_ssl_psk_server_callback().

Here is the caller graph for this function:

◆ sessionCipher()

QSslCipher QTlsPrivate::TlsCryptographOpenSSL::sessionCipher ( ) const
override

Definition at line 1198 of file qtls_openssl.cpp.

References q_SSL_get_current_cipher().

Here is the call graph for this function:

◆ sessionProtocol()

QSsl::SslProtocol QTlsPrivate::TlsCryptographOpenSSL::sessionProtocol ( ) const
override

Definition at line 1207 of file qtls_openssl.cpp.

References q_SSL_version().

Here is the call graph for this function:

◆ setRenegotiated()

void QTlsPrivate::TlsCryptographOpenSSL::setRenegotiated ( bool renegotiated)

Definition at line 1810 of file qtls_openssl.cpp.

Referenced by QTlsPrivate::q_X509Callback().

Here is the caller graph for this function:

◆ sslContext()

std::shared_ptr< QSslContext > QTlsPrivate::TlsCryptographOpenSSL::sslContext ( ) const
override

Definition at line 500 of file qtls_openssl.cpp.

◆ startClientEncryption()

void QTlsPrivate::TlsCryptographOpenSSL::startClientEncryption ( )
override

Definition at line 510 of file qtls_openssl.cpp.

References startHandshake(), and transmit().

Here is the call graph for this function:

◆ startHandshake()

bool QTlsPrivate::TlsCryptographOpenSSL::startHandshake ( )

Definition at line 540 of file qtls_openssl.cpp.

References checkSslErrors(), continueHandshake(), errorOffsetInExData, q_SSL_get_error(), q_SSL_set_ex_data(), q_SSL_set_info_callback(), QTlsPrivate::qt_AlertInfoCallback(), QTlsBackendOpenSSL::s_indexForSSLExtraData, socketOffsetInExData, storePeerCertificates(), and trySendFatalAlert().

Referenced by startClientEncryption(), startServerEncryption(), and transmit().

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

◆ startServerEncryption()

void QTlsPrivate::TlsCryptographOpenSSL::startServerEncryption ( )
override

Definition at line 525 of file qtls_openssl.cpp.

References startHandshake(), and transmit().

Here is the call graph for this function:

◆ storePeerCertificates()

void QTlsPrivate::TlsCryptographOpenSSL::storePeerCertificates ( )

Definition at line 1553 of file qtls_openssl.cpp.

References q_X509_free().

Referenced by startHandshake().

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

◆ tlsErrors()

QList< QSslError > QTlsPrivate::TlsCryptographOpenSSL::tlsErrors ( ) const
override

Definition at line 505 of file qtls_openssl.cpp.

◆ transmit()

void QTlsPrivate::TlsCryptographOpenSSL::transmit ( )
override

Definition at line 906 of file qtls_openssl.cpp.

References q_SSL_get_error(), and startHandshake().

Referenced by disconnected(), disconnectFromHost(), startClientEncryption(), and startServerEncryption().

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

◆ trySendFatalAlert()

void QTlsPrivate::TlsCryptographOpenSSL::trySendFatalAlert ( )

Definition at line 1384 of file qtls_openssl.cpp.

Referenced by startHandshake().

Here is the caller graph for this function:

Member Data Documentation

◆ d

QSslSocketPrivate* QTlsPrivate::TlsCryptographOpenSSL::d = nullptr

Definition at line 82 of file qtls_openssl_p.h.

◆ ocspResponseDer

QByteArray QTlsPrivate::TlsCryptographOpenSSL::ocspResponseDer

Definition at line 99 of file qtls_openssl_p.h.

◆ q

QSslSocket* QTlsPrivate::TlsCryptographOpenSSL::q = nullptr

Definition at line 81 of file qtls_openssl_p.h.


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