ksslpkcs7.h
/* This file is part of the KDE project
*
* Copyright (C) 2001-2003 George Staikos <staikos@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef _KSSLPKCS7_H
#define _KSSLPKCS7_H
#ifdef Q_WS_WIN
#include "ksslconfig_win.h"
#else
#include "ksslconfig.h"
#endif
#ifdef KSSL_HAVE_SSL
#define crypt _openssl_crypt
#include <openssl/pkcs7.h>
#undef crypt
#else
class PKCS7;
class X509;
#endif
//#include <kopenssl.h>
#include <ksslcertificate.h>
#include <ksslcertchain.h>
#ifndef STACK_OF
#define STACK_OF(x) void
#endif
class KSSL;
class KSSLPKCS7Private;
class KOpenSSLProxy;
class KIO_EXPORT KSSLPKCS7 {
friend class KSSL;
public:
virtual ~KSSLPKCS7();
QString name();
static KSSLPKCS7* fromString(QString base64);
static KSSLPKCS7* loadCertFile(QString filename);
QString toString();
void setCert(PKCS7 *c);
KSSLCertificate *getCertificate();
KSSLCertChain *getChain();
bool toFile(QString filename);
KSSLCertificate::KSSLValidation validate();
KSSLCertificate::KSSLValidation revalidate();
bool isValid();
protected:
KSSLPKCS7();
private:
KSSLPKCS7Private *d;
PKCS7 *_pkcs;
KOpenSSLProxy *kossl;
KSSLCertificate *_cert;
KSSLCertChain *_chain;
};
#endif
KSSLPKCS7
KDE PKCS#7 Certificate.
Definition: ksslpkcs7.h:60
KSSLCertificate
KDE X.509 Certificate.
Definition: ksslcertificate.h:75
KOpenSSLProxy
Dynamically load and wrap OpenSSL.
Definition: kopenssl.h:63
KSSLCertChain
KDE Certificate Chain Representation Class.
Definition: ksslcertchain.h:45
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:113
KSSL
KDE SSL Wrapper Class.
Definition: kssl.h:42

KDE Home | KDE Accessibility Home | Description of Access Keys