kssl.h
/* This file is part of the KDE project
*
* Copyright (C) 2000-2003 George Staikos <staikos@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef _KSSL_H
#define _KSSL_H
#include <ksslsettings.h>
#include <ksslpeerinfo.h>
#include <ksslconnectioninfo.h>
class KSSLPrivate;
class KSSLCertificate;
class KSSLPKCS12;
class KSSLSession;
class KIO_EXPORT KSSL {
public:
KSSL(bool init = true);
~KSSL();
static bool doesSSLWork();
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() { return m_cfg; }
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;
private:
static bool m_bSSLWorks;
bool m_bInit;
bool m_bAutoReconfig;
KSSLSettings *m_cfg;
KSSLConnectionInfo m_ci;
KSSLPeerInfo m_pi;
KSSLPrivate *d;
void setConnectionInfo();
void setPeerInfo();
bool setVerificationLogic();
};
#endif
KSSLCertificate
KDE X.509 Certificate.
Definition: ksslcertificate.h:75
KSSLPKCS12
KDE PKCS#12 Certificate.
Definition: ksslpkcs12.h:61
KSSL
KDE SSL Wrapper Class.
Definition: kssl.h:42
KSSLPeerInfo
KDE SSL Peer Data.
Definition: ksslpeerinfo.h:42
KSSLSettings
KDE SSL Settings.
Definition: ksslsettings.h:39
KSSL::settings
KSSLSettings * settings()
One is built by the constructor, so this will only return a NULL pointer if you set one with setSetti...
Definition: kssl.h:159
KSSLSession
KDE SSL Session Information.
Definition: ksslsession.h:42
KSSLConnectionInfo
KDE SSL Connection Information.
Definition: ksslconnectioninfo.h:40

KDE Home | KDE Accessibility Home | Description of Access Keys