Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
kio/kssl
kio/kssl
kio
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
KIO_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
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) KDE_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
283
private:
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
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