• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

ksslpkcs7.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002  *
00003  * Copyright (C) 2001-2003 George Staikos <staikos@kde.org>
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Library General Public License
00016  * along with this library; see the file COPYING.LIB.  If not, write to
00017  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019  */
00020 
00021 #ifndef _KSSLPKCS7_H
00022 #define _KSSLPKCS7_H
00023 
00024 #include <ksslconfig.h>
00025 
00026 #ifdef KSSL_HAVE_SSL
00027 #define crypt _openssl_crypt
00028 #include <openssl/pkcs7.h>
00029 #undef crypt
00030 #else
00031 class PKCS7;
00032 #endif
00033 
00034 //#include <kopenssl.h>
00035 #include <ksslcertificate.h>
00036 #include <ksslcertchain.h>
00037 
00038 #ifndef STACK_OF
00039 #define STACK_OF(x) void
00040 #endif
00041 
00042 class KSSL;
00043 class KSSLPKCS7Private;
00044 class KOpenSSLProxy;
00045 
00055 class KIO_EXPORT KSSLPKCS7 {
00056 friend class KSSL;
00057 
00058 public:
00062     virtual ~KSSLPKCS7();
00063 
00069     QString name() const;
00070 
00076     static KSSLPKCS7* fromString(const QString &base64);
00077 
00083     static KSSLPKCS7* loadCertFile(const QString &filename);
00084 
00089     QString toString() const;
00090 
00096     void setCert(PKCS7 *c);
00097 
00103     KSSLCertificate *getCertificate();
00104 
00110     KSSLCertChain *getChain();
00111 
00117     bool toFile(const QString &filename);
00118 
00123     KSSLCertificate::KSSLValidation validate() const;
00124 
00131     KSSLCertificate::KSSLValidation revalidate();
00132 
00136     bool isValid() const;
00137 
00138 protected:
00139     KSSLPKCS7();
00140 
00141 private:
00142     KSSLPKCS7Private *d;
00143     PKCS7 *_pkcs;
00144     KOpenSSLProxy *kossl;
00145     KSSLCertificate *_cert;
00146     KSSLCertChain *_chain;
00147 };
00148 
00149 
00150 #endif
00151 

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal