![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qtls_openssl_p.h>
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< QSslContext > | sslContext () const override |
QList< QSslError > | tlsErrors () 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< QOcspResponse > | ocsps () 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 | |
QSslSocket * | q = nullptr |
QSslSocketPrivate * | d = nullptr |
QByteArray | ocspResponseDer |
Definition at line 37 of file qtls_openssl_p.h.
Enumerator | |
---|---|
errorOffsetInExData | |
socketOffsetInExData |
Definition at line 40 of file qtls_openssl_p.h.
QTlsPrivate::TlsCryptographOpenSSL::~TlsCryptographOpenSSL | ( | ) |
Definition at line 471 of file qtls_openssl.cpp.
void QTlsPrivate::TlsCryptographOpenSSL::alertMessageReceived | ( | int | encoded | ) |
Definition at line 1289 of file qtls_openssl.cpp.
Referenced by QTlsPrivate::qt_AlertInfoCallback().
void QTlsPrivate::TlsCryptographOpenSSL::alertMessageSent | ( | int | encoded | ) |
Definition at line 1274 of file qtls_openssl.cpp.
Referenced by QTlsPrivate::qt_AlertInfoCallback().
|
override |
Definition at line 746 of file qtls_openssl.cpp.
|
override |
Definition at line 493 of file qtls_openssl.cpp.
bool QTlsPrivate::TlsCryptographOpenSSL::checkSslErrors | ( | ) |
Definition at line 1187 of file qtls_openssl.cpp.
Referenced by startHandshake().
|
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().
|
override |
Definition at line 1129 of file qtls_openssl.cpp.
References transmit().
|
override |
Definition at line 1111 of file qtls_openssl.cpp.
References QTlsBackendOpenSSL::clearErrorQueue(), q_SSL_in_init(), q_SSL_shutdown(), and transmit().
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().
|
override |
Definition at line 741 of file qtls_openssl.cpp.
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().
|
override |
Definition at line 476 of file qtls_openssl.cpp.
bool QTlsPrivate::TlsCryptographOpenSSL::isInSslRead | ( | ) | const |
Definition at line 1757 of file qtls_openssl.cpp.
Referenced by QTlsPrivate::q_X509Callback().
|
override |
Definition at line 1182 of file qtls_openssl.cpp.
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().
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().
|
override |
Definition at line 1150 of file qtls_openssl.cpp.
References q_SSL_get_current_cipher().
|
override |
Definition at line 1159 of file qtls_openssl.cpp.
References q_SSL_version().
void QTlsPrivate::TlsCryptographOpenSSL::setRenegotiated | ( | bool | renegotiated | ) |
Definition at line 1762 of file qtls_openssl.cpp.
Referenced by QTlsPrivate::q_X509Callback().
|
override |
Definition at line 499 of file qtls_openssl.cpp.
|
override |
Definition at line 509 of file qtls_openssl.cpp.
References startHandshake(), and transmit().
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().
|
override |
Definition at line 524 of file qtls_openssl.cpp.
References startHandshake(), and transmit().
void QTlsPrivate::TlsCryptographOpenSSL::storePeerCertificates | ( | ) |
Definition at line 1505 of file qtls_openssl.cpp.
References q_X509_free().
Referenced by startHandshake().
Definition at line 504 of file qtls_openssl.cpp.
|
override |
Definition at line 858 of file qtls_openssl.cpp.
References q_SSL_get_error(), and startHandshake().
Referenced by disconnected(), disconnectFromHost(), startClientEncryption(), and startServerEncryption().
void QTlsPrivate::TlsCryptographOpenSSL::trySendFatalAlert | ( | ) |
Definition at line 1336 of file qtls_openssl.cpp.
Referenced by startHandshake().
QSslSocketPrivate* QTlsPrivate::TlsCryptographOpenSSL::d = nullptr |
Definition at line 80 of file qtls_openssl_p.h.
QByteArray QTlsPrivate::TlsCryptographOpenSSL::ocspResponseDer |
Definition at line 97 of file qtls_openssl_p.h.
QSslSocket* QTlsPrivate::TlsCryptographOpenSSL::q = nullptr |
Definition at line 79 of file qtls_openssl_p.h.