• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/kssl
 

tdeio/kssl

  • tdeio
  • kssl
ksslsettings.h
1/* This file is part of the KDE project
2 *
3 * Copyright (C) 2000-2003 George Staikos <staikos@kde.org>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20
21#ifndef _KSSLSETTINGS_H
22#define _KSSLSETTINGS_H
23
24#include <tqstring.h>
25#include <tqvaluelist.h>
26#include <tdeconfig.h>
27
28class KSSLSettingsPrivate;
29
39class TDEIO_EXPORT KSSLSettings {
40public:
46 KSSLSettings(bool readConfig = true);
47
51 ~KSSLSettings();
52
57 bool sslv2() const;
58
63 bool sslv3() const;
64
69 bool tlsv1() const;
70
75 bool warnOnEnter() const;
76
83 void setWarnOnEnter(bool x);
84
90 bool warnOnUnencrypted() const;
91
97 void setWarnOnUnencrypted(bool x);
98
103 bool warnOnLeave() const;
104
111 void setWarnOnLeave(bool x);
112
117 bool warnOnMixed() const;
118
123 bool warnOnSelfSigned() const TDE_DEPRECATED;
124
129 bool warnOnRevoked() const TDE_DEPRECATED;
130
135 bool warnOnExpired() const TDE_DEPRECATED;
136
141 bool useEGD() const;
142
147 bool useEFile() const;
148
153 void setTLSv1(bool enabled);
154
159 void setSSLv2(bool enabled);
160
165 void setSSLv3(bool enabled);
166
172 bool autoSendX509() const;
173
179 bool promptSendX509() const;
180
186 TQString getCipherList();
187
193 TQString& getEGDPath();
194
198 void load();
199
203 void defaults();
204
208 void save();
209
210private:
211 TDEConfig *m_cfg;
212 bool m_bUseSSLv2, m_bUseSSLv3, m_bUseTLSv1;
213 bool m_bWarnOnEnter, m_bWarnOnUnencrypted, m_bWarnOnLeave, m_bWarnOnMixed;
214 bool m_bWarnSelfSigned, m_bWarnRevoked, m_bWarnExpired;
215
216 TQValueList<TQString> v2ciphers, v2selectedciphers, v3ciphers, v3selectedciphers;
217 TQValueList<int> v2bits, v3bits;
218
219 KSSLSettingsPrivate *d;
220};
221
222
223#endif
224
KSSLSettings::getCipherList
TQString getCipherList()
Get the OpenSSL cipher list for selecting the list of ciphers to use in a connection.
Definition ksslsettings.cpp:125
KSSLSettings::warnOnMixed
bool warnOnMixed() const
Does the user want to be warned during mixed SSL/non-SSL mode.
Definition ksslsettings.cpp:331
KSSLSettings::autoSendX509
bool autoSendX509() const
Does the user want X.509 client certificates to always be sent when possible?
Definition ksslsettings.cpp:337
KSSLSettings::defaults
void defaults()
Revert to default settings.
Definition ksslsettings.cpp:249
KSSLSettings::warnOnRevoked
bool warnOnRevoked() const TDE_DEPRECATED
Do not use this.
Definition ksslsettings.cpp:333
KSSLSettings::KSSLSettings
KSSLSettings(bool readConfig=true)
Construct a KSSL Settings object.
Definition ksslsettings.cpp:88
KSSLSettings::sslv2
bool sslv2() const
Does the user allow SSLv2.
Definition ksslsettings.cpp:107
KSSLSettings::setWarnOnUnencrypted
void setWarnOnUnencrypted(bool x)
Change the user's warnOnUnencrypted() setting.
Definition ksslsettings.cpp:328
KSSLSettings::sslv3
bool sslv3() const
Does the user allow SSLv3.
Definition ksslsettings.cpp:112
KSSLSettings::warnOnExpired
bool warnOnExpired() const TDE_DEPRECATED
Do not use this.
Definition ksslsettings.cpp:334
KSSLSettings::warnOnSelfSigned
bool warnOnSelfSigned() const TDE_DEPRECATED
Do not use this.
Definition ksslsettings.cpp:332
KSSLSettings::tlsv1
bool tlsv1() const
Does the user allow TLSv1.
Definition ksslsettings.cpp:117
KSSLSettings::load
void load()
Load the user's settings.
Definition ksslsettings.cpp:201
KSSLSettings::setSSLv3
void setSSLv3(bool enabled)
Change the user's SSLv3 preference.
Definition ksslsettings.cpp:342
KSSLSettings::warnOnEnter
bool warnOnEnter() const
Does the user want to be warned on entering SSL mode.
Definition ksslsettings.cpp:325
KSSLSettings::useEFile
bool useEFile() const
Does the user want to use an entropy file?
Definition ksslsettings.cpp:336
KSSLSettings::setSSLv2
void setSSLv2(bool enabled)
Change the user's SSLv2 preference.
Definition ksslsettings.cpp:341
KSSLSettings::setWarnOnLeave
void setWarnOnLeave(bool x)
Change the user's warnOnLeave() setting.
Definition ksslsettings.cpp:330
KSSLSettings::warnOnUnencrypted
bool warnOnUnencrypted() const
Does the user want to be warned on sending unencrypted data.
Definition ksslsettings.cpp:327
KSSLSettings::promptSendX509
bool promptSendX509() const
Does the user want to be prompted to send X.509 client certificates when possible?
Definition ksslsettings.cpp:338
KSSLSettings::setTLSv1
void setTLSv1(bool enabled)
Change the user's TLSv1 preference.
Definition ksslsettings.cpp:340
KSSLSettings::getEGDPath
TQString & getEGDPath()
Get the configured path to the entropy gathering daemon or entropy file.
Definition ksslsettings.cpp:344
KSSLSettings::save
void save()
Save the current settings.
Definition ksslsettings.cpp:266
KSSLSettings::useEGD
bool useEGD() const
Does the user want to use the Entropy Gathering Daemon?
Definition ksslsettings.cpp:335
KSSLSettings::setWarnOnEnter
void setWarnOnEnter(bool x)
Change the user's warnOnEnter() setting.
Definition ksslsettings.cpp:326
KSSLSettings::warnOnLeave
bool warnOnLeave() const
Does the user want to be warned on leaving SSL mode.
Definition ksslsettings.cpp:329

tdeio/kssl

Skip menu "tdeio/kssl"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeio/kssl

Skip menu "tdeio/kssl"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/kssl by doxygen 1.15.0
This website is maintained by Timothy Pearson.