ksslpkcs7.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _KSSLPKCS7_H
00025 #define _KSSLPKCS7_H
00026
00027 #include "ksslconfig.h"
00028
00029 #ifdef KSSL_HAVE_SSL
00030 #define crypt _openssl_crypt
00031 #include <openssl/pkcs7.h>
00032 #undef crypt
00033 #else
00034 class PKCS7;
00035 class X509;
00036 #endif
00037
00038
00039 #include <ksslcertificate.h>
00040 #include <ksslcertchain.h>
00041
00042 #ifndef STACK_OF
00043 #define STACK_OF(x) void
00044 #endif
00045
00046 class KSSL;
00047 class KSSLPKCS7Private;
00048 class KOpenSSLProxy;
00049
00050
00051 class KSSLPKCS7 {
00052 friend class KSSL;
00053
00054 public:
00055 virtual ~KSSLPKCS7();
00056
00057
00058
00059
00060
00061 QString name();
00062
00063
00064
00065
00066
00067 static KSSLPKCS7* fromString(QString base64);
00068
00069
00070
00071
00072
00073 static KSSLPKCS7* loadCertFile(QString filename);
00074
00075
00076
00077
00078 QString toString();
00079
00080
00081
00082
00083 void setCert(PKCS7 *c);
00084
00085
00086
00087
00088 KSSLCertificate *getCertificate();
00089
00090
00091
00092
00093
00094 KSSLCertChain *getChain();
00095
00096
00097
00098
00099
00100 bool toFile(QString filename);
00101
00102
00103
00104
00105
00106 KSSLCertificate::KSSLValidation validate();
00107 KSSLCertificate::KSSLValidation validate(KSSLCertificate::KSSLPurpose p);
00108
00109
00110
00111
00112
00113
00114 KSSLCertificate::KSSLValidation revalidate();
00115 KSSLCertificate::KSSLValidation revalidate(KSSLCertificate::KSSLPurpose p);
00116
00117
00118
00119
00120
00121 bool isValid();
00122
00123
00124
00125 protected:
00126 KSSLPKCS7();
00127
00128 private:
00129 KSSLPKCS7Private *d;
00130 PKCS7 *_pkcs;
00131 KOpenSSLProxy *kossl;
00132 KSSLCertificate *_cert;
00133 KSSLCertChain *_chain;
00134 };
00135
00136
00137 #endif
00138
This file is part of the documentation for kdelibs Version 3.1.0.