ksslpkcs7.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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 class X509;
00033 #endif
00034
00035
00036 #include <ksslcertificate.h>
00037 #include <ksslcertchain.h>
00038
00039 #ifndef STACK_OF
00040 #define STACK_OF(x) void
00041 #endif
00042
00043 class KSSL;
00044 class KSSLPKCS7Private;
00045 class KOpenSSLProxy;
00046
00056 class KSSLPKCS7 {
00057 friend class KSSL;
00058
00059 public:
00063 virtual ~KSSLPKCS7();
00064
00070 QString name();
00071
00077 static KSSLPKCS7* fromString(QString base64);
00078
00084 static KSSLPKCS7* loadCertFile(QString filename);
00085
00090 QString toString();
00091
00097 void setCert(PKCS7 *c);
00098
00104 KSSLCertificate *getCertificate();
00105
00111 KSSLCertChain *getChain();
00112
00118 bool toFile(QString filename);
00119
00124 KSSLCertificate::KSSLValidation validate();
00125
00132 KSSLCertificate::KSSLValidation revalidate();
00133
00137 bool isValid();
00138
00139 protected:
00140 KSSLPKCS7();
00141
00142 private:
00143 KSSLPKCS7Private *d;
00144 PKCS7 *_pkcs;
00145 KOpenSSLProxy *kossl;
00146 KSSLCertificate *_cert;
00147 KSSLCertChain *_chain;
00148 };
00149
00150
00151 #endif
00152
This file is part of the documentation for kio Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Apr 21 18:43:48 2004 by
doxygen 1.3.6-20040222 written by
Dimitri van Heesch, © 1997-2003