KDECore
ktcpsocket.cpp
Go to the documentation of this file.
66 KTcpSocket::SslVersions validVersions (KTcpSocket::SslV2 | KTcpSocket::SslV3 | KTcpSocket::TlsV1);
184 return i18nc("SSL error","The root certificate authority's certificate is not trusted for this purpose");
186 return i18nc("SSL error","The certificate authority's certificate is marked to reject this certificate's purpose");
403 connect(&d->sock, SIGNAL(encryptedBytesWritten(qint64)), this, SIGNAL(encryptedBytesWritten(qint64)));
523 void KTcpSocket::connectToHost(const QHostAddress &hostAddress, quint16 port, ProxyPolicy policy)
694 void KTcpSocket::connectToHostEncrypted(const QString &hostName, quint16 port, OpenMode openMode)
typedef OpenMode
void connectToHostEncrypted(const QString &hostName, quint16 port, OpenMode openMode=ReadWrite)
Definition: ktcpsocket.cpp:694
Definition: ktcpsocket.h:173
QSsl::KeyType type() const
Definition: ktcpsocket.h:111
QString authenticationMethod() const
Definition: ktcpsocket.cpp:1035
Definition: ktcpsocket.h:44
void setCaCertificates(const QList< QSslCertificate > &certificates)
Definition: ktcpsocket.cpp:727
QHostAddress peerAddress() const
Definition: ktcpsocket.h:176
virtual bool atEnd() const
int supportedBits() const
Definition: ktcpsocket.h:105
QList< QSslCipher > supportedCiphers()
Definition: ktcpsocket.h:162
QSslCertificate certificate() const
Definition: ktcpsocket.h:164
Definition: ktcpsocket.h:107
Definition: ktcpsocket.h:49
Definition: ktcpsocket.h:152
QString host() const
void aboutToClose()
static KSslCertificateManager * self()
Definition: ksslcertificatemanager.cpp:466
Definition: ktcpsocket.h:46
QString toString() const
void stateChanged(KTcpSocket::State)
void connectToHost(const QString &hostName, quint16 port, ProxyPolicy policy=AutoProxy)
Definition: ktcpsocket.cpp:507
Definition: ktcpsocket.h:70
int port() const
virtual qint64 readData(char *data, qint64 maxSize)
Definition: ktcpsocket.cpp:488
virtual void close()
QString authenticationMethod() const
Definition: ktcpsocket.h:155
Definition: ktcpsocket.h:50
static QList< KSslCipher > supportedCiphers()
Definition: ktcpsocket.cpp:1085
Definition: ktcpsocket.h:165
QString i18nc(const char *ctxt, const char *text)
Returns a localized version of a string and a context.
Definition: klocalizedstring.h:797
Definition: ktcpsocket.h:174
Definition: ktcpsocket.h:41
Definition: ktcpsocket.h:170
Definition: ktcpsocket.h:114
Definition: ktcpsocket.h:144
Definition: ktcpsocket.h:160
Definition: ktcpsocket.h:166
bool isEncrypted() const
void setLocalCertificate(const QSslCertificate &certificate)
Definition: ktcpsocket.cpp:745
QVariant socketOption(QAbstractSocket::SocketOption options) const
Returns the state of the socket option.
Definition: ktcpsocket.cpp:807
void append(const T &value)
QString keyExchangeMethod() const
QSsl::KeyAlgorithm algorithm() const
static KTcpSocket::SslVersion kSslVersionFromQ(QSsl::SslProtocol protocol)
Definition: ktcpsocket.cpp:36
virtual bool waitForBytesWritten(int msecs)
Definition: ktcpsocket.cpp:476
bool waitForDisconnected(int msecs=30000)
Definition: ktcpsocket.cpp:646
Definition: ktcpsocket.h:102
Definition: ktcpsocket.h:149
Definition: ktcpsocket.h:108
KSslError(KSslError::Error error=NoError, const QSslCertificate &cert=QSslCertificate())
Definition: ktcpsocket.cpp:206
void setSslConfiguration(const QSslConfiguration &configuration)
Sets the socket's SSL configuration.
Definition: ktcpsocket.cpp:822
void setCiphers(const QList< KSslCipher > &ciphers)
Definition: ktcpsocket.cpp:734
void setSocketOption(QAbstractSocket::SocketOption options, const QVariant &value)
Sets the socket option to value.
Definition: ktcpsocket.cpp:812
Definition: ktcpsocket.h:175
QSslCipher sessionCipher() const
KSslErrorUiData & operator=(const KSslErrorUiData &)
Definition: ktcpsocket.cpp:1146
QList< QSslCertificate > peerCertificateChain() const
void addCaCertificates(const QList< QSslCertificate > &certificates)
Definition: ktcpsocket.cpp:674
This class can hold all the necessary data from a KTcpSocket to ask the user to continue connecting i...
Definition: ktcpsocket.h:397
Definition: kaboutdata.h:33
Definition: ktcpsocket.h:112
static QSsl::SslProtocol qSslProtocolFromK(KTcpSocket::SslVersion sslVersion)
Definition: ktcpsocket.cpp:59
void bytesWritten(qint64 bytes)
virtual qint64 bytesAvailable() const
Definition: ktcpsocket.h:113
QByteArray toDer(const QByteArray &passPhrase) const
QString errorString() const
Definition: ktcpsocket.h:45
Definition: ktcpsocket.h:150
void setVerificationPeerName(const QString &hostName)
Definition: ktcpsocket.cpp:757
Definition: ktcpsocket.h:151
Definition: ktcpsocket.h:214
virtual qint64 writeData(const char *data, qint64 maxSize)
Definition: ktcpsocket.cpp:494
void setAdvertisedSslVersion(SslVersion version)
Definition: ktcpsocket.cpp:851
QList< QSslCertificate > peerCertificateChain() const
Definition: ktcpsocket.cpp:709
Definition: ktcpsocket.h:216
Definition: ktcpsocket_p.h:23
QString protocolString() const
Definition: ktcpsocket.h:215
Definition: ktcpsocket.h:103
void disconnected()
Use the proxy that KProtocolManager suggests for the connection parameters given. ...
Definition: ktcpsocket.h:220
QList< QSslCertificate > caCertificates() const
Definition: ktcpsocket.cpp:681
void encryptedBytesWritten(qint64 written)
unsigned int version()
Returns the encoded number of KDE's version, see the KDE_VERSION macro.
Definition: kdeversion.cpp:24
QString peerName() const
QString name() const
Definition: ktcpsocket.h:159
void encrypted()
SslError error() const
void addCaCertificate(const QSslCertificate &certificate)
Definition: ktcpsocket.cpp:657
QString negotiatedSslVersionName() const
Definition: ktcpsocket.cpp:872
QString fromLatin1(const char *str, int size)
void setErrorString(const QString &str)
Definition: ktcpsocket.h:115
Definition: ktcpsocket.h:98
QList< QSslCertificate > certificateChain
Definition: ktcpsocket_p.h:29
Definition: ktcpsocket.h:161
bool isNull() const
Definition: ktcpsocket.h:109
virtual bool waitForReadyRead(int msecs=30000)
Definition: ktcpsocket.cpp:482
void readyRead()
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setOpenMode(QFlags< QIODevice::OpenModeFlag > openMode)
void hostFound()
virtual bool canReadLine() const
void proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *authenticator)
void connected()
QString encryptionMethod() const
QSslConfiguration sslConfiguration() const
Returns the socket's SSL configuration.
Definition: ktcpsocket.cpp:817
int usedBits() const
QList< QSslError > sslErrors() const
SslVersion advertisedSslVersion() const
Definition: ktcpsocket.cpp:857
SslVersion negotiatedSslVersion() const
Definition: ktcpsocket.cpp:863
Definition: ktcpsocket.h:177
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.