KIO
tcpslavebase.cpp
Go to the documentation of this file.
81 - You are about to enter secure mode. Security information/Display SSL information/Connect (inline)
121 // encode the two-dimensional numeric error list using '\n' and '\t' as outer and inner separators
371 const int lastSslVerson = config()->readEntry("LastUsedSslVersion", static_cast<int>(KTcpSocket::SecureProtocols));
440 if (trySslVersion != KTcpSocket::SecureProtocols && lastSslVerson == KTcpSocket::SecureProtocols) {
505TCPSlaveBase::SslResult TCPSlaveBase::TcpSlaveBasePrivate::startTLSInternal (KTcpSocket::SslVersion version,
711 QDBusMessage retVal = uis.call("showSSLCertDialog", d->host, certs, metaData("window-id").toLongLong());
921 i18n("The certificate is valid but does not appear to have been assigned to this server. Do you wish to continue loading?"),
947 i18n("You have indicated that you wish to accept this certificate, but it is not issued to the server who is presenting it. Do you wish to continue loading?"),
959 messageBox(Information, i18n("SSL certificate is being rejected as requested. You can disable this in the KDE System Settings."),
QString readEntry(const char *key, const char *aDefault=0) const
This class is intended to make it easier to prompt for, cache and retrieve authorization information.
Definition authinfo.h:58
QString caption
The text to displayed in the title bar of the password prompting dialog.
Definition authinfo.h:142
QString prompt
Information to be displayed when prompting the user for authentication information.
Definition authinfo.h:131
There are two classes that specifies the protocol between application (job) and kioslave.
Definition slavebase.h:51
QString metaData(const QString &key) const
Queries for config/meta-data send by the application to the slave.
Definition slavebase.cpp:346
void sendAndKeepMetaData()
Internal function to transmit meta data to the application.
Definition slavebase.cpp:380
int messageBox(MessageBoxType type, const QString &text, const QString &caption=QString(), const QString &buttonYes=i18n("&Yes"), const QString &buttonNo=i18n("&No"))
Call this to show a message box from the slave.
Definition slavebase.cpp:851
virtual void virtual_hook(int id, void *data)
Definition slavebase.cpp:1288
void data(const QByteArray &data)
Sends data in the slave to the job (i.e.
Definition slavebase.cpp:398
void setMetaData(const QString &key, const QString &value)
Sets meta-data to be send to the application before the first data() or finished() signal.
Definition slavebase.cpp:341
KConfigGroup * config()
Returns a configuration object to query config/meta-data information from.
Definition slavebase.cpp:369
There are two classes that specifies the protocol between application (job) and kioslave.
Definition tcpslavebase.h:47
void setBlocking(bool b)
Sets the mode of the connection to blocking or non-blocking.
Definition tcpslavebase.cpp:988
bool connectToHost(const QString &protocol, const QString &host, quint16 port)
Performs the initial TCP connection stuff and/or SSL handshaking as necessary.
Definition tcpslavebase.cpp:302
TCPSlaveBase(const QByteArray &protocol, const QByteArray &poolSocket, const QByteArray &appSocket, bool autoSsl=false)
Constructor.
Definition tcpslavebase.cpp:194
void disconnectFromHost()
Close the connection and forget non-permanent data like the peer host.
Definition tcpslavebase.cpp:455
virtual void virtual_hook(int id, void *data)
Definition tcpslavebase.cpp:997
QIODevice * socket() const
Return the socket object, if the class ever needs to do anything to it.
Definition tcpslavebase.cpp:188
bool waitForResponse(int t)
Wait for incoming data on the socket for the period specified by t.
Definition tcpslavebase.cpp:980
ssize_t readLine(char *data, ssize_t len)
Same as read() except it reads data one line at a time.
Definition tcpslavebase.cpp:278
bool isConnected() const
Determines whether or not we are still connected to the remote machine.
Definition tcpslavebase.cpp:973
Cancel
static KSSLPKCS12 * getCertificateByName(const QString &name, const QString &password)
Definition ksslcertificatehome.cpp:105
static QStringList getCertificateList()
Definition ksslcertificatehome.cpp:28
static void setDefaultCertificate(const QString &name, bool send=true, bool prompt=false)
Definition ksslcertificatehome.cpp:208
static bool hasCertificateByName(const QString &name)
Definition ksslcertificatehome.cpp:127
static QString getDefaultCertificateName(const QString &host, KSSLAuthAction *aa=NULL)
Definition ksslcertificatehome.cpp:140
bool warnOnEnter() const
Does the user want to be warned on entering SSL mode.
Definition ksslsettings.cpp:210
bool warnOnLeave() const
Does the user want to be warned on leaving SSL mode.
Definition ksslsettings.cpp:214
bool certTypeSSLClient() const
Determine if this certificate can be used by an SSL client.
Definition ksslx509v3.cpp:83
static QList< KSslError > nonIgnorableErrors(const QList< KSslError > &)
static KSslCertificateManager * self()
KSslCertificateRule rule(const QSslCertificate &cert, const QString &hostName) const
void setRule(const KSslCertificateRule &rule)
void setExpiryDateTime(const QDateTime &dateTime)
void setIgnoredErrors(const QList< KSslError > &errors)
QList< KSslError > filterErrors(const QList< KSslError > &errors) const
int usedBits() const
QString encryptionMethod() const
QString name() const
bool isNull() const
QString keyExchangeMethod() const
QString authenticationMethod() const
QString digestMethod() const
int supportedBits() const
Error error() const
QString errorString() const
bool waitForEncrypted(int msecs=30000)
virtual bool waitForReadyRead(int msecs=30000)
virtual void close()
SslClientMode
State state() const
QSslConfiguration sslConfiguration() const
void connectToHost(const KUrl &url, ProxyPolicy policy=AutoProxy)
KSslCipher sessionCipher() const
QList< QSslCertificate > peerCertificateChain() const
SslVersion
SslV3
TlsV1
SecureProtocols
virtual bool atEnd() const
void error(KTcpSocket::Error)
bool flush()
void ignoreSslErrors()
EncryptionMode encryptionMode() const
void setSslConfiguration(const QSslConfiguration &configuration)
UnconnectedState
ConnectedState
bool waitForDisconnected(int msecs=30000)
QString negotiatedSslVersionName() const
QHostAddress peerAddress() const
virtual bool waitForBytesWritten(int msecs)
quint16 peerPort() const
void sslErrors(const QList< KSslError > &errors)
virtual qint64 bytesAvailable() const
SslVersion advertisedSslVersion() const
void setReadBufferSize(qint64 size)
SocketTimeoutError
UnsupportedSocketOperationError
RemoteHostClosedError
HostNotFoundError
void disconnectFromHost()
SslVersion negotiatedSslVersion() const
void setAdvertisedSslVersion(SslVersion version)
bool waitForConnected(int msecs=30000)
void startClientEncryption()
void setVerificationPeerName(const QString &hostName)
static int startServiceByDesktopPath(const QString &_name, const QString &URL, QString *error=0, QString *serviceName=0, int *pid=0, const QByteArray &startup_id=QByteArray(), bool noWait=false)
void setProtocol(const QString &proto)
#define kDebug
#define kWarning
int timeout
QString i18n(const char *text)
QString i18nc(const char *ctxt, const char *text)
void message(KMessage::MessageType messageType, const QString &text, const QString &caption=QString())
KAction * save(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.