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

tdeio/kssl

  • tdeio
  • kssl
ksslpkcs12.h
1 /* This file is part of the KDE project
2  *
3  * Copyright (C) 2001 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 _KSSLPKCS12_H
22 #define _KSSLPKCS12_H
23 
24 #ifdef TQ_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/pkcs12.h>
33 #undef crypt
34 #else
35 class PKCS12;
36 class EVP_PKEY;
37 class X509;
38 #endif
39 
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 KSSLPKCS12Private;
49 class KOpenSSLProxy;
50 
61 class TDEIO_EXPORT KSSLPKCS12 {
62 friend class KSSL;
63 
64 public:
68  virtual ~KSSLPKCS12();
69 
75  TQString name();
76 
83  static KSSLPKCS12* fromString(TQString base64, TQString password = "");
84 
91  static KSSLPKCS12* loadCertFile(TQString filename, TQString password = "");
92 
97  TQString toString();
98 
104  void setCert(PKCS12 *c);
105 
112  bool changePassword(TQString pold, TQString pnew);
113 
119  EVP_PKEY *getPrivateKey();
120 
125  KSSLCertificate *getCertificate();
126 
132  bool toFile(TQString filename);
133 
139  KSSLCertificate::KSSLValidation validate();
140 
147  KSSLCertificate::KSSLValidation validate(KSSLCertificate::KSSLPurpose p);
148 
155  KSSLCertificate::KSSLValidation revalidate();
156 
164  KSSLCertificate::KSSLValidation revalidate(KSSLCertificate::KSSLPurpose p);
165 
170  bool isValid();
171 
177  bool isValid(KSSLCertificate::KSSLPurpose p);
178 
179 protected:
180  KSSLPKCS12();
181  bool parse(TQString pass);
182 
183 private:
184  KSSLPKCS12Private *d;
185  PKCS12 *_pkcs;
186  KOpenSSLProxy *kossl;
187  EVP_PKEY *_pkey;
188  KSSLCertificate *_cert;
189  STACK_OF(X509) *_caStack;
190 };
191 
192 
193 #endif
194 
KOpenSSLProxy
Dynamically load and wrap OpenSSL.
Definition: kopenssl.h:76
KSSLCertificate
KDE X.509 Certificate.
Definition: ksslcertificate.h:77
KSSLCertificate::KSSLValidation
KSSLValidation
A CA certificate can be validated as Irrelevant when it was not used to sign any other relevant certi...
Definition: ksslcertificate.h:122
KSSLPKCS12
KDE PKCS#12 Certificate.
Definition: ksslpkcs12.h:61
KSSL
KDE SSL Wrapper Class.
Definition: kssl.h:42

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.1
This website is maintained by Timothy Pearson.