• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kio/kssl
 

kio/kssl

kssl.h
00001 /* This file is part of the KDE project
00002  *
00003  * Copyright (C) 2000-2003 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., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, 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 class KSSLSession;
00032 
00042 class KIO_EXPORT KSSL {
00043 public:
00050     KSSL(bool init = true);
00051 
00057     ~KSSL();
00058 
00064     static bool doesSSLWork();
00065 
00074     bool initialize();
00075 
00082     bool TLSInit();
00083 
00093     bool takeSession(KSSLSession *session);
00094 
00098     void close();
00099 
00109     bool reInitialize();
00110 
00120     bool reconfig();
00121 
00131     void setAutoReconfig(bool ar);
00132 
00140     int seedWithEGD();
00141 
00150     bool setSettings(KSSLSettings *settings);
00151 
00158     KSSLSettings * settings() { return m_cfg; }
00159 
00169     bool setClientCertificate(KSSLPKCS12 *pkcs);
00170 
00180     void setProxyUse(bool active, TQString realIP = TQString::null, int realPort = 0, TQString proxy = TQString::null) KDE_DEPRECATED;
00181 
00188     void setPeerHost(TQString realHost = TQString::null);
00189 
00199     int connect(int sock);
00200 
00210     int accept(int sock);
00211 
00219     int read(void *buf, int len);
00220 
00228     int peek(void *buf, int len);
00229 
00238     int write(const void *buf, int len);
00239 
00245     int pending();
00246 
00254     KSSLConnectionInfo& connectionInfo();
00255 
00263     KSSLPeerInfo& peerInfo();
00264 
00274     const KSSLSession* session() const;
00275 
00281     bool reusingSession() const;
00282 
00283 private:
00284     static bool m_bSSLWorks;
00285     bool m_bInit;
00286     bool m_bAutoReconfig;
00287     KSSLSettings *m_cfg;
00288     KSSLConnectionInfo m_ci;
00289     KSSLPeerInfo m_pi;
00290 
00291     KSSLPrivate *d;
00292 
00293     void setConnectionInfo();
00294     void setPeerInfo();
00295     bool setVerificationLogic();
00296 };
00297 
00298 
00299 #endif
00300 

kio/kssl

Skip menu "kio/kssl"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kio/kssl

Skip menu "kio/kssl"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/kssl by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |