# kio Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# ksslcertchain.h

    00001 /* This file is part of the KDE project
    00002  *
    00003  * Copyright (C) 2001 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 _KSSLCERTCHAIN_H
    00022 #define _KSSLCERTCHAIN_H
    00023
    00024 #include <qglobal.h>
    00025 #if QT_VERSION < 300
    00026 #include <qlist.h>
    00027 #else
    00028 #include <qptrlist.h>
    00029 #endif
    00030
    00031 class QString;
    00032 class QCString;
    00033 class KSSL;
    00034 class KSSLCertChainPrivate;
    00035 class QStringList;
    00036
    00037 #include <ksslcertificate.h>
    00038
    00039 class KSSLCertChain {
    00040 friend class KSSL;
    00041 friend class KSSLPeerInfo;
    00042
    00043 public:
    00044   KSSLCertChain();
    00045   ~KSSLCertChain();
    00046
    00047   bool isValid();
    00048
    00049   KSSLCertChain *replicate();
    00050   void setChain(void *stack_of_x509);
    00051 #if QT_VERSION < 300
    00052   void setChain(QList<KSSLCertificate>& chain);
    00053 #else
    00054   void setChain(QPtrList<KSSLCertificate>& chain);
    00055 #endif
    00056   void setChain(QStringList chain);
    00057 #if QT_VERSION < 300
    00058   QList<KSSLCertificate> getChain();
    00059 #else
    00060   QPtrList<KSSLCertificate> getChain();
    00061 #endif
    00062   int depth();
    00063   void *rawChain() { return _chain; }
    00064
    00065
    00066 private:
    00067   KSSLCertChainPrivate *d;
    00068   void *_chain;
    00069 };
    00070
    00071
    00072 #endif
    00073

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 13:14:22 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001