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 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 471 of file qtls_openssl.cpp.

Member Function Documentation

◆ alertMessageReceived()

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

Definition at line 1289 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 1274 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 746 of file qtls_openssl.cpp.

◆ checkSettingSslContext()

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

Definition at line 493 of file qtls_openssl.cpp.

◆ checkSslErrors()

bool QTlsPrivate::TlsCryptographOpenSSL::checkSslErrors ( )

Definition at line 1187 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 752 of file qtls_openssl.cpp.

References 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 1129 of file qtls_openssl.cpp.

References transmit().

Here is the call graph for this function:

◆ disconnectFromHost()

void QTlsPrivate::TlsCryptographOpenSSL::disconnectFromHost ( )
override

Definition at line 1111 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 1296 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 741 of file qtls_openssl.cpp.

◆ handleNewSessionTicket()

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

Definition at line 1219 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 476 of file qtls_openssl.cpp.

◆ isInSslRead()

bool QTlsPrivate::TlsCryptographOpenSSL::isInSslRead ( ) const

Definition at line 1757 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 1182 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 1708 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 1735 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 1150 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 1159 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 1762 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 499 of file qtls_openssl.cpp.

◆ startClientEncryption()

void QTlsPrivate::TlsCryptographOpenSSL::startClientEncryption ( )
override

Definition at line 509 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 539 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 524 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 1505 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 504 of file qtls_openssl.cpp.

◆ transmit()

void QTlsPrivate::TlsCryptographOpenSSL::transmit ( )
override

Definition at line 858 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 1336 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 80 of file qtls_openssl_p.h.

◆ ocspResponseDer

QByteArray QTlsPrivate::TlsCryptographOpenSSL::ocspResponseDer

Definition at line 97 of file qtls_openssl_p.h.

◆ q

QSslSocket* QTlsPrivate::TlsCryptographOpenSSL::q = nullptr

Definition at line 79 of file qtls_openssl_p.h.


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