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
28
class
KSSLPrivate;
29
class
KSSLCertificate
;
30
class
KSSLPKCS12
;
31
class
KSSLSession
;
32
42
class
TDEIO_EXPORT
KSSL
{
43
public
:
50
KSSL
(
bool
init =
true
);
51
57
~
KSSL
();
58
64
static
bool
doesSSLWork();
65
74
bool
initialize();
75
82
bool
TLSInit();
83
94
bool
setSession(
const
KSSLSession
*session);
95
99
void
close();
100
110
bool
reInitialize();
111
121
bool
reconfig();
122
132
void
setAutoReconfig(
bool
ar);
133
141
int
seedWithEGD();
142
151
bool
setSettings(
KSSLSettings
*settings);
152
159
KSSLSettings
*
settings
() {
return
m_cfg; }
160
170
bool
setClientCertificate(
KSSLPKCS12
*pkcs);
171
181
void
setProxyUse(
bool
active, TQString realIP = TQString::null,
int
realPort = 0, TQString proxy = TQString::null) KDE_DEPRECATED;
182
189
void
setPeerHost(TQString realHost = TQString::null);
190
200
int
connect(
int
sock);
201
211
int
accept(
int
sock);
212
220
int
read(
void
*buf,
int
len);
221
229
int
peek(
void
*buf,
int
len);
230
239
int
write(const
void
*buf,
int
len);
240
246
int
pending();
247
255
KSSLConnectionInfo
& connectionInfo();
256
264
KSSLPeerInfo
& peerInfo();
265
275
const
KSSLSession
* session() const;
276
282
bool
reusingSession() const;
283
284
private:
285
static
bool
m_bSSLWorks;
286
bool
m_bInit;
287
bool
m_bAutoReconfig;
288
KSSLSettings
*m_cfg;
289
KSSLConnectionInfo
m_ci;
290
KSSLPeerInfo
m_pi;
291
292
KSSLPrivate *d;
293
294
void
setConnectionInfo();
295
void
setPeerInfo();
296
bool
setVerificationLogic();
297
};
298
299
300
#endif
301
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
knewstuff
libtdemid
libtdescreensaver
tdeabc
tdecmshell
tdecore
tdefx
tdehtml
tdeinit
tdeio
bookmarks
httpfilter
kpasswdserver
kssl
tdefile
tdeio
tdeioexec
tdeioslave
http
tdemdi
tdemdi
tdeparts
tdeprint
tderandr
tderesources
tdespell2
tdesu
tdeui
tdeunittest
tdeutils
tdewallet