KSSL Class Reference
KDE SSL Wrapper Class KDE SSL Class. More...
#include <kssl.h>
Public Member Functions | |
KSSL (bool init=true) | |
~KSSL () | |
bool | initialize () |
bool | TLSInit () |
bool | setSession (const KSSLSession *session) |
void | close () |
bool | reInitialize () |
bool | reconfig () |
void | setAutoReconfig (bool ar) |
int | seedWithEGD () |
bool | setSettings (KSSLSettings *settings) |
KSSLSettings * | settings () |
bool | setClientCertificate (KSSLPKCS12 *pkcs) |
void | setProxyUse (bool active, QString realIP=QString::null, int realPort=0, QString proxy=QString::null) KDE_DEPRECATED |
void | setPeerHost (QString realHost=QString::null) |
int | connect (int sock) |
int | accept (int sock) |
int | read (void *buf, int len) |
int | peek (void *buf, int len) |
int | write (const void *buf, int len) |
int | pending () |
KSSLConnectionInfo & | connectionInfo () |
KSSLPeerInfo & | peerInfo () |
const KSSLSession * | session () const |
bool | reusingSession () const |
Static Public Member Functions | |
bool | doesSSLWork () |
Detailed Description
KDE SSL Wrapper Class KDE SSL Class.This class implements KDE's SSL support by wrapping OpenSSL.
- Author:
- George Staikos <staikos@kde.org>
- See also:
- KExtendedSocket, TCPSlaveBase
Definition at line 42 of file kssl.h.
Constructor & Destructor Documentation
|
Construct a KSSL object.
Definition at line 83 of file kssl.cc. References initialize(). |
|
Destroy this KSSL object. Does not close any socket. Definition at line 97 of file kssl.cc. References close(). |
Member Function Documentation
|
Determine if SSL is available and works.
Definition at line 565 of file kssl.cc. Referenced by KSSLInfoDlg::KSSLInfoDlg(), and KSSLInfoDlg::setSecurityInQuestion(). |
|
Initialize OpenSSL.
Definition at line 160 of file kssl.cc. References KSSLSettings::getCipherList(), kdDebug(), KSSLSettings::load(), KSSLPeerInfo::reset(), seedWithEGD(), KSSLSettings::sslv2(), and KSSLSettings::sslv3(). Referenced by KSSL(), and reInitialize(). |
|
This is used for applicationss which do STARTTLS or something similar. It creates a TLS method regardless of the user's settings.
Definition at line 125 of file kssl.cc. References KSSLSettings::getCipherList(), KSSLSettings::load(), seedWithEGD(), and KSSLSettings::tlsv1(). |
|
Set an SSL session to use. This deep copies the session so it doesn't have to remain valid. You need to call it after calling initialize or reInitialize. The ID is cleared in close().
Definition at line 206 of file kssl.cc. References KSSLSession::_session. |
|
Close the SSL session.
Definition at line 227 of file kssl.cc. References KSSLSettings::getEGDPath(), and KSSLSettings::useEFile(). Referenced by reInitialize(), and ~KSSL(). |
|
Reinitialize OpenSSL.
Definition at line 252 of file kssl.cc. References close(), and initialize(). Referenced by reconfig(). |
|
Trigger a reread of KSSL configuration and reInitialize() KSSL.
Definition at line 542 of file kssl.cc. References reInitialize(). Referenced by setSettings(). |
|
Enable or disable automatic reconfiguration on initialize().
|
|
This will reseed the pseudo-random number generator with the EGD (entropy gathering daemon) if the EGD is configured and enabled. You don't need to call this yourself normally.
Definition at line 104 of file kssl.cc. References KSSLSettings::getEGDPath(), kdDebug(), KSSLSettings::useEFile(), and KSSLSettings::useEGD(). Referenced by initialize(), and TLSInit(). |
|
Set a new KSSLSettings instance as the settings. This deletes the current instance of KSSLSettings.
Definition at line 552 of file kssl.cc. References reconfig(). |
|
One is built by the constructor, so this will only return a NULL pointer if you set one with setSettings().
|
|
Use this to set the certificate to send to the server. Do NOT delete the KSSLPKCS12 object until you are done with the session. It is not defined when KSSL will be done with this.
Definition at line 627 of file kssl.cc. References KSSLX509V3::certTypeSSLClient(), KSSLCertificate::getCert(), KSSLPKCS12::getCertificate(), KSSLPKCS12::getPrivateKey(), kdDebug(), KSSLPKCS12::kossl, KOpenSSLProxy::SSL_CTX_use_certificate(), and KSSLCertificate::x509V3Extensions(). |
|
Set the status of the connection with respect to proxies.
|
|
Set the peer hostname to be used for certificate verification.
|
|
Connect the SSL session to the remote host using the provided socket descriptor.
Definition at line 358 of file kssl.cc. References kdDebug(). |
|
Connect the SSL session to the remote host using the provided socket descriptor. This is for use with an SSL server application.
Definition at line 272 of file kssl.cc. References kdDebug(). |
|
Read data from the remote host via SSL.
Definition at line 476 of file kssl.cc. References kdDebug(). |
|
Peek at available data from the remote host via SSL.
|
|
Write data to the remote host via SSL.
Definition at line 514 of file kssl.cc. References kdDebug(). |
|
Determine if data is waiting to be read.
|
|
Obtain a reference to the connection information.
Definition at line 607 of file kssl.cc. Referenced by KSSLInfoDlg::setup(). |
|
Obtain a reference to the information about the peer.
Definition at line 622 of file kssl.cc. Referenced by KSSLInfoDlg::setup(). |
|
Obtain a pointer to the session information.
|
|
Determine if we are currently reusing an SSL session ID.
|
The documentation for this class was generated from the following files: