Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
tdeio/kssl
tdeio/kssl
tdeio
kssl
ksslpkcs7.h
1
/* This file is part of the KDE project
2
*
3
* Copyright (C) 2001-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 _KSSLPKCS7_H
22
#define _KSSLPKCS7_H
23
24
#ifdef Q_WS_WIN
25
#include "ksslconfig_win.h"
26
#else
27
#include "ksslconfig.h"
28
#endif
29
30
#ifdef KSSL_HAVE_SSL
31
#define crypt _openssl_crypt
32
#include <openssl/pkcs7.h>
33
#undef crypt
34
#else
35
class
PKCS7;
36
class
X509;
37
#endif
38
39
//#include <kopenssl.h>
40
#include <ksslcertificate.h>
41
#include <ksslcertchain.h>
42
43
#ifndef STACK_OF
44
#define STACK_OF(x) void
45
#endif
46
47
class
KSSL
;
48
class
KSSLPKCS7Private;
49
class
KOpenSSLProxy
;
50
60
class
TDEIO_EXPORT
KSSLPKCS7
{
61
friend
class
KSSL
;
62
63
public
:
67
virtual
~
KSSLPKCS7
();
68
74
TQString name();
75
81
static
KSSLPKCS7
* fromString(TQString base64);
82
88
static
KSSLPKCS7
* loadCertFile(TQString filename);
89
94
TQString toString();
95
101
void
setCert(PKCS7 *c);
102
108
KSSLCertificate
*getCertificate();
109
115
KSSLCertChain
*getChain();
116
122
bool
toFile(TQString filename);
123
128
KSSLCertificate::KSSLValidation
validate();
129
136
KSSLCertificate::KSSLValidation
revalidate();
137
141
bool
isValid();
142
143
protected
:
144
KSSLPKCS7
();
145
146
private
:
147
KSSLPKCS7Private *d;
148
PKCS7 *_pkcs;
149
KOpenSSLProxy
*kossl;
150
KSSLCertificate
*_cert;
151
KSSLCertChain
*_chain;
152
};
153
154
155
#endif
156
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
tdecore
tdeabc
tdecmshell
tdecore
tdefx
tdehtml
tdeinit
tdeio
bookmarks
httpfilter
kpasswdserver
kssl
tdeioslave
http
tdefile
tdeio
tdeioexec
tdemdi
tdemdi
tdenewstuff
tdeparts
tdeprint
tderandr
tderesources
tdespell2
tdesu
tdeui
tdeunittest
tdeutils
tdewallet