KIO
tcpslavebase.cpp
Go to the documentation of this file.
62 //for a reusable session on connect. Consider how HTTP persistent connections interact with that.
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) {
505 TCPSlaveBase::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."),
TCPSlaveBase(const QByteArray &protocol, const QByteArray &poolSocket, const QByteArray &appSocket, bool autoSsl=false)
Constructor.
Definition: tcpslavebase.cpp:194
void message(KMessage::MessageType messageType, const QString &text, const QString &caption=QString())
QString i18n(const char *text)
QString authenticationMethod() const
Definition: tcpslavebase.h:64
QString & append(QChar ch)
bool warnOnLeave() const
Does the user want to be warned on leaving SSL mode.
Definition: ksslsettings.cpp:214
bool isNull() const
QDateTime addYears(int nyears) const
Error error() const
virtual void virtual_hook(int id, void *data)
Definition: slavebase.cpp:1288
QString name() const
int timeout
QDBusConnectionInterface * interface() const
QString keyExchangeMethod() const
const T & at(int i) const
QList< QVariant > arguments() const
Definition: global.h:214
static KSslCertificateManager * self()
bool openPasswordDialog(KIO::AuthInfo &info, const QString &errorMsg=QString())
Prompt the user for Authorization info (login & password).
Definition: slavebase.cpp:815
ssize_t readLine(char *data, ssize_t len)
Same as read() except it reads data one line at a time.
Definition: tcpslavebase.cpp:278
This class is intended to make it easier to prompt for, cache and retrieve authorization information...
Definition: authinfo.h:57
MessageType type() const
int usedBits() const
bool isNull() const
iterator erase(iterator pos)
QDBusConnection sessionBus()
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
KSslCertificateRule rule(const QSslCertificate &cert, const QString &hostName) const
void setIgnoredErrors(const QList< KSslError::Error > &errors)
bool checkCachedAuthentication(AuthInfo &info)
Checks for cached authentication based on parameters given by info.
Definition: slavebase.cpp:1175
QNetworkProxy applicationProxy()
QDBusReply< bool > isServiceRegistered(const QString &serviceName) const
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void chop(int n)
static QString getDefaultCertificateName(const QString &host, KSSLAuthAction *aa=NULL)
Definition: ksslcertificatehome.cpp:140
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
void setSslOption(QSsl::SslOption option, bool on)
Definition: ksslcertificate.h:119
QString i18nc(const char *ctxt, const char *text)
QString errorString() const
Definition: slavebase.h:248
Definition: slavebase.h:248
Definition: global.h:217
QSslCertificate certificate() const
void clear()
Definition: global.h:208
void setBlocking(bool b)
Sets the mode of the connection to blocking or non-blocking.
Definition: tcpslavebase.cpp:988
bool isConnected() const
Determines whether or not we are still connected to the remote machine.
Definition: tcpslavebase.cpp:973
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
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)
bool testSslOption(QSsl::SslOption option) const
QString number(int n, int base)
KConfigGroup * config()
Returns a configuration object to query config/meta-data information from.
Definition: slavebase.cpp:369
QString & insert(int position, QChar ch)
Definition: global.h:244
There are two classes that specifies the protocol between application (job) and kioslave.
Definition: slavebase.h:50
QNetworkProxy::ProxyType type() const
virtual void virtual_hook(int id, void *data)
Definition: tcpslavebase.cpp:997
bool isEmpty() const
bool isEmpty() const
QString trimmed() const
void setExpiryDateTime(const QDateTime &dateTime)
int supportedBits() const
static KSSLPKCS12 * getCertificateByName(const QString &name, const QString &password)
Definition: ksslcertificatehome.cpp:105
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
Definition: slavebase.h:897
QByteArray toPem() const
bool hasMetaData(const QString &key) const
Queries for the existence of a certain config/meta-data entry send by the application to the slave...
Definition: slavebase.cpp:360
void data(const QByteArray &data)
Sends data in the slave to the job (i.e.
Definition: slavebase.cpp:398
Definition: slavebase.h:248
void disconnectFromHost()
Close the connection and forget non-permanent data like the peer host.
Definition: tcpslavebase.cpp:455
Definition: global.h:218
iterator end()
bool certTypeSSLClient() const
Determine if this certificate can be used by an SSL client.
Definition: ksslx509v3.cpp:83
There are two classes that specifies the protocol between application (job) and kioslave.
Definition: tcpslavebase.h:46
QIODevice * socket() const
Return the socket object, if the class ever needs to do anything to it.
Definition: tcpslavebase.cpp:188
Definition: tcpslavebase.h:66
QDateTime currentDateTime()
SslVersion
QString metaData(const QString &key) const
Queries for config/meta-data send by the application to the slave.
Definition: slavebase.cpp:346
QString encryptionMethod() const
static bool hasCertificateByName(const QString &name)
Definition: ksslcertificatehome.cpp:127
void setRule(const KSslCertificateRule &rule)
Definition: global.h:202
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
static void setDefaultCertificate(const QString &name, bool send=true, bool prompt=false)
Definition: ksslcertificatehome.cpp:208
void setHost(const QString &host)
ssize_t write(const char *data, ssize_t len)
Definition: tcpslavebase.cpp:220
QDateTime addSecs(int s) const
typedef ConstIterator
static QStringList getCertificateList()
Definition: ksslcertificatehome.cpp:28
KAction * save(const QObject *recvr, const char *slot, QObject *parent)
QString digestMethod() const
T readEntry(const QString &key, const T &aDefault) const
iterator begin()
QString caption
The text to displayed in the title bar of the password prompting dialog.
Definition: authinfo.h:142
QList< KSslError::Error > filterErrors(const QList< KSslError::Error > &errors) const
static QList< KSslError > nonIgnorableErrors(const QList< KSslError > &)
QString prompt
Information to be displayed when prompting the user for authentication information.
Definition: authinfo.h:131
bool waitForResponse(int t)
Wait for incoming data on the socket for the period specified by t.
Definition: tcpslavebase.cpp:980
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:54 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:24:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.