class KSSL

# class KSSL |
Definition | `#include <kssl.h>`
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KSSL (bool init = true)
- ~KSSL ()
- bool initialize ()
- bool TLSInit ()
- 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)
- 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 ()

#### Public Static Methods

- static bool doesSSLWork ()

## Detailed Description

KSSL (bool init = true) | ### KSSL

~KSSL () | ### ~KSSL

bool doesSSLWork () | ### doesSSLWork

[static]

bool initialize () | ### initialize

bool TLSInit () | ### TLSInit

This is used for apps which do STARTTLS or something similar. It creates a TLS method regardless of the user's settings.

void close () | ### close

bool reInitialize () | ### reInitialize

bool reconfig () | ### reconfig

void setAutoReconfig (bool ar) | ### setAutoReconfig

int seedWithEGD () | ### seedWithEGD

This will reseed the PRNG with the EGD if the EGD is configured and enabled. You don't need to call this yourself normally.

bool setSettings (KSSLSettings *settings) | ### setSettings

Set a new KSSLSettings instance as the settings. This deletes the current instance of KSSLSettings.

KSSLSettings * settings () | ### settings

Returns: the current settings instance One is built by the constructor, so this will never return 0L.

bool setClientCertificate (KSSLPKCS12 *pkcs) | ### setClientCertificate

Returns: true if the certificate was properly set to the session. 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.

void setProxyUse (bool active, QString realIP = QString::null, int realPort = 0, QString proxy = QString::null) | ### setProxyUse

Set the status of the connection with respect to proxies. realIP is the IP address of the host you're connecting to realPort is the port of the host you're connecting to proxy is the IP or hostname of the proxy server

void setPeerHost (QString realHost = QString::null) | ### setPeerHost

int connect (int sock) | ### connect

int accept (int sock) | ### accept

int read (void *buf, int len) | ### read

int peek (void *buf, int len) | ### peek

int write (const void *buf, int len) | ### write

int pending () | ### pending

KSSLConnectionInfo& connectionInfo () | ### connectionInfo

KSSLPeerInfo& peerInfo () | ### peerInfo

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:37:09 2003, using kdoc 2.0a54.