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());
912 i18n("The certificate is valid but does not appear to have been assigned to this server. Do you wish to continue loading?"),
938 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?"),
950 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
bool warnOnLeave() const
Does the user want to be warned on leaving SSL mode.
Definition: ksslsettings.cpp:214
bool isNull() const
Error error() const
virtual void virtual_hook(int id, void *data)
Definition: slavebase.cpp:1288
QString name() const
int timeout
QString keyExchangeMethod() 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
int usedBits() const
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
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
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
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
Definition: global.h:208
void setBlocking(bool b)
Sets the mode of the connection to blocking or non-blocking.
Definition: tcpslavebase.cpp:979
bool isConnected() const
Determines whether or not we are still connected to the remote machine.
Definition: tcpslavebase.cpp:964
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)
KConfigGroup * config()
Returns a configuration object to query config/meta-data information from.
Definition: slavebase.cpp:369
Definition: global.h:244
There are two classes that specifies the protocol between application (job) and kioslave.
Definition: slavebase.h:50
virtual void virtual_hook(int id, void *data)
Definition: tcpslavebase.cpp:988
void setExpiryDateTime(const QDateTime &dateTime)
int supportedBits() const
static KSSLPKCS12 * getCertificateByName(const QString &name, const QString &password)
Definition: ksslcertificatehome.cpp:105
Definition: slavebase.h:897
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
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
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
ssize_t write(const char *data, ssize_t len)
Definition: tcpslavebase.cpp:220
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
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:971
QString number(KIO::filesize_t size)
Converts a size to a string representation Not unlike QString::number(...)
Definition: global.cpp:63
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.