Definition at line 67 of file qsslsocket.h.
Public Types
|
| enum |
SslMode
{
UnencryptedMode,
SslClientMode,
SslServerMode } |
| enum |
PeerVerifyMode
{
VerifyNone,
QueryPeer,
VerifyPeer,
AutoVerifyPeer } |
Public Slots
|
| void |
startClientEncryption
() |
| void |
startServerEncryption
() |
| void |
ignoreSslErrors
() |
Signals
|
| void |
encrypted
() |
| void |
peerVerifyError
(const QSslError
&error) |
| void |
sslErrors
(const QList<
QSslError >
&errors) |
| void |
modeChanged
(QSslSocket::SslMode
newMode) |
| void |
encryptedBytesWritten
(qint64
totalBytes) |
Public Member Functions
|
| |
QSslSocket
(QObject
*parent=0) |
| |
~QSslSocket
() |
| void |
connectToHostEncrypted
(const QString
&hostName, quint16
port, OpenMode mode=ReadWrite) |
| void |
connectToHostEncrypted
(const QString
&hostName, quint16
port, const QString
&sslPeerName, OpenMode mode=ReadWrite) |
| bool |
setSocketDescriptor
(int socketDescriptor, SocketState
state=ConnectedState, OpenMode openMode=ReadWrite) |
| void |
setSocketOption
(QAbstractSocket::SocketOption
option, const QVariant &value) |
| QVariant |
socketOption
(QAbstractSocket::SocketOption
option) |
| SslMode |
mode
() const |
| bool |
isEncrypted
() const |
| QSsl::SslProtocol |
protocol
() const |
| void |
setProtocol
(QSsl::SslProtocol
protocol) |
| QSslSocket::PeerVerifyMode |
peerVerifyMode
() const |
| void |
setPeerVerifyMode
(QSslSocket::PeerVerifyMode
mode) |
| int |
peerVerifyDepth
() const |
| void |
setPeerVerifyDepth
(int depth) |
| qint64 |
bytesAvailable
() const |
| qint64 |
bytesToWrite
() const |
| bool |
canReadLine
() const |
| void |
close
() |
| bool |
atEnd
() const |
| bool |
flush
() |
| void |
abort
() |
| void |
setReadBufferSize
(qint64
size) |
| qint64 |
encryptedBytesAvailable
() const |
| qint64 |
encryptedBytesToWrite
() const |
| QSslConfiguration |
sslConfiguration
() const |
| void |
setSslConfiguration
(const QSslConfiguration
&config) |
| void |
setLocalCertificate
(const QSslCertificate
&certificate) |
| void |
setLocalCertificate
(const QString
&fileName, QSsl::EncodingFormat
format=QSsl::Pem) |
| QSslCertificate |
localCertificate
() const |
| QSslCertificate |
peerCertificate
() const |
| QList< QSslCertificate > |
peerCertificateChain
() const |
| QSslCipher |
sessionCipher
() const |
| void |
setPrivateKey
(const QSslKey
&key) |
| void |
setPrivateKey
(const QString
&fileName, QSsl::KeyAlgorithm
algorithm=QSsl::Rsa, QSsl::EncodingFormat
format=QSsl::Pem, const QByteArray &passPhrase=QByteArray()) |
| QSslKey |
privateKey
() const |
| QList< QSslCipher > |
ciphers
() const |
| void |
setCiphers
(const QList<
QSslCipher >
&ciphers) |
| void |
setCiphers
(const QString
&ciphers) |
| bool |
addCaCertificates
(const QString
&path, QSsl::EncodingFormat
format=QSsl::Pem, QRegExp::PatternSyntax
syntax=QRegExp::FixedString) |
| void |
addCaCertificate
(const QSslCertificate
&certificate) |
| void |
addCaCertificates
(const QList<
QSslCertificate >
&certificates) |
| void |
setCaCertificates
(const QList<
QSslCertificate >
&certificates) |
| QList< QSslCertificate > |
caCertificates
() const |
| bool |
waitForConnected
(int msecs=30000) |
| bool |
waitForEncrypted
(int msecs=30000) |
| bool |
waitForReadyRead
(int msecs=30000) |
| bool |
waitForBytesWritten
(int msecs=30000) |
| bool |
waitForDisconnected
(int msecs=30000) |
| QList< QSslError > |
sslErrors
() const |
| void |
ignoreSslErrors
(const QList<
QSslError >
&errors) |
Static Public Member
Functions
|
| static
void |
setDefaultCiphers
(const QList<
QSslCipher >
&ciphers) |
| static QList< QSslCipher > |
defaultCiphers
() |
| static QList< QSslCipher > |
supportedCiphers
() |
| static
bool |
addDefaultCaCertificates
(const QString
&path, QSsl::EncodingFormat
format=QSsl::Pem, QRegExp::PatternSyntax
syntax=QRegExp::FixedString) |
| static
void |
addDefaultCaCertificate
(const QSslCertificate
&certificate) |
| static
void |
addDefaultCaCertificates
(const QList<
QSslCertificate >
&certificates) |
| static
void |
setDefaultCaCertificates
(const QList<
QSslCertificate >
&certificates) |
| static QList< QSslCertificate > |
defaultCaCertificates
() |
| static QList< QSslCertificate > |
systemCaCertificates
() |
| static
bool |
supportsSsl
() |
Protected Slots
|
| void |
connectToHostImplementation
(const QString
&hostName, quint16
port, OpenMode openMode) |
| void |
disconnectFromHostImplementation
() |
Protected Member Functions
|
| qint64 |
readData
(char *data, qint64
maxlen) |
| qint64 |
writeData
(const char *data, qint64
len) |