Qt 4.8
Public Functions | Static Public Functions | Public Variables | List of all members
QSslConfigurationPrivate Class Reference

#include <qsslconfiguration_p.h>

Inheritance diagram for QSslConfigurationPrivate:
QSharedData

Public Functions

 QSslConfigurationPrivate ()
 
- Public Functions inherited from QSharedData
 QSharedData ()
 Constructs a QSharedData object with a reference count of 0. More...
 
 QSharedData (const QSharedData &)
 Constructs a QSharedData object with reference count 0. More...
 

Static Public Functions

static void deepCopyDefaultConfiguration (QSslConfigurationPrivate *config)
 
static QSslConfiguration defaultConfiguration ()
 
static void setDefaultConfiguration (const QSslConfiguration &configuration)
 

Public Variables

bool allowRootCertOnDemandLoading
 
QList< QSslCertificatecaCertificates
 
QList< QSslCipherciphers
 
QSslCertificate localCertificate
 
QSslCertificate peerCertificate
 
QList< QSslCertificatepeerCertificateChain
 
int peerVerifyDepth
 
QSslSocket::PeerVerifyMode peerVerifyMode
 
QSslKey privateKey
 
QSsl::SslProtocol protocol
 
QSslCipher sessionCipher
 
QSsl::SslOptions sslOptions
 
- Public Variables inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Definition at line 79 of file qsslconfiguration_p.h.

Constructors and Destructors

◆ QSslConfigurationPrivate()

QSslConfigurationPrivate::QSslConfigurationPrivate ( )
inline

Functions

◆ deepCopyDefaultConfiguration()

void QSslConfigurationPrivate::deepCopyDefaultConfiguration ( QSslConfigurationPrivate ptr)
static
Warning
This function is not part of the public interface.

Definition at line 2086 of file qsslsocket.cpp.

Referenced by QSslSocketPrivate::QSslSocketPrivate().

2087 {
2089  QMutexLocker locker(&globalData()->mutex);
2090  const QSslConfigurationPrivate *global = globalData()->config.constData();
2091 
2092  if (!global) {
2093  ptr = 0;
2094  return;
2095  }
2096 
2097  ptr->ref = 1;
2098  ptr->peerCertificate = global->peerCertificate;
2100  ptr->localCertificate = global->localCertificate;
2101  ptr->privateKey = global->privateKey;
2102  ptr->sessionCipher = global->sessionCipher;
2103  ptr->ciphers = global->ciphers;
2104  ptr->caCertificates = global->caCertificates;
2105  ptr->protocol = global->protocol;
2106  ptr->peerVerifyMode = global->peerVerifyMode;
2107  ptr->peerVerifyDepth = global->peerVerifyDepth;
2108  ptr->sslOptions = global->sslOptions;
2109 }
QAtomicInt ref
Definition: qshareddata.h:59
QList< QSslCipher > ciphers
QList< QSslCertificate > caCertificates
QSslSocket::PeerVerifyMode peerVerifyMode
QSslCertificate localCertificate
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101
static void ensureInitialized()
Declared static in QSslSocketPrivate, makes sure the SSL libraries have been initialized.
QList< QSslCertificate > peerCertificateChain

◆ defaultConfiguration()

QSslConfiguration QSslConfigurationPrivate::defaultConfiguration ( )
static
Warning
This function is not part of the public interface.

Definition at line 2063 of file qsslsocket.cpp.

Referenced by QSslConfiguration::defaultConfiguration().

2064 {
2066  QMutexLocker locker(&globalData()->mutex);
2067  return QSslConfiguration(globalData()->config.data());
2068 }
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101
static void ensureInitialized()
Declared static in QSslSocketPrivate, makes sure the SSL libraries have been initialized.
The QSslConfiguration class holds the configuration and state of an SSL connection.

◆ setDefaultConfiguration()

void QSslConfigurationPrivate::setDefaultConfiguration ( const QSslConfiguration configuration)
static
Warning
This function is not part of the public interface.

Definition at line 2073 of file qsslsocket.cpp.

Referenced by QSslConfiguration::setDefaultConfiguration().

2074 {
2076  QMutexLocker locker(&globalData()->mutex);
2077  if (globalData()->config == configuration.d)
2078  return; // nothing to do
2079 
2080  globalData()->config = const_cast<QSslConfigurationPrivate*>(configuration.d.constData());
2081 }
QSharedDataPointer< QSslConfigurationPrivate > d
const T * constData() const
Returns a const pointer to the shared data object.
Definition: qshareddata.h:84
The QMutexLocker class is a convenience class that simplifies locking and unlocking mutexes...
Definition: qmutex.h:101
static void ensureInitialized()
Declared static in QSslSocketPrivate, makes sure the SSL libraries have been initialized.

Properties

◆ allowRootCertOnDemandLoading

bool QSslConfigurationPrivate::allowRootCertOnDemandLoading

◆ caCertificates

QList<QSslCertificate> QSslConfigurationPrivate::caCertificates

◆ ciphers

QList<QSslCipher> QSslConfigurationPrivate::ciphers

◆ localCertificate

QSslCertificate QSslConfigurationPrivate::localCertificate

◆ peerCertificate

QSslCertificate QSslConfigurationPrivate::peerCertificate

◆ peerCertificateChain

QList<QSslCertificate> QSslConfigurationPrivate::peerCertificateChain

◆ peerVerifyDepth

int QSslConfigurationPrivate::peerVerifyDepth

◆ peerVerifyMode

QSslSocket::PeerVerifyMode QSslConfigurationPrivate::peerVerifyMode

◆ privateKey

QSslKey QSslConfigurationPrivate::privateKey

◆ protocol

QSsl::SslProtocol QSslConfigurationPrivate::protocol

◆ sessionCipher

QSslCipher QSslConfigurationPrivate::sessionCipher

◆ sslOptions

QSsl::SslOptions QSslConfigurationPrivate::sslOptions

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