| # kio Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# kssl.h

    00001 /* This file is part of the KDE project
    00002  *
    00003  * Copyright (C) 2000 George Staikos <staikos@kde.org>
    00004  *
    00005  * This library is free software; you can redistribute it and/or
    00006  * modify it under the terms of the GNU Library General Public
    00007  * License as published by the Free Software Foundation; either
    00008  * version 2 of the License, or (at your option) any later version.
    00009  *
    00010  * This library is distributed in the hope that it will be useful,
    00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00013  * Library General Public License for more details.
    00014  *
    00015  * You should have received a copy of the GNU Library General Public License
    00016  * along with this library; see the file COPYING.LIB.  If not, write to
    00017  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00018  * Boston, MA 02111-1307, USA.
    00019  */
    00020
    00021 #ifndef _KSSL_H
    00022 #define _KSSL_H
    00023
    00024 #include <ksslsettings.h>
    00025 #include <ksslpeerinfo.h>
    00026 #include <ksslconnectioninfo.h>
    00027
    00028 class KSSLPrivate;
    00029 class KSSLCertificate;
    00030 class KSSLPKCS12;
    00031
    00032 class KSSL {
    00033
    00034 public:
    00035   KSSL(bool init = true);
    00036
    00037   ~KSSL();
    00038
    00039   static bool doesSSLWork();
    00040
    00041
    00042   bool initialize();
    00043
    00048   bool TLSInit();
    00049
    00050   void close();
    00051   bool reInitialize();
    00052
    00053   bool reconfig();
    00054   void setAutoReconfig(bool ar);
    00055
    00060   int seedWithEGD();
    00061
    00066   bool setSettings(KSSLSettings *settings);
    00067
    00072   KSSLSettings * settings() { return m_cfg; }
    00073
    00080   bool setClientCertificate(KSSLPKCS12 *pkcs);
    00081
    00088   // DEPRECATED
    00089   void setProxyUse(bool active, QString realIP = QString::null, int realPort = 0, QString proxy = QString::null);
    00090
    00091   void setPeerHost(QString realHost = QString::null);
    00092
    00093   int connect(int sock);
    00094   int accept(int sock);
    00095
    00096   int read(void *buf, int len);
    00097   int peek(void *buf, int len);  // standard peek method
    00098   int write(const void *buf, int len);
    00099
    00100   int pending();
    00101
    00102   KSSLConnectionInfo& connectionInfo();
    00103   KSSLPeerInfo& peerInfo();
    00104
    00105 private:
    00106   static bool m_bSSLWorks;
    00107   bool m_bInit;
    00108   bool m_bAutoReconfig;
    00109   KSSLSettings *m_cfg;
    00110   KSSLConnectionInfo m_ci;
    00111   KSSLPeerInfo m_pi;
    00112
    00113   KSSLPrivate *d;
    00114
    00115   void setConnectionInfo();
    00116   void setPeerInfo();
    00117   bool setVerificationLogic();
    00118 };
    00119
    00120
    00121 #endif
    00122

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 13:14:22 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001