Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
dtlscallbacks Namespace Reference

Functions

int q_generate_cookie_callback (SSL *ssl, unsigned char *dst, unsigned *cookieLength)
 
int q_verify_cookie_callback (SSL *ssl, const unsigned char *cookie, unsigned cookieLength)
 
int q_X509DtlsCallback (int ok, X509_STORE_CTX *ctx)
 
unsigned q_PSK_client_callback (SSL *ssl, const char *hint, char *identity, unsigned max_identity_len, unsigned char *psk, unsigned max_psk_len)
 
unsigned q_PSK_server_callback (SSL *ssl, const char *identity, unsigned char *psk, unsigned max_psk_len)
 

Function Documentation

◆ q_generate_cookie_callback()

int dtlscallbacks::q_generate_cookie_callback ( SSL *  ssl,
unsigned char *  dst,
unsigned *  cookieLength 
)

Definition at line 154 of file qdtls_openssl.cpp.

References QMessageAuthenticationCode::addData(), QByteArrayView::constData(), dtlsutil::cookie_for_peer(), dtls, Q_ASSERT, q_SSL_get_ex_data(), qCWarning, qMin(), QMessageAuthenticationCode::resultView(), QTlsBackendOpenSSL::s_indexForSSLExtraData, QByteArray::size(), and QByteArrayView::size().

Referenced by q_verify_cookie_callback().

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

◆ q_PSK_client_callback()

unsigned dtlscallbacks::q_PSK_client_callback ( SSL *  ssl,
const char *  hint,
char *  identity,
unsigned  max_identity_len,
unsigned char *  psk,
unsigned  max_psk_len 
)

Definition at line 233 of file qdtls_openssl.cpp.

References dtls, hint(), Q_ASSERT, q_SSL_get_ex_data(), and QTlsBackendOpenSSL::s_indexForSSLExtraData.

+ Here is the call graph for this function:

◆ q_PSK_server_callback()

unsigned dtlscallbacks::q_PSK_server_callback ( SSL *  ssl,
const char *  identity,
unsigned char *  psk,
unsigned  max_psk_len 
)

Definition at line 246 of file qdtls_openssl.cpp.

References dtls, Q_ASSERT, q_SSL_get_ex_data(), and QTlsBackendOpenSSL::s_indexForSSLExtraData.

+ Here is the call graph for this function:

◆ q_verify_cookie_callback()

int dtlscallbacks::q_verify_cookie_callback ( SSL *  ssl,
const unsigned char *  cookie,
unsigned  cookieLength 
)

Definition at line 190 of file qdtls_openssl.cpp.

References q_CRYPTO_memcmp(), q_generate_cookie_callback(), and qCWarning.

+ Here is the call graph for this function:

◆ q_X509DtlsCallback()

int dtlscallbacks::q_X509DtlsCallback ( int  ok,
X509_STORE_CTX *  ctx 
)

Definition at line 207 of file qdtls_openssl.cpp.

References dtls, QTlsPrivate::X509CertificateOpenSSL::errorEntryFromStoreContext(), ok, q_SSL_get_ex_data(), q_SSL_get_ex_data_X509_STORE_CTX_idx(), q_X509_STORE_CTX_get_ex_data(), qCWarning, and QTlsBackendOpenSSL::s_indexForSSLExtraData.

+ Here is the call graph for this function: