kio Library API Documentation

ksslpkcs7.h

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., 59 Temple Place - Suite 330, 00018 * Boston, MA 02111-1307, 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 class X509; 00033 #endif 00034 00035 //#include <kopenssl.h> 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
KDE Logo
This file is part of the documentation for kio Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Sep 29 09:41:07 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003