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

tdeio/kssl

  • tdeio
  • kssl
kssl.h
1/* This file is part of the KDE project
2 *
3 * Copyright (C) 2000-2003 George Staikos <staikos@kde.org>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20
21#ifndef _KSSL_H
22#define _KSSL_H
23
24#include <ksslsettings.h>
25#include <ksslpeerinfo.h>
26#include <ksslconnectioninfo.h>
27
28class KSSLPrivate;
29class KSSLCertificate;
30class KSSLPKCS12;
31class KSSLSession;
32
42class TDEIO_EXPORT KSSL {
43public:
50 KSSL(bool init = true);
51
57 ~KSSL();
58
64 static bool doesSSLWork();
65
74 bool initialize();
75
82 bool TLSInit();
83
93 bool takeSession(KSSLSession *session);
94
98 void close();
99
109 bool reInitialize();
110
120 bool reconfig();
121
131 void setAutoReconfig(bool ar);
132
140 int seedWithEGD();
141
150 bool setSettings(KSSLSettings *settings);
151
158 KSSLSettings * settings() { return m_cfg; }
159
169 bool setClientCertificate(KSSLPKCS12 *pkcs);
170
180 void setProxyUse(bool active, TQString realIP = TQString::null, int realPort = 0, TQString proxy = TQString::null) TDE_DEPRECATED;
181
188 void setPeerHost(TQString realHost = TQString::null);
189
199 int connect(int sock);
200
210 int accept(int sock);
211
219 int read(void *buf, int len);
220
228 int peek(void *buf, int len);
229
238 int write(const void *buf, int len);
239
245 int pending();
246
254 KSSLConnectionInfo& connectionInfo();
255
263 KSSLPeerInfo& peerInfo();
264
274 const KSSLSession* session() const;
275
281 bool reusingSession() const;
282
283private:
284 static bool m_bSSLWorks;
285 bool m_bInit;
286 bool m_bAutoReconfig;
287 KSSLSettings *m_cfg;
288 KSSLConnectionInfo m_ci;
289 KSSLPeerInfo m_pi;
290
291 KSSLPrivate *d;
292
293 void setConnectionInfo();
294 void setPeerInfo();
295 bool setVerificationLogic();
296};
297
298
299#endif
300
KSSLCertificate
KDE X.509 Certificate.
Definition: ksslcertificate.h:77
KSSLConnectionInfo
KDE SSL Connection Information.
Definition: ksslconnectioninfo.h:40
KSSLPKCS12
KDE PKCS#12 Certificate.
Definition: ksslpkcs12.h:61
KSSLPeerInfo
KDE SSL Peer Data.
Definition: ksslpeerinfo.h:42
KSSLSession
KDE SSL Session Information.
Definition: ksslsession.h:42
KSSLSettings
KDE SSL Settings.
Definition: ksslsettings.h:39
KSSL
KDE SSL Wrapper Class.
Definition: kssl.h:42
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:158

tdeio/kssl

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

tdeio/kssl

Skip menu "tdeio/kssl"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/kssl by doxygen 1.9.4
This website is maintained by Timothy Pearson.