15 * EAP method QT configuration |
15 * EAP method QT configuration |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 /* |
19 /* |
20 * %version: 1 % |
20 * %version: 3 % |
21 */ |
21 */ |
22 |
22 |
23 #ifndef EAPQTCONFIG_H |
23 #ifndef EAPQTCONFIG_H |
24 #define EAPQTCONFIG_H |
24 #define EAPQTCONFIG_H |
25 |
25 |
26 #include <QList> |
26 #include <QList> |
27 #include <QVariant> |
27 #include <QVariant> |
28 |
28 #include <eapqtconfigdefs.h> |
29 #ifdef BUILD_EAP_QT_CONFIG_INTERFACE_DLL |
|
30 #define EAP_QT_CONFIG_EXPORT Q_DECL_EXPORT |
|
31 #else |
|
32 #define EAP_QT_CONFIG_EXPORT Q_DECL_IMPORT |
|
33 #endif |
|
34 |
29 |
35 class EapQtConfigPrivate; |
30 class EapQtConfigPrivate; |
36 |
31 |
37 class EAP_QT_CONFIG_EXPORT EapQtConfig |
32 class EAP_QT_CONFIG_INTERFACE_EXPORT EapQtConfig |
38 { |
33 { |
39 public: |
34 public: |
40 |
|
41 // TODO: document default values |
|
42 |
35 |
43 enum SettingsId |
36 enum SettingsId |
44 { |
37 { |
45 // see also EapSettings.h |
38 // see also EapSettings.h |
46 |
39 |
74 /*! bool */ |
67 /*! bool */ |
75 ClientAuthenticationRequired, |
68 ClientAuthenticationRequired, |
76 /*! uint */ |
69 /*! uint */ |
77 SessionValidityTime, |
70 SessionValidityTime, |
78 /*! |
71 /*! |
79 * QList<uint> contains RFC numbers for activated ciphersuites |
72 * QList<uint> contains RFC2246 numbers for activated ciphersuites |
80 * |
73 * |
81 * Refer to RFC2246 chapter A.5 for the values. |
74 * TLS_NULL_WITH_NULL_NULL = 0x0000 |
82 * |
75 * TLS_RSA_WITH_RC4_128_MD5 = 0x0004 |
83 * Supported CipherSuites by EAP Server default implementation: |
76 * TLS_RSA_WITH_RC4_128_SHA = 0x0005 |
84 * TLS_NULL_WITH_NULL_NULL = (0x0000), |
77 * TLS_RSA_WITH_3DES_EDE_CBC_SHA = 0x000a |
85 * - No key exchange, no encryption and no authentication. |
78 * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 0x0016 |
86 * TLS_RSA_WITH_RC4_128_MD5 = (0x0004), |
79 * TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 0x0013 |
87 * - RSA key exchange, RC4_128 encryption and MD5 authentication. |
|
88 * NOTE this is included only because PEAP requires this cipher |
|
89 * suite as a mandatory. Think carefully whether this meets your |
|
90 * security requirements. |
|
91 * TLS_RSA_WITH_RC4_128_SHA = (0x0005), |
|
92 * - RSA key exchange, RC4_128 encryption and SHA1 authentication. |
|
93 * NOTE this is included only because PEAP requires this cipher |
|
94 * suite as a mandatory. Think carefully whether this meets your |
|
95 * security |
|
96 * requirements. |
|
97 * TLS_RSA_WITH_3DES_EDE_CBC_SHA = (0x000a) |
|
98 * - RSA key exchange, 3DES-EDE-CBC encryption and SHA1 |
|
99 * authentication. |
|
100 * TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA = (0x0016) |
|
101 * - Diffie-Helmann RSA key exchange, 3DES-EDE-CBC encryption and SHA1 |
|
102 * authentication. |
|
103 * TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA = (0x0013) |
|
104 * - Diffie-Helmann DSS key exchange, 3DES-EDE-CBC encryption and SHA1 |
|
105 * authentication. |
|
106 * TLS_RSA_WITH_AES_128_CBC_SHA = 0x002F |
80 * TLS_RSA_WITH_AES_128_CBC_SHA = 0x002F |
107 * - RSA key exchange, AES-128 encryption and SHA1 authentication. |
|
108 * TLS_DHE_DSS_WITH_AES_128_CBC_SHA = 0x0032 |
81 * TLS_DHE_DSS_WITH_AES_128_CBC_SHA = 0x0032 |
109 * - Diffie-Helmann DSS key exchange, AES-128-CBC encryption and SHA1 |
|
110 * authentication. |
|
111 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA = 0x0033 |
82 * TLS_DHE_RSA_WITH_AES_128_CBC_SHA = 0x0033 |
112 * - Diffie-Helmann RSA key exchange, AES-128-CBC encryption and SHA1 |
83 * TLS_DH_anon_WITH_AES_128_CBC_SHA = 0x0034 |
113 * authentication. |
|
114 * TLS_DH_anon_WITH_AES_128_CBC_SHA = 0x0034, |
|
115 * - Supported when EAP-FAST is supported |
|
116 * - Diffie-Helmann anonymous key exchange, AES-128-CBC encryption and |
|
117 * SHA1 authentication. |
|
118 */ |
84 */ |
119 CipherSuites, |
85 CipherSuites, |
120 /*! bool */ |
86 /*! bool */ |
121 PeapVersion0Allowed, |
87 PeapVersion0Allowed, |
122 /*! bool */ |
88 /*! bool */ |