![]() |
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 | 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 | |
| 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 472 of file qtls_openssl.cpp.
| void QTlsPrivate::TlsCryptographOpenSSL::alertMessageReceived | ( | int | encoded | ) |
Definition at line 1336 of file qtls_openssl.cpp.
Referenced by QTlsPrivate::qt_AlertInfoCallback().
| void QTlsPrivate::TlsCryptographOpenSSL::alertMessageSent | ( | int | encoded | ) |
Definition at line 1321 of file qtls_openssl.cpp.
Referenced by QTlsPrivate::qt_AlertInfoCallback().
|
override |
Definition at line 747 of file qtls_openssl.cpp.
|
override |
Definition at line 494 of file qtls_openssl.cpp.
| bool QTlsPrivate::TlsCryptographOpenSSL::checkSslErrors | ( | ) |
Definition at line 1234 of file qtls_openssl.cpp.
Referenced by startHandshake().
|
override |
Definition at line 797 of file qtls_openssl.cpp.
References exportKeyingMaterial(), q_SSL_get0_alpn_selected(), and q_SSL_get0_next_proto_negotiated().
Referenced by startHandshake().
|
override |
Definition at line 1176 of file qtls_openssl.cpp.
References transmit().
|
override |
Definition at line 1158 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 1343 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 742 of file qtls_openssl.cpp.
| void QTlsPrivate::TlsCryptographOpenSSL::exportKeyingMaterial | ( | ) |
Definition at line 753 of file qtls_openssl.cpp.
Referenced by continueHandshake().
| int QTlsPrivate::TlsCryptographOpenSSL::handleNewSessionTicket | ( | SSL * | connection | ) |
Definition at line 1266 of file qtls_openssl.cpp.
References q_i2d_SSL_SESSION(), q_SSL_get_session(), and q_SSL_version().
|
override |
Definition at line 477 of file qtls_openssl.cpp.
| bool QTlsPrivate::TlsCryptographOpenSSL::isInSslRead | ( | ) | const |
Definition at line 1804 of file qtls_openssl.cpp.
Referenced by QTlsPrivate::q_X509Callback().
|
override |
Definition at line 1229 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 1755 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 1782 of file qtls_openssl.cpp.
Referenced by QTlsPrivate::q_ssl_psk_server_callback().
|
override |
Definition at line 1197 of file qtls_openssl.cpp.
References q_SSL_get_current_cipher().
|
override |
Definition at line 1206 of file qtls_openssl.cpp.
References q_SSL_version().
| void QTlsPrivate::TlsCryptographOpenSSL::setRenegotiated | ( | bool | renegotiated | ) |
Definition at line 1809 of file qtls_openssl.cpp.
Referenced by QTlsPrivate::q_X509Callback().
|
override |
Definition at line 500 of file qtls_openssl.cpp.
|
override |
Definition at line 510 of file qtls_openssl.cpp.
References startHandshake(), and transmit().
| 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().
|
override |
Definition at line 525 of file qtls_openssl.cpp.
References startHandshake(), and transmit().
| void QTlsPrivate::TlsCryptographOpenSSL::storePeerCertificates | ( | ) |
Definition at line 1552 of file qtls_openssl.cpp.
References q_X509_free().
Referenced by startHandshake().
Definition at line 505 of file qtls_openssl.cpp.
|
override |
Definition at line 905 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 1383 of file qtls_openssl.cpp.
Referenced by startHandshake().
| QSslSocketPrivate* QTlsPrivate::TlsCryptographOpenSSL::d = nullptr |
Definition at line 82 of file qtls_openssl_p.h.
| QByteArray QTlsPrivate::TlsCryptographOpenSSL::ocspResponseDer |
Definition at line 99 of file qtls_openssl_p.h.
| QSslSocket* QTlsPrivate::TlsCryptographOpenSSL::q = nullptr |
Definition at line 81 of file qtls_openssl_p.h.