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
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
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
bool openPasswordDialog(KIO::AuthInfo &info, const QString &errorMsg=QString())
Prompt the user for Authorization info (login & password).
Definition: slavebase.cpp:815
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
bool checkCachedAuthentication(AuthInfo &info)
Checks for cached authentication based on parameters given by info.
Definition: slavebase.cpp:1175
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
ssize_t write(const char *data, ssize_t len)
Definition: tcpslavebase.cpp:220
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 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
SslClientMode
SslVersion
SslV3
TlsV1
SecureProtocols
UnconnectedState
ConnectedState
SocketTimeoutError
UnsupportedSocketOperationError
RemoteHostClosedError
HostNotFoundError
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-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.