KSSL Class Reference
#include <kssl.h>
Detailed Description
KDE SSL Wrapper ClassKDE 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.
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 | |
static bool | doesSSLWork () |
Constructor & Destructor Documentation
|
Construct a KSSL object.
|
|
Destroy this KSSL object. Does not close any socket. |
Member Function Documentation
|
Connect the SSL session to the remote host using the provided socket descriptor. This is for use with an SSL server application.
|
|
Close the SSL session.
|
|
Connect the SSL session to the remote host using the provided socket descriptor.
|
|
Obtain a reference to the connection information.
|
|
Determine if SSL is available and works.
|
|
Initialize OpenSSL.
|
|
Peek at available data from the remote host via SSL.
|
|
Obtain a reference to the information about the peer.
|
|
Determine if data is waiting to be read.
|
|
Read data from the remote host via SSL.
|
|
Trigger a reread of KSSL configuration and reInitialize() KSSL.
|
|
Reinitialize OpenSSL.
|
|
Determine if we are currently reusing an SSL session ID.
|
|
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.
|
|
Obtain a pointer to the session information.
|
|
Enable or disable automatic reconfiguration on initialize().
|
|
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.
|
|
Set the peer hostname to be used for certificate verification.
|
|
Set the status of the connection with respect to proxies.
|
|
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().
|
|
Set a new KSSLSettings instance as the settings. This deletes the current instance of KSSLSettings.
|
|
One is built by the constructor, so this will only return a NULL pointer if you set one with setSettings().
|
|
This is used for applicationss which do STARTTLS or something similar. It creates a TLS method regardless of the user's settings.
|
|
Write data to the remote host via SSL.
|
The documentation for this class was generated from the following files: