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
QSslContext Class Reference

#include <qsslcontext_openssl_p.h>

Collaboration diagram for QSslContext:

Classes

struct  NPNContext

Public Member Functions

 ~QSslContext ()
QSslError::SslError error () const
QString errorString () const
SSL * createSsl ()
bool cacheSession (SSL *)
QByteArray sessionASN1 () const
void setSessionASN1 (const QByteArray &sessionASN1)
int sessionTicketLifeTimeHint () const
NPNContext npnContext () const

Static Public Member Functions

static std::shared_ptr< QSslContextsharedFromConfiguration (QSslSocket::SslMode mode, const QSslConfiguration &configuration, bool allowRootCertOnDemandLoading)
static std::shared_ptr< QSslContextsharedFromPrivateConfiguration (QSslSocket::SslMode mode, QSslConfigurationPrivate *privConfiguration, bool allowRootCertOnDemandLoading)
static qssloptions setupOpenSslOptions (QSsl::SslProtocol protocol, QSsl::SslOptions sslOptions)
static void forceAutoTestSecurityLevel ()

Protected Member Functions

 QSslContext ()

Detailed Description

Definition at line 31 of file qsslcontext_openssl_p.h.

Constructor & Destructor Documentation

◆ ~QSslContext()

QSslContext::~QSslContext ( )

Definition at line 126 of file qsslcontext_openssl.cpp.

References q_EVP_PKEY_free(), q_SSL_CTX_free(), and q_SSL_SESSION_free().

Here is the call graph for this function:

◆ QSslContext()

QSslContext::QSslContext ( )
protected

Definition at line 118 of file qsslcontext_openssl.cpp.

Member Function Documentation

◆ cacheSession()

bool QSslContext::cacheSession ( SSL * ssl)

Definition at line 255 of file qsslcontext_openssl.cpp.

References q_i2d_SSL_SESSION(), q_SSL_get1_session(), q_SSL_get_session(), q_SSL_SESSION_free(), and q_SSL_SESSION_get_ticket_lifetime_hint().

Here is the call graph for this function:

◆ createSsl()

SSL * QSslContext::createSsl ( )

Definition at line 195 of file qsslcontext_openssl.cpp.

References q_SSL_clear(), q_SSL_new(), q_SSL_SESSION_free(), and q_SSL_set_session().

Here is the call graph for this function:

◆ error()

QSslError::SslError QSslContext::error ( ) const

Definition at line 303 of file qsslcontext_openssl.cpp.

◆ errorString()

QString QSslContext::errorString ( ) const

Definition at line 308 of file qsslcontext_openssl.cpp.

◆ forceAutoTestSecurityLevel()

void QSslContext::forceAutoTestSecurityLevel ( )
static

Definition at line 298 of file qsslcontext_openssl.cpp.

Referenced by QTlsBackendOpenSSL::forceAutotestSecurityLevel().

Here is the caller graph for this function:

◆ npnContext()

QSslContext::NPNContext QSslContext::npnContext ( ) const

Definition at line 186 of file qsslcontext_openssl.cpp.

◆ sessionASN1()

QByteArray QSslContext::sessionASN1 ( ) const

Definition at line 283 of file qsslcontext_openssl.cpp.

◆ sessionTicketLifeTimeHint()

int QSslContext::sessionTicketLifeTimeHint ( ) const

Definition at line 293 of file qsslcontext_openssl.cpp.

◆ setSessionASN1()

void QSslContext::setSessionASN1 ( const QByteArray & sessionASN1)

Definition at line 288 of file qsslcontext_openssl.cpp.

◆ setupOpenSslOptions()

qssloptions QSslContext::setupOpenSslOptions ( QSsl::SslProtocol protocol,
QSsl::SslOptions sslOptions )
static

Definition at line 65 of file qsslcontext_openssl.cpp.

◆ sharedFromConfiguration()

std::shared_ptr< QSslContext > QSslContext::sharedFromConfiguration ( QSslSocket::SslMode mode,
const QSslConfiguration & configuration,
bool allowRootCertOnDemandLoading )
static

Definition at line 139 of file qsslcontext_openssl.cpp.

◆ sharedFromPrivateConfiguration()

std::shared_ptr< QSslContext > QSslContext::sharedFromPrivateConfiguration ( QSslSocket::SslMode mode,
QSslConfigurationPrivate * privConfiguration,
bool allowRootCertOnDemandLoading )
static

Definition at line 147 of file qsslcontext_openssl.cpp.


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