# kio Library API Documentation

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

# ksslsettings.h

    00001 /* This file is part of the KDE project
    00002  *
    00003  * Copyright (C) 2000 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 _KSSLSETTINGS_H
    00022 #define _KSSLSETTINGS_H
    00023
    00024 #include <qstring.h>
    00025 #include <qvaluelist.h>
    00026 #include <kconfig.h>
    00027
    00028 class KSSLSettingsPrivate;
    00029
    00030 class KSSLSettings {
    00031 public:
    00032   KSSLSettings(bool readConfig = true);
    00033   ~KSSLSettings();
    00034
    00035   bool sslv2() const;
    00036   bool sslv3() const;
    00037   bool tlsv1() const;
    00038
    00039   bool warnOnEnter() const;
    00040   bool warnOnUnencrypted() const;
    00041   void setWarnOnUnencrypted(bool x);
    00042   bool warnOnLeave() const;
    00043   bool warnOnMixed() const;
    00044   bool warnOnSelfSigned() const;
    00045   bool warnOnRevoked() const;
    00046   bool warnOnExpired() const;
    00047
    00048   bool useEGD() const;
    00049   bool useEFile() const;
    00050
    00051   void setTLSv1(bool enabled);
    00052   void setSSLv2(bool enabled);
    00053   void setSSLv3(bool enabled);
    00054
    00055   bool autoSendX509() const;
    00056   bool promptSendX509() const;
    00057
    00058   // Returns the OpenSSL cipher list for selecting the list of ciphers to
    00059   // use in a connection
    00060   QString getCipherList();
    00061
    00062   QString& getEGDPath();
    00063
    00064   void load();
    00065   void defaults();
    00066   void save();
    00067
    00068 private:
    00069   KConfig *m_cfg;
    00070   bool m_bUseSSLv2, m_bUseSSLv3, m_bUseTLSv1;
    00071   bool m_bWarnOnEnter, m_bWarnOnUnencrypted, m_bWarnOnLeave, m_bWarnOnMixed;
    00072   bool m_bWarnSelfSigned, m_bWarnRevoked, m_bWarnExpired;
    00073
    00074   QValueList<QString> v2ciphers, v2selectedciphers,
    00075                       v3ciphers, v3selectedciphers;
    00076   QValueList<int>     v2bits, v3bits;
    00077
    00078   KSSLSettingsPrivate *d;
    00079 };
    00080
    00081
    00082 #endif
    00083

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:27 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001