ksslsettings.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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
00059
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.4.