• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

kssl.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002  *
00003  * Copyright (C) 2000-2005 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 QIODevice;
00029 class KSSLPrivate;
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 
00094     bool setSession(const KSSLSession *session);
00095 
00099     void close();
00100 
00110     bool reInitialize();
00111 
00121     bool reconfig();
00122 
00132     void setAutoReconfig(bool ar);
00133 
00141     int seedWithEGD();
00142 
00151     bool setSettings(KSSLSettings *settings);
00152 
00159     KSSLSettings * settings();
00160 
00170     bool setClientCertificate(KSSLPKCS12 *pkcs);
00171 
00178     void setPeerHost(const QString& realHost = QString());
00179 
00189     int connect(int sock);
00190         int connect(QIODevice* sock);
00191 
00201     int accept(int sock);
00202         int accept(QIODevice* sock);
00203 
00211     int read(char *buf, int len);
00212 
00220     int peek(char *buf, int len);
00221 
00230     int write(const char *buf, int len);
00231 
00237     int pending();
00238 
00246     KSSLConnectionInfo& connectionInfo();
00247 
00255     KSSLPeerInfo& peerInfo();
00256 
00266     const KSSLSession* session() const;
00267 
00273     bool reusingSession() const;
00274 
00275 private:
00276     static bool m_bSSLWorks;
00277     bool m_bInit;
00278     bool m_bAutoReconfig;
00279     KSSLSettings *m_cfg;
00280     KSSLConnectionInfo m_ci;
00281     KSSLPeerInfo m_pi;
00282 
00283     KSSLPrivate *d;
00284 
00285     void setConnectionInfo();
00286     void setPeerInfo();
00287 };
00288 
00289 
00290 #endif
00291 

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal