Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 30 of file qsslcontext_openssl_p.h.

Constructor & Destructor Documentation

◆ ~QSslContext()

QSslContext::~QSslContext ( )

Definition at line 127 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 119 of file qsslcontext_openssl.cpp.

Member Function Documentation

◆ cacheSession()

bool QSslContext::cacheSession ( SSL * ssl)

Definition at line 256 of file qsslcontext_openssl.cpp.

References QByteArray::data(), q_i2d_SSL_SESSION(), q_SSL_get1_session(), q_SSL_get_session(), q_SSL_SESSION_free(), q_SSL_SESSION_get_ticket_lifetime_hint(), qCWarning, QByteArray::resize(), QSsl::SslOptionDisableSessionPersistence, and QSslConfiguration::testSslOption().

+ Here is the call graph for this function:

◆ createSsl()

◆ error()

QSslError::SslError QSslContext::error ( ) const

Definition at line 304 of file qsslcontext_openssl.cpp.

◆ errorString()

QString QSslContext::errorString ( ) const

Definition at line 309 of file qsslcontext_openssl.cpp.

◆ forceAutoTestSecurityLevel()

void QSslContext::forceAutoTestSecurityLevel ( )
static

Definition at line 299 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 187 of file qsslcontext_openssl.cpp.

◆ sessionASN1()

QByteArray QSslContext::sessionASN1 ( ) const

Definition at line 284 of file qsslcontext_openssl.cpp.

Referenced by createSsl().

+ Here is the caller graph for this function:

◆ sessionTicketLifeTimeHint()

int QSslContext::sessionTicketLifeTimeHint ( ) const

Definition at line 294 of file qsslcontext_openssl.cpp.

◆ setSessionASN1()

void QSslContext::setSessionASN1 ( const QByteArray & sessionASN1)

Definition at line 289 of file qsslcontext_openssl.cpp.

◆ setupOpenSslOptions()

◆ sharedFromConfiguration()

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

Definition at line 140 of file qsslcontext_openssl.cpp.

Referenced by sharedFromPrivateConfiguration().

+ Here is the caller graph for this function:

◆ sharedFromPrivateConfiguration()

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

Definition at line 148 of file qsslcontext_openssl.cpp.

References sharedFromConfiguration().

+ Here is the call graph for this function:

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