43 #ifndef QSSLSOCKET_P_H 44 #define QSSLSOCKET_P_H 59 #include <private/qtcpsocket_p.h> 63 #include <QtCore/qstringlist.h> 65 #include <private/qringbuffer_p.h> 68 #include <Security/SecCertificate.h> 69 #include <CoreFoundation/CFArray.h> 70 #elif defined(Q_OS_WIN) 73 #ifndef HCRYPTPROV_LEGACY 74 #define HCRYPTPROV_LEGACY HCRYPTPROV 80 #if defined(Q_OS_MAC) && !defined(Q_OS_IOS) 87 #if defined(Q_OS_WINCE) 142 #if defined(Q_OS_MAC) && !defined(Q_OS_IOS) 146 #elif defined(Q_OS_WIN) static PtrSecTrustCopyAnchorCertificates ptrSecTrustCopyAnchorCertificates
static void deinitialize()
static bool addDefaultCaCertificates(const QString &path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax)
virtual void startServerEncryption()=0
#define QT_END_NAMESPACE
This macro expands to.
QIODevice::OpenMode openMode
static void resumeSocketNotifiers(QSslSocket *)
static void setDefaultSupportedCiphers(const QList< QSslCipher > &ciphers)
static QList< QByteArray > unixRootCertDirectories()
void createPlainSocket(QIODevice::OpenMode openMode)
HCERTSTORE(WINAPI * PtrCertOpenSystemStoreW)(LPCSTR, DWORD, HCRYPTPROV_LEGACY, DWORD, const void *)
The QByteArray class provides an array of bytes.
The QSslSocket class provides an SSL encrypted socket for both clients and servers.
virtual void startClientEncryption()=0
static void addDefaultCaCertificate(const QSslCertificate &cert)
void _q_stateChangedSlot(QAbstractSocket::SocketState)
The QString class provides a Unicode character string.
virtual void disconnectFromHost()=0
static QList< QSslCertificate > defaultCaCertificates()
BOOL(WINAPI * PtrCertCloseStore)(HCERTSTORE, DWORD)
static bool s_loadRootCertsOnDemand
void _q_bytesWrittenSlot(qint64)
The QSslCipher class represents an SSL cryptographic cipher.
OSStatus(* PtrSecTrustCopyAnchorCertificates)(CFArrayRef *)
void _q_disconnectedSlot()
SocketState
This enum describes the different states in which a socket can be.
static void setDefaultCiphers(const QList< QSslCipher > &ciphers)
QList< QSslError > ignoreErrorsList
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual void transmit()=0
SslMode
Describes the connection modes available for QSslSocket.
static bool s_loadedCiphersAndCerts
SocketError
This enum describes the socket errors that can occur.
static void setDefaultCaCertificates(const QList< QSslCertificate > &certs)
static const char * data(const QByteArray &arr)
The QTcpSocket class provides a TCP socket.
void _q_flushReadBuffer()
static bool supportsSsl()
Does the minimum amount of initialization to determine whether SSL is supported or not...
static void ensureCiphersAndCertsLoaded()
static bool s_libraryLoaded
virtual QSslCipher sessionCipher() const =0
QSslConfigurationPrivate configuration
OSStatus(* PtrSecTrustSettingsCopyCertificates)(int, CFArrayRef *)
static PtrSecCertificateGetData ptrSecCertificateGetData
#define Q_DECLARE_PUBLIC(Class)
PatternSyntax
The syntax used to interpret the meaning of the pattern.
EncodingFormat
Describes supported encoding formats for certificates and keys.
static PtrSecTrustSettingsCopyCertificates ptrSecTrustSettingsCopyCertificates
virtual void disconnected()=0
static void resetDefaultCiphers()
Declared static in QSslSocketPrivate, backend-dependent loading of application-wide global ciphers...
static QList< QSslCertificate > systemCaCertificates()
void _q_flushWriteBuffer()
OSStatus(* PtrSecCertificateGetData)(SecCertificateRef, CSSM_DATA_PTR)
#define Q_AUTOTEST_EXPORT
void _q_errorSlot(QAbstractSocket::SocketError)
bool * readyReadEmittedPointer
virtual ~QSslSocketPrivate()
QString verificationPeerName
static void ensureInitialized()
Declared static in QSslSocketPrivate, makes sure the SSL libraries have been initialized.
QList< QSslError > sslErrors
The QSslCertificate class provides a convenient API for an X509 certificate.
static QList< QSslCipher > supportedCiphers()
static QList< QSslCipher > defaultCiphers()
bool allowRootCertOnDemandLoading
PCCERT_CONTEXT(WINAPI * PtrCertFindCertificateInStore)(HCERTSTORE, DWORD, DWORD, DWORD, const void *, PCCERT_CONTEXT)
const struct __CFArray * CFArrayRef
static void pauseSocketNotifiers(QSslSocket *)
static bool ensureLibraryLoaded()
virtual qint64 peek(char *data, qint64 maxSize)
static Q_AUTOTEST_EXPORT bool rootCertOnDemandLoadingSupported()