Compare commits
48 Commits
Author | SHA1 | Date | |
---|---|---|---|
b44cb66b2a | |||
690a6d54d2 | |||
e7e57abf52 | |||
bda31a487f | |||
2908bc31a3 | |||
66dd2bf283 | |||
527d4271b1 | |||
36f6d04906 | |||
e8758e9c41 | |||
058ec398e6 | |||
5b79f5d849 | |||
6f049d2692 | |||
964bf4032a | |||
87e2296dde | |||
6284b6c29e | |||
260b78025c | |||
6b81ea51d3 | |||
a07eb48174 | |||
0ec0e3579e | |||
a78901cb63 | |||
27ae8baf3a | |||
dd3da2f41a | |||
6f3aa650b6 | |||
191e4abd9c | |||
386d852859 | |||
7977d04281 | |||
b632f0202f | |||
57372b8f95 | |||
172cd18c16 | |||
cfc241d3a6 | |||
4c1d4b0580 | |||
d508a6c398 | |||
f9083dc300 | |||
0b358acba7 | |||
cbe831f9f6 | |||
d7795ef054 | |||
9b41c73e9d | |||
e8d231d360 | |||
f6522b8fa7 | |||
25934dd8c7 | |||
4b4578fd59 | |||
4ec366b23b | |||
4b40c4d217 | |||
a2a87ddc4c | |||
bd73ea7914 | |||
5fada1b6a9 | |||
5f28fc873c | |||
2cb9453209 |
1
Doxyfile
1
Doxyfile
@@ -794,6 +794,7 @@ EXCLUDE = \
|
|||||||
EventMonitor\res \
|
EventMonitor\res \
|
||||||
lib\EAPBase_UI\res \
|
lib\EAPBase_UI\res \
|
||||||
lib\EapHost_UI\res \
|
lib\EapHost_UI\res \
|
||||||
|
lib\GTC_UI\res \
|
||||||
lib\TLS_UI\res \
|
lib\TLS_UI\res \
|
||||||
lib\TTLS_UI\res \
|
lib\TTLS_UI\res \
|
||||||
lib\WinStd \
|
lib\WinStd \
|
||||||
|
@@ -103,6 +103,9 @@
|
|||||||
<ProjectReference Include="..\..\lib\Events\build\Events.vcxproj">
|
<ProjectReference Include="..\..\lib\Events\build\Events.vcxproj">
|
||||||
<Project>{d63f24bd-92a0-4d6b-8b69-ed947e4d2b1b}</Project>
|
<Project>{d63f24bd-92a0-4d6b-8b69-ed947e4d2b1b}</Project>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
|
<ProjectReference Include="..\..\lib\GTC\build\GTC.vcxproj">
|
||||||
|
<Project>{114a70bb-8698-4a0c-8c90-58f22edd8129}</Project>
|
||||||
|
</ProjectReference>
|
||||||
<ProjectReference Include="..\..\lib\MSCHAPv2\build\MSCHAPv2.vcxproj">
|
<ProjectReference Include="..\..\lib\MSCHAPv2\build\MSCHAPv2.vcxproj">
|
||||||
<Project>{86a6d6a0-4b7d-4134-be81-a5755c77584d}</Project>
|
<Project>{86a6d6a0-4b7d-4134-be81-a5755c77584d}</Project>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
|
@@ -109,6 +109,12 @@
|
|||||||
<ProjectReference Include="..\..\lib\Events\build\Events.vcxproj">
|
<ProjectReference Include="..\..\lib\Events\build\Events.vcxproj">
|
||||||
<Project>{d63f24bd-92a0-4d6b-8b69-ed947e4d2b1b}</Project>
|
<Project>{d63f24bd-92a0-4d6b-8b69-ed947e4d2b1b}</Project>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
|
<ProjectReference Include="..\..\lib\GTC\build\GTC.vcxproj">
|
||||||
|
<Project>{114a70bb-8698-4a0c-8c90-58f22edd8129}</Project>
|
||||||
|
</ProjectReference>
|
||||||
|
<ProjectReference Include="..\..\lib\GTC_UI\build\GTC_UI.vcxproj">
|
||||||
|
<Project>{34680813-3a52-46fb-b5a8-1e4bbf770855}</Project>
|
||||||
|
</ProjectReference>
|
||||||
<ProjectReference Include="..\..\lib\MSCHAPv2\build\MSCHAPv2.vcxproj">
|
<ProjectReference Include="..\..\lib\MSCHAPv2\build\MSCHAPv2.vcxproj">
|
||||||
<Project>{86a6d6a0-4b7d-4134-be81-a5755c77584d}</Project>
|
<Project>{86a6d6a0-4b7d-4134-be81-a5755c77584d}</Project>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -439,7 +439,7 @@ msgid "Use my true user name"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/TTLS_UI/res/wxTTLS_UI.cpp:40
|
#: lib/TTLS_UI/res/wxTTLS_UI.cpp:40
|
||||||
msgid "Use &empty outer identity (RFC 4822)"
|
msgid "Use &empty outer identity"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/TTLS_UI/res/wxTTLS_UI.cpp:41
|
#: lib/TTLS_UI/res/wxTTLS_UI.cpp:41
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: EventMonitor\n"
|
"Project-Id-Version: EventMonitor\n"
|
||||||
"POT-Creation-Date: 2016-11-08 11:55+0100\n"
|
"POT-Creation-Date: 2017-02-02 18:14+0100\n"
|
||||||
"PO-Revision-Date: 2016-06-02 12:27+0200\n"
|
"PO-Revision-Date: 2016-06-02 12:27+0200\n"
|
||||||
"Last-Translator: Simon Rozman <simon.rozman@amebis.si>\n"
|
"Last-Translator: Simon Rozman <simon.rozman@amebis.si>\n"
|
||||||
"Language-Team: Amebis, d. o. o., Kamnik <info@amebis.si>\n"
|
"Language-Team: Amebis, d. o. o., Kamnik <info@amebis.si>\n"
|
||||||
@@ -16,10 +16,12 @@ msgstr ""
|
|||||||
"X-Poedit-SourceCharset: UTF-8\n"
|
"X-Poedit-SourceCharset: UTF-8\n"
|
||||||
"X-Poedit-KeywordsList: _\n"
|
"X-Poedit-KeywordsList: _\n"
|
||||||
"X-Poedit-SearchPath-0: master/EventMonitor\n"
|
"X-Poedit-SearchPath-0: master/EventMonitor\n"
|
||||||
"X-Poedit-SearchPath-1: ver1.0/EventMonitor\n"
|
"X-Poedit-SearchPath-1: ver1.1/EventMonitor\n"
|
||||||
|
"X-Poedit-SearchPath-2: ver1.0/EventMonitor\n"
|
||||||
|
|
||||||
#: master/EventMonitor/App.cpp:61 ver1.0/EventMonitor/App.cpp:61
|
#: master/EventMonitor/App.cpp:61 ver1.0/EventMonitor/App.cpp:61
|
||||||
#: master/EventMonitor/Frame.h:75 ver1.0/EventMonitor/Frame.h:75
|
#: ver1.1/EventMonitor/App.cpp:61 master/EventMonitor/Frame.h:75
|
||||||
|
#: ver1.0/EventMonitor/Frame.h:75 ver1.1/EventMonitor/Frame.h:75
|
||||||
#: master/EventMonitor/MSIBuild/en_US.Win32.Debug.Feature-2.idtx:4
|
#: master/EventMonitor/MSIBuild/en_US.Win32.Debug.Feature-2.idtx:4
|
||||||
#: master/EventMonitor/MSIBuild/en_US.Win32.Release.Feature-2.idtx:4
|
#: master/EventMonitor/MSIBuild/en_US.Win32.Release.Feature-2.idtx:4
|
||||||
#: master/EventMonitor/MSIBuild/en_US.x64.Debug.Feature-2.idtx:4
|
#: master/EventMonitor/MSIBuild/en_US.x64.Debug.Feature-2.idtx:4
|
||||||
@@ -28,44 +30,57 @@ msgstr ""
|
|||||||
#: ver1.0/EventMonitor/MSIBuild/en_US.Win32.Release.Feature-2.idtx:4
|
#: ver1.0/EventMonitor/MSIBuild/en_US.Win32.Release.Feature-2.idtx:4
|
||||||
#: ver1.0/EventMonitor/MSIBuild/en_US.x64.Debug.Feature-2.idtx:4
|
#: ver1.0/EventMonitor/MSIBuild/en_US.x64.Debug.Feature-2.idtx:4
|
||||||
#: ver1.0/EventMonitor/MSIBuild/en_US.x64.Release.Feature-2.idtx:4
|
#: ver1.0/EventMonitor/MSIBuild/en_US.x64.Release.Feature-2.idtx:4
|
||||||
|
#: ver1.1/EventMonitor/MSIBuild/en_US.Win32.Debug.Feature-2.idtx:4
|
||||||
|
#: ver1.1/EventMonitor/MSIBuild/en_US.Win32.Release.Feature-2.idtx:4
|
||||||
|
#: ver1.1/EventMonitor/MSIBuild/en_US.x64.Debug.Feature-2.idtx:4
|
||||||
|
#: ver1.1/EventMonitor/MSIBuild/en_US.x64.Release.Feature-2.idtx:4
|
||||||
msgid "Event Monitor"
|
msgid "Event Monitor"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/ETWLog.cpp:83 ver1.0/EventMonitor/ETWLog.cpp:83
|
#: master/EventMonitor/ETWLog.cpp:83 ver1.0/EventMonitor/ETWLog.cpp:83
|
||||||
|
#: ver1.1/EventMonitor/ETWLog.cpp:83
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Error opening event trace (error %u)."
|
msgid "Error opening event trace (error %u)."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/ETWLog.cpp:171 ver1.0/EventMonitor/ETWLog.cpp:171
|
#: master/EventMonitor/ETWLog.cpp:171 ver1.0/EventMonitor/ETWLog.cpp:171
|
||||||
|
#: ver1.1/EventMonitor/ETWLog.cpp:171
|
||||||
msgid "Time"
|
msgid "Time"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/ETWLog.cpp:172 ver1.0/EventMonitor/ETWLog.cpp:172
|
#: master/EventMonitor/ETWLog.cpp:172 ver1.0/EventMonitor/ETWLog.cpp:172
|
||||||
|
#: ver1.1/EventMonitor/ETWLog.cpp:172
|
||||||
msgid "PID"
|
msgid "PID"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/ETWLog.cpp:173 ver1.0/EventMonitor/ETWLog.cpp:173
|
#: master/EventMonitor/ETWLog.cpp:173 ver1.0/EventMonitor/ETWLog.cpp:173
|
||||||
|
#: ver1.1/EventMonitor/ETWLog.cpp:173
|
||||||
msgid "TID"
|
msgid "TID"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/ETWLog.cpp:174 ver1.0/EventMonitor/ETWLog.cpp:174
|
#: master/EventMonitor/ETWLog.cpp:174 ver1.0/EventMonitor/ETWLog.cpp:174
|
||||||
|
#: ver1.1/EventMonitor/ETWLog.cpp:174
|
||||||
msgid "Source"
|
msgid "Source"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/ETWLog.cpp:175 ver1.0/EventMonitor/ETWLog.cpp:175
|
#: master/EventMonitor/ETWLog.cpp:175 ver1.0/EventMonitor/ETWLog.cpp:175
|
||||||
|
#: ver1.1/EventMonitor/ETWLog.cpp:175
|
||||||
msgid "Event"
|
msgid "Event"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/ETWLog.cpp:232 ver1.0/EventMonitor/ETWLog.cpp:232
|
#: master/EventMonitor/ETWLog.cpp:232 ver1.0/EventMonitor/ETWLog.cpp:232
|
||||||
|
#: ver1.1/EventMonitor/ETWLog.cpp:232
|
||||||
msgid "Access denied creating event session: you need administrative privileges (Run As Administrator) or be a member of Performance Log Users group to start event tracing session."
|
msgid "Access denied creating event session: you need administrative privileges (Run As Administrator) or be a member of Performance Log Users group to start event tracing session."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/ETWLog.cpp:235 ver1.0/EventMonitor/ETWLog.cpp:235
|
#: master/EventMonitor/ETWLog.cpp:235 ver1.0/EventMonitor/ETWLog.cpp:235
|
||||||
|
#: ver1.1/EventMonitor/ETWLog.cpp:235
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "The %s event session already exists."
|
msgid "The %s event session already exists."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/ETWLog.cpp:239 ver1.0/EventMonitor/ETWLog.cpp:239
|
#: master/EventMonitor/ETWLog.cpp:239 ver1.0/EventMonitor/ETWLog.cpp:239
|
||||||
|
#: ver1.1/EventMonitor/ETWLog.cpp:239
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Error creating event session (error %u)."
|
msgid "Error creating event session (error %u)."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -73,6 +88,8 @@ msgstr ""
|
|||||||
#: master/EventMonitor/ETWLog.cpp:255 master/EventMonitor/ETWLog.cpp:271
|
#: master/EventMonitor/ETWLog.cpp:255 master/EventMonitor/ETWLog.cpp:271
|
||||||
#: master/EventMonitor/ETWLog.cpp:285 ver1.0/EventMonitor/ETWLog.cpp:255
|
#: master/EventMonitor/ETWLog.cpp:285 ver1.0/EventMonitor/ETWLog.cpp:255
|
||||||
#: ver1.0/EventMonitor/ETWLog.cpp:271 ver1.0/EventMonitor/ETWLog.cpp:285
|
#: ver1.0/EventMonitor/ETWLog.cpp:271 ver1.0/EventMonitor/ETWLog.cpp:285
|
||||||
|
#: ver1.1/EventMonitor/ETWLog.cpp:255 ver1.1/EventMonitor/ETWLog.cpp:271
|
||||||
|
#: ver1.1/EventMonitor/ETWLog.cpp:285
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Error enabling %s event provider (error %u)."
|
msgid "Error enabling %s event provider (error %u)."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -82,128 +99,157 @@ msgstr ""
|
|||||||
#: master/EventMonitor/Frame.cpp:170 ver1.0/EventMonitor/Frame.cpp:48
|
#: master/EventMonitor/Frame.cpp:170 ver1.0/EventMonitor/Frame.cpp:48
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:108 ver1.0/EventMonitor/Frame.cpp:113
|
#: ver1.0/EventMonitor/Frame.cpp:108 ver1.0/EventMonitor/Frame.cpp:113
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:168 ver1.0/EventMonitor/Frame.cpp:170
|
#: ver1.0/EventMonitor/Frame.cpp:168 ver1.0/EventMonitor/Frame.cpp:170
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:48 ver1.1/EventMonitor/Frame.cpp:108
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:113 ver1.1/EventMonitor/Frame.cpp:168
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:170
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Toggles display of %s records"
|
msgid "Toggles display of %s records"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:65 ver1.0/EventMonitor/Frame.cpp:65
|
#: master/EventMonitor/Frame.cpp:65 ver1.0/EventMonitor/Frame.cpp:65
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:65
|
||||||
msgid "E&xit"
|
msgid "E&xit"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:65 ver1.0/EventMonitor/Frame.cpp:65
|
#: master/EventMonitor/Frame.cpp:65 ver1.0/EventMonitor/Frame.cpp:65
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:65
|
||||||
msgid "Quits this program"
|
msgid "Quits this program"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:69 ver1.0/EventMonitor/Frame.cpp:69
|
#: master/EventMonitor/Frame.cpp:69 ver1.0/EventMonitor/Frame.cpp:69
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:69
|
||||||
msgid "&Program"
|
msgid "&Program"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:73 ver1.0/EventMonitor/Frame.cpp:73
|
#: master/EventMonitor/Frame.cpp:73 ver1.0/EventMonitor/Frame.cpp:73
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:73
|
||||||
msgid "&Copy"
|
msgid "&Copy"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:73 master/EventMonitor/Frame.cpp:154
|
#: master/EventMonitor/Frame.cpp:73 master/EventMonitor/Frame.cpp:154
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:73 ver1.0/EventMonitor/Frame.cpp:154
|
#: ver1.0/EventMonitor/Frame.cpp:73 ver1.0/EventMonitor/Frame.cpp:154
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:73 ver1.1/EventMonitor/Frame.cpp:154
|
||||||
msgid "Copies selected records to clipboard"
|
msgid "Copies selected records to clipboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:78 ver1.0/EventMonitor/Frame.cpp:78
|
#: master/EventMonitor/Frame.cpp:78 ver1.0/EventMonitor/Frame.cpp:78
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:78
|
||||||
msgid "Copy A&ll"
|
msgid "Copy A&ll"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:78 master/EventMonitor/Frame.cpp:156
|
#: master/EventMonitor/Frame.cpp:78 master/EventMonitor/Frame.cpp:156
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:78 ver1.0/EventMonitor/Frame.cpp:156
|
#: ver1.0/EventMonitor/Frame.cpp:78 ver1.0/EventMonitor/Frame.cpp:156
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:78 ver1.1/EventMonitor/Frame.cpp:156
|
||||||
msgid "Copies all records to clipboard (including hidden)"
|
msgid "Copies all records to clipboard (including hidden)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:83 master/EventMonitor/Frame.cpp:158
|
#: master/EventMonitor/Frame.cpp:83 master/EventMonitor/Frame.cpp:158
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:83 ver1.0/EventMonitor/Frame.cpp:158
|
#: ver1.0/EventMonitor/Frame.cpp:83 ver1.0/EventMonitor/Frame.cpp:158
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:83 ver1.1/EventMonitor/Frame.cpp:158
|
||||||
msgid "Clear"
|
msgid "Clear"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:83 master/EventMonitor/Frame.cpp:158
|
#: master/EventMonitor/Frame.cpp:83 master/EventMonitor/Frame.cpp:158
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:83 ver1.0/EventMonitor/Frame.cpp:158
|
#: ver1.0/EventMonitor/Frame.cpp:83 ver1.0/EventMonitor/Frame.cpp:158
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:83 ver1.1/EventMonitor/Frame.cpp:158
|
||||||
msgid "Clears all records from the log"
|
msgid "Clears all records from the log"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:90 ver1.0/EventMonitor/Frame.cpp:90
|
#: master/EventMonitor/Frame.cpp:90 ver1.0/EventMonitor/Frame.cpp:90
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:90
|
||||||
msgid "Select &All"
|
msgid "Select &All"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:90 ver1.0/EventMonitor/Frame.cpp:90
|
#: master/EventMonitor/Frame.cpp:90 ver1.0/EventMonitor/Frame.cpp:90
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:90
|
||||||
msgid "Selects all visible records"
|
msgid "Selects all visible records"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:94 ver1.0/EventMonitor/Frame.cpp:94
|
#: master/EventMonitor/Frame.cpp:94 ver1.0/EventMonitor/Frame.cpp:94
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:94
|
||||||
msgid "Select &None"
|
msgid "Select &None"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:94 ver1.0/EventMonitor/Frame.cpp:94
|
#: master/EventMonitor/Frame.cpp:94 ver1.0/EventMonitor/Frame.cpp:94
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:94
|
||||||
msgid "Clears record selection"
|
msgid "Clears record selection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:97 master/EventMonitor/Frame.cpp:142
|
#: master/EventMonitor/Frame.cpp:97 master/EventMonitor/Frame.cpp:142
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:97 ver1.0/EventMonitor/Frame.cpp:142
|
#: ver1.0/EventMonitor/Frame.cpp:97 ver1.0/EventMonitor/Frame.cpp:142
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:97 ver1.1/EventMonitor/Frame.cpp:142
|
||||||
msgid "&Edit"
|
msgid "&Edit"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:101 ver1.0/EventMonitor/Frame.cpp:101
|
#: master/EventMonitor/Frame.cpp:101 ver1.0/EventMonitor/Frame.cpp:101
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:101
|
||||||
msgid "Auto &Scroll"
|
msgid "Auto &Scroll"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:101 master/EventMonitor/Frame.cpp:164
|
#: master/EventMonitor/Frame.cpp:101 master/EventMonitor/Frame.cpp:164
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:101 ver1.0/EventMonitor/Frame.cpp:164
|
#: ver1.0/EventMonitor/Frame.cpp:101 ver1.0/EventMonitor/Frame.cpp:164
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:101 ver1.1/EventMonitor/Frame.cpp:164
|
||||||
msgid "Automatically scrolls to the most recent records as they come-in"
|
msgid "Automatically scrolls to the most recent records as they come-in"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:123 master/EventMonitor/Frame.cpp:176
|
#: master/EventMonitor/Frame.cpp:123 master/EventMonitor/Frame.cpp:176
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:123 ver1.0/EventMonitor/Frame.cpp:176
|
#: ver1.0/EventMonitor/Frame.cpp:123 ver1.0/EventMonitor/Frame.cpp:176
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:123 ver1.1/EventMonitor/Frame.cpp:176
|
||||||
msgid "Verbose"
|
msgid "Verbose"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:123 master/EventMonitor/Frame.cpp:176
|
#: master/EventMonitor/Frame.cpp:123 master/EventMonitor/Frame.cpp:176
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:123 ver1.0/EventMonitor/Frame.cpp:176
|
#: ver1.0/EventMonitor/Frame.cpp:123 ver1.0/EventMonitor/Frame.cpp:176
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:123 ver1.1/EventMonitor/Frame.cpp:176
|
||||||
msgid "Displays all levels of records"
|
msgid "Displays all levels of records"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:127 master/EventMonitor/Frame.cpp:178
|
#: master/EventMonitor/Frame.cpp:127 master/EventMonitor/Frame.cpp:178
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:127 ver1.0/EventMonitor/Frame.cpp:178
|
#: ver1.0/EventMonitor/Frame.cpp:127 ver1.0/EventMonitor/Frame.cpp:178
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:127 ver1.1/EventMonitor/Frame.cpp:178
|
||||||
msgid "Informational"
|
msgid "Informational"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:127 master/EventMonitor/Frame.cpp:178
|
#: master/EventMonitor/Frame.cpp:127 master/EventMonitor/Frame.cpp:178
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:127 ver1.0/EventMonitor/Frame.cpp:178
|
#: ver1.0/EventMonitor/Frame.cpp:127 ver1.0/EventMonitor/Frame.cpp:178
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:127 ver1.1/EventMonitor/Frame.cpp:178
|
||||||
msgid "Displays all records up to informational level"
|
msgid "Displays all records up to informational level"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:131 master/EventMonitor/Frame.cpp:180
|
#: master/EventMonitor/Frame.cpp:131 master/EventMonitor/Frame.cpp:180
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:131 ver1.0/EventMonitor/Frame.cpp:180
|
#: ver1.0/EventMonitor/Frame.cpp:131 ver1.0/EventMonitor/Frame.cpp:180
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:131 ver1.1/EventMonitor/Frame.cpp:180
|
||||||
msgid "Warning"
|
msgid "Warning"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:131 master/EventMonitor/Frame.cpp:180
|
#: master/EventMonitor/Frame.cpp:131 master/EventMonitor/Frame.cpp:180
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:131 ver1.0/EventMonitor/Frame.cpp:180
|
#: ver1.0/EventMonitor/Frame.cpp:131 ver1.0/EventMonitor/Frame.cpp:180
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:131 ver1.1/EventMonitor/Frame.cpp:180
|
||||||
msgid "Displays all records up to warning level"
|
msgid "Displays all records up to warning level"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:135 master/EventMonitor/Frame.cpp:182
|
#: master/EventMonitor/Frame.cpp:135 master/EventMonitor/Frame.cpp:182
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:135 ver1.0/EventMonitor/Frame.cpp:182
|
#: ver1.0/EventMonitor/Frame.cpp:135 ver1.0/EventMonitor/Frame.cpp:182
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:135 ver1.1/EventMonitor/Frame.cpp:182
|
||||||
msgid "Error"
|
msgid "Error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:135 master/EventMonitor/Frame.cpp:182
|
#: master/EventMonitor/Frame.cpp:135 master/EventMonitor/Frame.cpp:182
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:135 ver1.0/EventMonitor/Frame.cpp:182
|
#: ver1.0/EventMonitor/Frame.cpp:135 ver1.0/EventMonitor/Frame.cpp:182
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:135 ver1.1/EventMonitor/Frame.cpp:182
|
||||||
msgid "Displays error level records only"
|
msgid "Displays error level records only"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:142 master/EventMonitor/Frame.cpp:146
|
#: master/EventMonitor/Frame.cpp:142 master/EventMonitor/Frame.cpp:146
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:142 ver1.0/EventMonitor/Frame.cpp:146
|
#: ver1.0/EventMonitor/Frame.cpp:142 ver1.0/EventMonitor/Frame.cpp:146
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:142 ver1.1/EventMonitor/Frame.cpp:146
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%s toolbar"
|
msgid "%s toolbar"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:142 master/EventMonitor/Frame.cpp:146
|
#: master/EventMonitor/Frame.cpp:142 master/EventMonitor/Frame.cpp:146
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:142 ver1.0/EventMonitor/Frame.cpp:146
|
#: ver1.0/EventMonitor/Frame.cpp:142 ver1.0/EventMonitor/Frame.cpp:146
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:142 ver1.1/EventMonitor/Frame.cpp:146
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Toggles display of %s toolbar"
|
msgid "Toggles display of %s toolbar"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -211,31 +257,39 @@ msgstr ""
|
|||||||
#: master/EventMonitor/Frame.cpp:142 master/EventMonitor/Frame.cpp:146
|
#: master/EventMonitor/Frame.cpp:142 master/EventMonitor/Frame.cpp:146
|
||||||
#: master/EventMonitor/Frame.cpp:185 ver1.0/EventMonitor/Frame.cpp:142
|
#: master/EventMonitor/Frame.cpp:185 ver1.0/EventMonitor/Frame.cpp:142
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:146 ver1.0/EventMonitor/Frame.cpp:185
|
#: ver1.0/EventMonitor/Frame.cpp:146 ver1.0/EventMonitor/Frame.cpp:185
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:142 ver1.1/EventMonitor/Frame.cpp:146
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:185
|
||||||
msgid "View"
|
msgid "View"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:146 master/EventMonitor/Frame.cpp:149
|
#: master/EventMonitor/Frame.cpp:146 master/EventMonitor/Frame.cpp:149
|
||||||
#: ver1.0/EventMonitor/Frame.cpp:146 ver1.0/EventMonitor/Frame.cpp:149
|
#: ver1.0/EventMonitor/Frame.cpp:146 ver1.0/EventMonitor/Frame.cpp:149
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:146 ver1.1/EventMonitor/Frame.cpp:149
|
||||||
msgid "&View"
|
msgid "&View"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:154 ver1.0/EventMonitor/Frame.cpp:154
|
#: master/EventMonitor/Frame.cpp:154 ver1.0/EventMonitor/Frame.cpp:154
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:154
|
||||||
msgid "Copy"
|
msgid "Copy"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:156 ver1.0/EventMonitor/Frame.cpp:156
|
#: master/EventMonitor/Frame.cpp:156 ver1.0/EventMonitor/Frame.cpp:156
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:156
|
||||||
msgid "Copy All"
|
msgid "Copy All"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:161 ver1.0/EventMonitor/Frame.cpp:161
|
#: master/EventMonitor/Frame.cpp:161 ver1.0/EventMonitor/Frame.cpp:161
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:161
|
||||||
msgid "Edit"
|
msgid "Edit"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:164 ver1.0/EventMonitor/Frame.cpp:164
|
#: master/EventMonitor/Frame.cpp:164 ver1.0/EventMonitor/Frame.cpp:164
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:164
|
||||||
msgid "Auto Scroll"
|
msgid "Auto Scroll"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: master/EventMonitor/Frame.cpp:189 ver1.0/EventMonitor/Frame.cpp:189
|
#: master/EventMonitor/Frame.cpp:189 ver1.0/EventMonitor/Frame.cpp:189
|
||||||
|
#: ver1.1/EventMonitor/Frame.cpp:189
|
||||||
msgid "Trace Log"
|
msgid "Trace Log"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -255,6 +309,14 @@ msgstr ""
|
|||||||
#: ver1.0/EventMonitor/MSIBuild/en_US.x64.Debug.Shortcut-2.idtx:4
|
#: ver1.0/EventMonitor/MSIBuild/en_US.x64.Debug.Shortcut-2.idtx:4
|
||||||
#: ver1.0/EventMonitor/MSIBuild/en_US.x64.Release.Feature-2.idtx:4
|
#: ver1.0/EventMonitor/MSIBuild/en_US.x64.Release.Feature-2.idtx:4
|
||||||
#: ver1.0/EventMonitor/MSIBuild/en_US.x64.Release.Shortcut-2.idtx:4
|
#: ver1.0/EventMonitor/MSIBuild/en_US.x64.Release.Shortcut-2.idtx:4
|
||||||
|
#: ver1.1/EventMonitor/MSIBuild/en_US.Win32.Debug.Feature-2.idtx:4
|
||||||
|
#: ver1.1/EventMonitor/MSIBuild/en_US.Win32.Debug.Shortcut-2.idtx:4
|
||||||
|
#: ver1.1/EventMonitor/MSIBuild/en_US.Win32.Release.Feature-2.idtx:4
|
||||||
|
#: ver1.1/EventMonitor/MSIBuild/en_US.Win32.Release.Shortcut-2.idtx:4
|
||||||
|
#: ver1.1/EventMonitor/MSIBuild/en_US.x64.Debug.Feature-2.idtx:4
|
||||||
|
#: ver1.1/EventMonitor/MSIBuild/en_US.x64.Debug.Shortcut-2.idtx:4
|
||||||
|
#: ver1.1/EventMonitor/MSIBuild/en_US.x64.Release.Feature-2.idtx:4
|
||||||
|
#: ver1.1/EventMonitor/MSIBuild/en_US.x64.Release.Shortcut-2.idtx:4
|
||||||
msgid "Real-time display of internal events"
|
msgid "Real-time display of internal events"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -266,5 +328,9 @@ msgstr ""
|
|||||||
#: ver1.0/EventMonitor/MSIBuild/en_US.Win32.Release.Shortcut-2.idtx:4
|
#: ver1.0/EventMonitor/MSIBuild/en_US.Win32.Release.Shortcut-2.idtx:4
|
||||||
#: ver1.0/EventMonitor/MSIBuild/en_US.x64.Debug.Shortcut-2.idtx:4
|
#: ver1.0/EventMonitor/MSIBuild/en_US.x64.Debug.Shortcut-2.idtx:4
|
||||||
#: ver1.0/EventMonitor/MSIBuild/en_US.x64.Release.Shortcut-2.idtx:4
|
#: ver1.0/EventMonitor/MSIBuild/en_US.x64.Release.Shortcut-2.idtx:4
|
||||||
|
#: ver1.1/EventMonitor/MSIBuild/en_US.Win32.Debug.Shortcut-2.idtx:4
|
||||||
|
#: ver1.1/EventMonitor/MSIBuild/en_US.Win32.Release.Shortcut-2.idtx:4
|
||||||
|
#: ver1.1/EventMonitor/MSIBuild/en_US.x64.Debug.Shortcut-2.idtx:4
|
||||||
|
#: ver1.1/EventMonitor/MSIBuild/en_US.x64.Release.Shortcut-2.idtx:4
|
||||||
msgid "EVENTM~1|GÉANTLink Event Monitor"
|
msgid "EVENTM~1|GÉANTLink Event Monitor"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
Binary file not shown.
@@ -2,7 +2,7 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: GÉANTLink MSI\n"
|
"Project-Id-Version: GÉANTLink MSI\n"
|
||||||
"POT-Creation-Date: 2016-11-08 11:55+0100\n"
|
"POT-Creation-Date: 2017-02-02 18:14+0100\n"
|
||||||
"PO-Revision-Date: 2016-06-02 12:27+0200\n"
|
"PO-Revision-Date: 2016-06-02 12:27+0200\n"
|
||||||
"Last-Translator: Simon Rozman <simon.rozman@amebis.si>\n"
|
"Last-Translator: Simon Rozman <simon.rozman@amebis.si>\n"
|
||||||
"Language-Team: Amebis, d. o. o., Kamnik <info@amebis.si>\n"
|
"Language-Team: Amebis, d. o. o., Kamnik <info@amebis.si>\n"
|
||||||
@@ -16,7 +16,8 @@ msgstr ""
|
|||||||
"X-Poedit-SourceCharset: UTF-8\n"
|
"X-Poedit-SourceCharset: UTF-8\n"
|
||||||
"X-Poedit-KeywordsList: _\n"
|
"X-Poedit-KeywordsList: _\n"
|
||||||
"X-Poedit-SearchPath-0: master/MSI/Base/Main\n"
|
"X-Poedit-SearchPath-0: master/MSI/Base/Main\n"
|
||||||
"X-Poedit-SearchPath-1: ver1.0/MSI/Base/Main\n"
|
"X-Poedit-SearchPath-1: ver1.1/MSI/Base/Main\n"
|
||||||
|
"X-Poedit-SearchPath-2: ver1.0/MSI/Base/Main\n"
|
||||||
|
|
||||||
#: master/MSI/Base/Main/en_US.Win32.Debug.LaunchCondition-2.idtx:4
|
#: master/MSI/Base/Main/en_US.Win32.Debug.LaunchCondition-2.idtx:4
|
||||||
#: master/MSI/Base/Main/en_US.Win32.Release.LaunchCondition-2.idtx:4
|
#: master/MSI/Base/Main/en_US.Win32.Release.LaunchCondition-2.idtx:4
|
||||||
@@ -26,6 +27,10 @@ msgstr ""
|
|||||||
#: ver1.0/MSI/Base/Main/en_US.Win32.Release.LaunchCondition-2.idtx:4
|
#: ver1.0/MSI/Base/Main/en_US.Win32.Release.LaunchCondition-2.idtx:4
|
||||||
#: ver1.0/MSI/Base/Main/en_US.x64.Debug.LaunchCondition-2.idtx:4
|
#: ver1.0/MSI/Base/Main/en_US.x64.Debug.LaunchCondition-2.idtx:4
|
||||||
#: ver1.0/MSI/Base/Main/en_US.x64.Release.LaunchCondition-2.idtx:4
|
#: ver1.0/MSI/Base/Main/en_US.x64.Release.LaunchCondition-2.idtx:4
|
||||||
|
#: ver1.1/MSI/Base/Main/en_US.Win32.Debug.LaunchCondition-2.idtx:4
|
||||||
|
#: ver1.1/MSI/Base/Main/en_US.Win32.Release.LaunchCondition-2.idtx:4
|
||||||
|
#: ver1.1/MSI/Base/Main/en_US.x64.Debug.LaunchCondition-2.idtx:4
|
||||||
|
#: ver1.1/MSI/Base/Main/en_US.x64.Release.LaunchCondition-2.idtx:4
|
||||||
msgid "[ProductName] requires Windows Vista or later version of Windows."
|
msgid "[ProductName] requires Windows Vista or later version of Windows."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -45,6 +50,14 @@ msgstr ""
|
|||||||
#: ver1.0/MSI/Base/Main/en_US.x64.Debug.Property-2.idtx:5
|
#: ver1.0/MSI/Base/Main/en_US.x64.Debug.Property-2.idtx:5
|
||||||
#: ver1.0/MSI/Base/Main/en_US.x64.Release.Property-2.idtx:4
|
#: ver1.0/MSI/Base/Main/en_US.x64.Release.Property-2.idtx:4
|
||||||
#: ver1.0/MSI/Base/Main/en_US.x64.Release.Property-2.idtx:5
|
#: ver1.0/MSI/Base/Main/en_US.x64.Release.Property-2.idtx:5
|
||||||
|
#: ver1.1/MSI/Base/Main/en_US.Win32.Debug.Property-2.idtx:4
|
||||||
|
#: ver1.1/MSI/Base/Main/en_US.Win32.Debug.Property-2.idtx:5
|
||||||
|
#: ver1.1/MSI/Base/Main/en_US.Win32.Release.Property-2.idtx:4
|
||||||
|
#: ver1.1/MSI/Base/Main/en_US.Win32.Release.Property-2.idtx:5
|
||||||
|
#: ver1.1/MSI/Base/Main/en_US.x64.Debug.Property-2.idtx:4
|
||||||
|
#: ver1.1/MSI/Base/Main/en_US.x64.Debug.Property-2.idtx:5
|
||||||
|
#: ver1.1/MSI/Base/Main/en_US.x64.Release.Property-2.idtx:4
|
||||||
|
#: ver1.1/MSI/Base/Main/en_US.x64.Release.Property-2.idtx:5
|
||||||
msgid "http://www.geant.org/"
|
msgid "http://www.geant.org/"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -56,5 +69,9 @@ msgstr ""
|
|||||||
#: ver1.0/MSI/Base/Main/en_US.Win32.Release.Property-2.idtx:6
|
#: ver1.0/MSI/Base/Main/en_US.Win32.Release.Property-2.idtx:6
|
||||||
#: ver1.0/MSI/Base/Main/en_US.x64.Debug.Property-2.idtx:6
|
#: ver1.0/MSI/Base/Main/en_US.x64.Debug.Property-2.idtx:6
|
||||||
#: ver1.0/MSI/Base/Main/en_US.x64.Release.Property-2.idtx:6
|
#: ver1.0/MSI/Base/Main/en_US.x64.Release.Property-2.idtx:6
|
||||||
|
#: ver1.1/MSI/Base/Main/en_US.Win32.Debug.Property-2.idtx:6
|
||||||
|
#: ver1.1/MSI/Base/Main/en_US.Win32.Release.Property-2.idtx:6
|
||||||
|
#: ver1.1/MSI/Base/Main/en_US.x64.Debug.Property-2.idtx:6
|
||||||
|
#: ver1.1/MSI/Base/Main/en_US.x64.Release.Property-2.idtx:6
|
||||||
msgid "https://github.com/Amebis/GEANTLink/releases"
|
msgid "https://github.com/Amebis/GEANTLink/releases"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
13
README.md
13
README.md
@@ -9,6 +9,7 @@ Suite of EAP supplicants for Microsoft Windows - IEEE 802.1X plug-ins for enterp
|
|||||||
- PAP
|
- PAP
|
||||||
- MSCHAPv2
|
- MSCHAPv2
|
||||||
- EAP-MSCHAPv2
|
- EAP-MSCHAPv2
|
||||||
|
- EAP-GTC: Challenge/Response and Password authentication modes
|
||||||
- System-installed EAP method chaining (experimental)
|
- System-installed EAP method chaining (experimental)
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
@@ -30,12 +31,9 @@ Suite of EAP supplicants for Microsoft Windows - IEEE 802.1X plug-ins for enterp
|
|||||||
|
|
||||||
### Deployment
|
### Deployment
|
||||||
- Released as multi-lingual 32 and 64-bit MSI packages
|
- Released as multi-lingual 32 and 64-bit MSI packages
|
||||||
- [MsiUseFeature utility](https://github.com/Amebis/GEANTLink/tree/ver1.1/MsiUseFeature) for GÉANTLink install state testing (for embedding GÉANTLink into other setup packages)
|
- [MsiUseFeature utility](https://github.com/Amebis/GEANTLink/tree/master/MsiUseFeature) for GÉANTLink install state testing (for embedding GÉANTLink into other setup packages)
|
||||||
- [CredWrite utility](https://github.com/Amebis/GEANTLink/tree/ver1.1/CredWrite) for automated user credential import to Credential Manager
|
- [CredWrite utility](https://github.com/Amebis/GEANTLink/tree/master/CredWrite) for automated user credential import to Credential Manager
|
||||||
- [WLANManager utility](https://github.com/Amebis/GEANTLink/tree/ver1.1/WLANManager) to allow network profile configuration dialog shortcuts
|
- [WLANManager utility](https://github.com/Amebis/GEANTLink/tree/master/WLANManager) to allow network profile configuration dialog shortcuts
|
||||||
|
|
||||||
## Download
|
|
||||||
Binaries are available for download [here](https://github.com/Amebis/GEANTLink/releases).
|
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
@@ -119,6 +117,3 @@ Command | Explanation
|
|||||||
`nmake SetupDebug` | Builds a debug version of project and debug MSI setup files. The resulting files can be found in `output\Setup` folder.
|
`nmake SetupDebug` | Builds a debug version of project and debug MSI setup files. The resulting files can be found in `output\Setup` folder.
|
||||||
|
|
||||||
The `/ls` flag can be appended to the commands above to reduce NMAKE’s verbosity. You can combine multiple targets (i.e. nmake Unregister Clean). Please, see NMAKE reference for further reading.
|
The `/ls` flag can be appended to the commands above to reduce NMAKE’s verbosity. You can combine multiple targets (i.e. nmake Unregister Clean). Please, see NMAKE reference for further reading.
|
||||||
|
|
||||||
### Translating into your language
|
|
||||||
GÉANTLink is fully localizable. We kindly invite you to help [translating it on Transifex](https://www.transifex.com/eduroam_devel/geantlink/).
|
|
||||||
|
@@ -55,6 +55,10 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "EapHost", "lib\EapHost\buil
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "EapHost_UI", "lib\EapHost_UI\build\EapHost_UI.vcxproj", "{13D2D8B5-F6AA-459D-B5F7-29B95DD9D583}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "EapHost_UI", "lib\EapHost_UI\build\EapHost_UI.vcxproj", "{13D2D8B5-F6AA-459D-B5F7-29B95DD9D583}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GTC", "lib\GTC\build\GTC.vcxproj", "{114A70BB-8698-4A0C-8C90-58F22EDD8129}"
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GTC_UI", "lib\GTC_UI\build\GTC_UI.vcxproj", "{34680813-3A52-46FB-B5A8-1E4BBF770855}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Win32 = Debug|Win32
|
Debug|Win32 = Debug|Win32
|
||||||
@@ -231,6 +235,22 @@ Global
|
|||||||
{13D2D8B5-F6AA-459D-B5F7-29B95DD9D583}.Release|Win32.Build.0 = Release|Win32
|
{13D2D8B5-F6AA-459D-B5F7-29B95DD9D583}.Release|Win32.Build.0 = Release|Win32
|
||||||
{13D2D8B5-F6AA-459D-B5F7-29B95DD9D583}.Release|x64.ActiveCfg = Release|x64
|
{13D2D8B5-F6AA-459D-B5F7-29B95DD9D583}.Release|x64.ActiveCfg = Release|x64
|
||||||
{13D2D8B5-F6AA-459D-B5F7-29B95DD9D583}.Release|x64.Build.0 = Release|x64
|
{13D2D8B5-F6AA-459D-B5F7-29B95DD9D583}.Release|x64.Build.0 = Release|x64
|
||||||
|
{114A70BB-8698-4A0C-8C90-58F22EDD8129}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{114A70BB-8698-4A0C-8C90-58F22EDD8129}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{114A70BB-8698-4A0C-8C90-58F22EDD8129}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{114A70BB-8698-4A0C-8C90-58F22EDD8129}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{114A70BB-8698-4A0C-8C90-58F22EDD8129}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{114A70BB-8698-4A0C-8C90-58F22EDD8129}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{114A70BB-8698-4A0C-8C90-58F22EDD8129}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{114A70BB-8698-4A0C-8C90-58F22EDD8129}.Release|x64.Build.0 = Release|x64
|
||||||
|
{34680813-3A52-46FB-B5A8-1E4BBF770855}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{34680813-3A52-46FB-B5A8-1E4BBF770855}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{34680813-3A52-46FB-B5A8-1E4BBF770855}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{34680813-3A52-46FB-B5A8-1E4BBF770855}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{34680813-3A52-46FB-B5A8-1E4BBF770855}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{34680813-3A52-46FB-B5A8-1E4BBF770855}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{34680813-3A52-46FB-B5A8-1E4BBF770855}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{34680813-3A52-46FB-B5A8-1E4BBF770855}.Release|x64.Build.0 = Release|x64
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
@@ -253,6 +273,8 @@ Global
|
|||||||
{7AF5B922-7C17-428A-97E0-09E3B41A684D} = {E66A3FE1-4EE4-401F-8EAD-BE518B230393}
|
{7AF5B922-7C17-428A-97E0-09E3B41A684D} = {E66A3FE1-4EE4-401F-8EAD-BE518B230393}
|
||||||
{B385EC2B-C3F4-48BB-9BAC-8B996DE7F754} = {E66A3FE1-4EE4-401F-8EAD-BE518B230393}
|
{B385EC2B-C3F4-48BB-9BAC-8B996DE7F754} = {E66A3FE1-4EE4-401F-8EAD-BE518B230393}
|
||||||
{13D2D8B5-F6AA-459D-B5F7-29B95DD9D583} = {E66A3FE1-4EE4-401F-8EAD-BE518B230393}
|
{13D2D8B5-F6AA-459D-B5F7-29B95DD9D583} = {E66A3FE1-4EE4-401F-8EAD-BE518B230393}
|
||||||
|
{114A70BB-8698-4A0C-8C90-58F22EDD8129} = {E66A3FE1-4EE4-401F-8EAD-BE518B230393}
|
||||||
|
{34680813-3A52-46FB-B5A8-1E4BBF770855} = {E66A3FE1-4EE4-401F-8EAD-BE518B230393}
|
||||||
{2D3CE079-7EB1-4F47-B79E-F0310671ECCB} = {7B5EC9B7-208C-426A-941D-DAF9271BD4A4}
|
{2D3CE079-7EB1-4F47-B79E-F0310671ECCB} = {7B5EC9B7-208C-426A-941D-DAF9271BD4A4}
|
||||||
{679D03C5-CD70-4FFA-93F8-A4AB3637509B} = {7B5EC9B7-208C-426A-941D-DAF9271BD4A4}
|
{679D03C5-CD70-4FFA-93F8-A4AB3637509B} = {7B5EC9B7-208C-426A-941D-DAF9271BD4A4}
|
||||||
{E0D0725B-B2FC-4225-9481-CA9B1B6306F2} = {7B5EC9B7-208C-426A-941D-DAF9271BD4A4}
|
{E0D0725B-B2FC-4225-9481-CA9B1B6306F2} = {7B5EC9B7-208C-426A-941D-DAF9271BD4A4}
|
||||||
|
@@ -90,6 +90,7 @@ static int WLANManager()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Launch WLAN profile config dialog.
|
// Launch WLAN profile config dialog.
|
||||||
|
// Note: When a debugger is attached to this process the WlanUIEditProfile() will raise an exception and fail.
|
||||||
WLAN_REASON_CODE wlrc;
|
WLAN_REASON_CODE wlrc;
|
||||||
DWORD dwResult = WlanUIEditProfile(WLAN_UI_API_VERSION, pwcArglist[2], &(interfaces->InterfaceInfo[i].InterfaceGuid), NULL, WLSecurityPage, NULL, &wlrc);
|
DWORD dwResult = WlanUIEditProfile(WLAN_UI_API_VERSION, pwcArglist[2], &(interfaces->InterfaceInfo[i].InterfaceGuid), NULL, WLSecurityPage, NULL, &wlrc);
|
||||||
if (dwResult != ERROR_SUCCESS) {
|
if (dwResult != ERROR_SUCCESS) {
|
||||||
@@ -118,26 +119,18 @@ int CALLBACK WinMain(_In_ HINSTANCE hInstance, _In_ HINSTANCE hPrevInstance, _In
|
|||||||
UNREFERENCED_PARAMETER(lpCmdLine);
|
UNREFERENCED_PARAMETER(lpCmdLine);
|
||||||
UNREFERENCED_PARAMETER(nCmdShow);
|
UNREFERENCED_PARAMETER(nCmdShow);
|
||||||
|
|
||||||
int res = 0;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
// Note: When a debugger is attached to this process, the WlanUIEditProfile() will raise an exception and fail.
|
// Initialize Windows XP visual styles
|
||||||
// It was accidentially discovered, that COM initialization resolves this issue.
|
INITCOMMONCONTROLSEX icc;
|
||||||
com_initializer com_init(NULL);
|
icc.dwSize = sizeof(INITCOMMONCONTROLSEX);
|
||||||
|
icc.dwICC = ICC_WIN95_CLASSES | ICC_STANDARD_CLASSES | ICC_LINK_CLASS;
|
||||||
{
|
InitCommonControlsEx(&icc);
|
||||||
// Initialize Windows XP visual styles
|
|
||||||
INITCOMMONCONTROLSEX icc;
|
|
||||||
icc.dwSize = sizeof(INITCOMMONCONTROLSEX);
|
|
||||||
icc.dwICC = ICC_WIN95_CLASSES | ICC_STANDARD_CLASSES | ICC_LINK_CLASS;
|
|
||||||
InitCommonControlsEx(&icc);
|
|
||||||
}
|
|
||||||
|
|
||||||
pfnWlanReasonCodeToString = WlanReasonCodeToString;
|
|
||||||
|
|
||||||
res = WLANManager();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pfnWlanReasonCodeToString = WlanReasonCodeToString;
|
||||||
|
|
||||||
|
int res = WLANManager();
|
||||||
|
|
||||||
assert(!_CrtDumpMemoryLeaks());
|
assert(!_CrtDumpMemoryLeaks());
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
@@ -16,7 +16,8 @@ msgstr ""
|
|||||||
"X-Poedit-SourceCharset: UTF-8\n"
|
"X-Poedit-SourceCharset: UTF-8\n"
|
||||||
"X-Poedit-KeywordsList: _\n"
|
"X-Poedit-KeywordsList: _\n"
|
||||||
"X-Poedit-SearchPath-0: master/WLANManager\n"
|
"X-Poedit-SearchPath-0: master/WLANManager\n"
|
||||||
"X-Poedit-SearchPath-1: ver1.0/WLANManager\n"
|
"X-Poedit-SearchPath-1: ver1.1/WLANManager\n"
|
||||||
|
"X-Poedit-SearchPath-2: ver1.0/WLANManager\n"
|
||||||
|
|
||||||
#: MSIBuild/en_US.Win32.Debug.Feature-2.idtx:4
|
#: MSIBuild/en_US.Win32.Debug.Feature-2.idtx:4
|
||||||
#: MSIBuild/en_US.Win32.Release.Feature-2.idtx:4
|
#: MSIBuild/en_US.Win32.Release.Feature-2.idtx:4
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
// Product version as a single DWORD
|
// Product version as a single DWORD
|
||||||
// Note: Used for version comparison within C/C++ code.
|
// Note: Used for version comparison within C/C++ code.
|
||||||
//
|
//
|
||||||
#define PRODUCT_VERSION 0x01010500
|
#define PRODUCT_VERSION 0x01020200
|
||||||
|
|
||||||
//
|
//
|
||||||
// Product version by components
|
// Product version by components
|
||||||
@@ -38,27 +38,27 @@
|
|||||||
// separately.
|
// separately.
|
||||||
//
|
//
|
||||||
#define PRODUCT_VERSION_MAJ 1
|
#define PRODUCT_VERSION_MAJ 1
|
||||||
#define PRODUCT_VERSION_MIN 1
|
#define PRODUCT_VERSION_MIN 2
|
||||||
#define PRODUCT_VERSION_REV 5
|
#define PRODUCT_VERSION_REV 2
|
||||||
#define PRODUCT_VERSION_BUILD 0
|
#define PRODUCT_VERSION_BUILD 0
|
||||||
|
|
||||||
//
|
//
|
||||||
// Human readable product version and build year for UI
|
// Human readable product version and build year for UI
|
||||||
//
|
//
|
||||||
#define PRODUCT_VERSION_STR "1.1b"
|
#define PRODUCT_VERSION_STR "1.2-beta1"
|
||||||
#define PRODUCT_BUILD_YEAR_STR "2017"
|
#define PRODUCT_BUILD_YEAR_STR "2016"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Numerical version presentation for ProductVersion propery in
|
// Numerical version presentation for ProductVersion propery in
|
||||||
// MSI packages (syntax: N.N[.N[.N]])
|
// MSI packages (syntax: N.N[.N[.N]])
|
||||||
//
|
//
|
||||||
#define PRODUCT_VERSION_INST "1.1.5"
|
#define PRODUCT_VERSION_INST "1.2.2"
|
||||||
|
|
||||||
//
|
//
|
||||||
// The product code for ProductCode property in MSI packages
|
// The product code for ProductCode property in MSI packages
|
||||||
// Replace with new on every version change, regardless how minor it is.
|
// Replace with new on every version change, regardless how minor it is.
|
||||||
//
|
//
|
||||||
#define PRODUCT_VERSION_GUID "{B7D36075-0DE9-4157-B27C-9B180D16EF05}"
|
#define PRODUCT_VERSION_GUID "{FF5DD25D-917C-4B33-81D3-C75B5E1C8CA8}"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Product vendor
|
// Product vendor
|
||||||
|
@@ -85,6 +85,7 @@
|
|||||||
<ClInclude Include="..\include\EAPXML.h" />
|
<ClInclude Include="..\include\EAPXML.h" />
|
||||||
<ClInclude Include="..\include\Method.h" />
|
<ClInclude Include="..\include\Method.h" />
|
||||||
<ClInclude Include="..\include\Module.h" />
|
<ClInclude Include="..\include\Module.h" />
|
||||||
|
<ClInclude Include="..\include\UIContext.h" />
|
||||||
<ClInclude Include="..\src\StdAfx.h" />
|
<ClInclude Include="..\src\StdAfx.h" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -99,6 +100,7 @@
|
|||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\UIContext.cpp" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\Events\build\Events.vcxproj">
|
<ProjectReference Include="..\..\Events\build\Events.vcxproj">
|
||||||
|
@@ -32,6 +32,9 @@
|
|||||||
<ClInclude Include="..\include\Credentials.h">
|
<ClInclude Include="..\include\Credentials.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\include\UIContext.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="..\src\StdAfx.cpp">
|
<ClCompile Include="..\src\StdAfx.cpp">
|
||||||
@@ -52,5 +55,8 @@
|
|||||||
<ClCompile Include="..\src\EAP.cpp">
|
<ClCompile Include="..\src\EAP.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\UIContext.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
@@ -226,6 +226,98 @@ namespace eap
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Identity-only based method credentials
|
||||||
|
///
|
||||||
|
class credentials_identity : public credentials
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
///
|
||||||
|
/// Constructs credentials
|
||||||
|
///
|
||||||
|
/// \param[in] mod EAP module to use for global services
|
||||||
|
///
|
||||||
|
credentials_identity(_In_ module &mod);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Copies credentials
|
||||||
|
///
|
||||||
|
/// \param[in] other Credentials to copy from
|
||||||
|
///
|
||||||
|
credentials_identity(_In_ const credentials_identity &other);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Moves credentials
|
||||||
|
///
|
||||||
|
/// \param[in] other Credentials to move from
|
||||||
|
///
|
||||||
|
credentials_identity(_Inout_ credentials_identity &&other);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Copies credentials
|
||||||
|
///
|
||||||
|
/// \param[in] other Credentials to copy from
|
||||||
|
///
|
||||||
|
/// \returns Reference to this object
|
||||||
|
///
|
||||||
|
credentials_identity& operator=(_In_ const credentials_identity &other);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Moves credentials
|
||||||
|
///
|
||||||
|
/// \param[in] other Credentials to move from
|
||||||
|
///
|
||||||
|
/// \returns Reference to this object
|
||||||
|
///
|
||||||
|
credentials_identity& operator=(_Inout_ credentials_identity &&other);
|
||||||
|
|
||||||
|
virtual config* clone() const;
|
||||||
|
|
||||||
|
/// \name XML management
|
||||||
|
/// @{
|
||||||
|
virtual void save(_In_ IXMLDOMDocument *pDoc, _In_ IXMLDOMNode *pConfigRoot) const;
|
||||||
|
virtual void load(_In_ IXMLDOMNode *pConfigRoot);
|
||||||
|
/// @}
|
||||||
|
|
||||||
|
/// \name Storage
|
||||||
|
/// @{
|
||||||
|
virtual void store(_In_z_ LPCTSTR pszTargetName, _In_ unsigned int level) const;
|
||||||
|
virtual void retrieve(_In_z_ LPCTSTR pszTargetName, _In_ unsigned int level);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// @copydoc eap::credentials::target_suffix()
|
||||||
|
/// \returns This implementation always returns `_T("pass")`
|
||||||
|
///
|
||||||
|
virtual LPCTSTR target_suffix() const;
|
||||||
|
/// @}
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Combine credentials in the following order:
|
||||||
|
///
|
||||||
|
/// 1. Cached credentials
|
||||||
|
/// 2. Configured credentials (if \p cfg is derived from `config_method_with_cred`)
|
||||||
|
/// 3. Stored credentials
|
||||||
|
///
|
||||||
|
/// \param[in] dwFlags A combination of [EAP flags](https://msdn.microsoft.com/en-us/library/windows/desktop/bb891975.aspx) that describe the EAP authentication session behavior
|
||||||
|
/// \param[in] hTokenImpersonateUser Impersonation token for a logged-on user to collect user-related information
|
||||||
|
/// \param[in] cred_cached Cached credentials (optional, can be \c NULL)
|
||||||
|
/// \param[in] cfg Method configuration (when derived from `config_method_with_cred`, metod attempt to load credentials from \p cfg)
|
||||||
|
/// \param[in] pszTargetName The name in Windows Credential Manager to retrieve credentials from (optional, can be \c NULL)
|
||||||
|
///
|
||||||
|
/// \returns
|
||||||
|
/// - \c source_cache Credentials were obtained from EapHost cache
|
||||||
|
/// - \c source_config Credentials were set by method configuration
|
||||||
|
/// - \c source_storage Credentials were loaded from Windows Credential Manager
|
||||||
|
///
|
||||||
|
virtual source_t combine(
|
||||||
|
_In_ DWORD dwFlags,
|
||||||
|
_In_ HANDLE hTokenImpersonateUser,
|
||||||
|
_In_opt_ const credentials *cred_cached,
|
||||||
|
_In_ const config_method &cfg,
|
||||||
|
_In_opt_z_ LPCTSTR pszTargetName);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Password based method credentials
|
/// Password based method credentials
|
||||||
///
|
///
|
||||||
|
102
lib/EAPBase/include/UIContext.h
Normal file
102
lib/EAPBase/include/UIContext.h
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2015-2017 Amebis
|
||||||
|
Copyright 2016-2017 GÉANT
|
||||||
|
|
||||||
|
This file is part of GÉANTLink.
|
||||||
|
|
||||||
|
GÉANTLink is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
GÉANTLink is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GÉANTLink. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace eap
|
||||||
|
{
|
||||||
|
class ui_context;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "Config.h"
|
||||||
|
#include "Credentials.h"
|
||||||
|
#include "Module.h"
|
||||||
|
|
||||||
|
#include "../../../include/Version.h"
|
||||||
|
|
||||||
|
|
||||||
|
namespace eap
|
||||||
|
{
|
||||||
|
///
|
||||||
|
/// \defgroup EAPBaseUICtx UI Context
|
||||||
|
/// Back and front-end inter-process data exchange
|
||||||
|
///
|
||||||
|
/// @{
|
||||||
|
|
||||||
|
///
|
||||||
|
/// UI context
|
||||||
|
///
|
||||||
|
class ui_context : public packable
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
///
|
||||||
|
/// Constructs context
|
||||||
|
///
|
||||||
|
/// \param[in] cfg Connection configuration
|
||||||
|
/// \param[in] cred Connection credentials
|
||||||
|
///
|
||||||
|
ui_context(_In_ config_connection &cfg, _In_ credentials_connection &cred);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Copies context
|
||||||
|
///
|
||||||
|
/// \param[in] other Credentials to copy from
|
||||||
|
///
|
||||||
|
ui_context(_In_ const ui_context &other);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Moves context
|
||||||
|
///
|
||||||
|
/// \param[in] other Credentials to move from
|
||||||
|
///
|
||||||
|
ui_context(_Inout_ ui_context &&other);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Copies context
|
||||||
|
///
|
||||||
|
/// \param[in] other Credentials to copy from
|
||||||
|
///
|
||||||
|
/// \returns Reference to this object
|
||||||
|
///
|
||||||
|
ui_context& operator=(_In_ const ui_context &other);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Moves context
|
||||||
|
///
|
||||||
|
/// \param[in] other Configuration to move from
|
||||||
|
///
|
||||||
|
/// \returns Reference to this object
|
||||||
|
///
|
||||||
|
ui_context& operator=(_Inout_ ui_context &&other);
|
||||||
|
|
||||||
|
/// \name BLOB management
|
||||||
|
/// @{
|
||||||
|
virtual void operator<<(_Inout_ cursor_out &cursor) const;
|
||||||
|
virtual size_t get_pk_size() const;
|
||||||
|
virtual void operator>>(_Inout_ cursor_in &cursor);
|
||||||
|
/// @}
|
||||||
|
|
||||||
|
public:
|
||||||
|
config_connection &m_cfg; ///< Connection configuration
|
||||||
|
credentials_connection &m_cred; ///< Connection credentials
|
||||||
|
};
|
||||||
|
|
||||||
|
/// @}
|
||||||
|
}
|
@@ -163,6 +163,183 @@ tstring eap::credentials::get_name() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
// eap::credentials_identity
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
eap::credentials_identity::credentials_identity(_In_ module &mod) : credentials(mod)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::credentials_identity::credentials_identity(_In_ const credentials_identity &other) : credentials(other)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::credentials_identity::credentials_identity(_Inout_ credentials_identity &&other) : credentials(std::move(other))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::credentials_identity& eap::credentials_identity::operator=(_In_ const credentials_identity &other)
|
||||||
|
{
|
||||||
|
if (this != &other)
|
||||||
|
(credentials&)*this = other;
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::credentials_identity& eap::credentials_identity::operator=(_Inout_ credentials_identity &&other)
|
||||||
|
{
|
||||||
|
if (this != &other)
|
||||||
|
(credentials&)*this = std::move(other);
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::config* eap::credentials_identity::clone() const
|
||||||
|
{
|
||||||
|
return new credentials_identity(*this);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void eap::credentials_identity::save(_In_ IXMLDOMDocument *pDoc, _In_ IXMLDOMNode *pConfigRoot) const
|
||||||
|
{
|
||||||
|
assert(pDoc);
|
||||||
|
assert(pConfigRoot);
|
||||||
|
|
||||||
|
// We could have used credentials::save() to save identity,
|
||||||
|
// but that method tolerates absence of <UserName> element,
|
||||||
|
// whereas for this class the absence of <UserName> is fatal.
|
||||||
|
config::save(pDoc, pConfigRoot);
|
||||||
|
|
||||||
|
HRESULT hr;
|
||||||
|
|
||||||
|
// <UserName>
|
||||||
|
if (FAILED(hr = eapxml::put_element_value(pDoc, pConfigRoot, bstr(L"UserName"), namespace_eapmetadata, bstr(m_identity))))
|
||||||
|
throw com_runtime_error(hr, __FUNCTION__ " Error creating <UserName> element.");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void eap::credentials_identity::load(_In_ IXMLDOMNode *pConfigRoot)
|
||||||
|
{
|
||||||
|
assert(pConfigRoot);
|
||||||
|
HRESULT hr;
|
||||||
|
|
||||||
|
// We could have used credentials::load() to load identity,
|
||||||
|
// but that method tolerates absence of <UserName> element,
|
||||||
|
// whereas for this class the absence of <UserName> is fatal.
|
||||||
|
config::load(pConfigRoot);
|
||||||
|
|
||||||
|
wstring xpath(eapxml::get_xpath(pConfigRoot));
|
||||||
|
|
||||||
|
if (FAILED(hr = eapxml::get_element_value(pConfigRoot, bstr(L"eap-metadata:UserName"), m_identity)))
|
||||||
|
throw com_runtime_error(hr, __FUNCTION__ " Error reading <UserName> element.");
|
||||||
|
|
||||||
|
m_module.log_config((xpath + L"/UserName").c_str(), m_identity.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void eap::credentials_identity::store(_In_z_ LPCTSTR pszTargetName, _In_ unsigned int level) const
|
||||||
|
{
|
||||||
|
assert(pszTargetName);
|
||||||
|
|
||||||
|
tstring target(target_name(pszTargetName, level));
|
||||||
|
|
||||||
|
// Write credentials.
|
||||||
|
assert(m_identity.length() < CRED_MAX_USERNAME_LENGTH);
|
||||||
|
CREDENTIAL cred = {
|
||||||
|
0, // Flags
|
||||||
|
CRED_TYPE_GENERIC, // Type
|
||||||
|
const_cast<LPTSTR>(target.c_str()), // TargetName
|
||||||
|
_T(""), // Comment
|
||||||
|
{ 0, 0 }, // LastWritten
|
||||||
|
0, // CredentialBlobSize
|
||||||
|
NULL, // CredentialBlob
|
||||||
|
CRED_PERSIST_ENTERPRISE, // Persist
|
||||||
|
0, // AttributeCount
|
||||||
|
NULL, // Attributes
|
||||||
|
NULL, // TargetAlias
|
||||||
|
const_cast<LPTSTR>(m_identity.c_str()) // UserName
|
||||||
|
};
|
||||||
|
if (!CredWrite(&cred, 0))
|
||||||
|
throw win_runtime_error(__FUNCTION__ " CredWrite failed.");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void eap::credentials_identity::retrieve(_In_z_ LPCTSTR pszTargetName, _In_ unsigned int level)
|
||||||
|
{
|
||||||
|
assert(pszTargetName);
|
||||||
|
|
||||||
|
// Read credentials.
|
||||||
|
unique_ptr<CREDENTIAL, CredFree_delete<CREDENTIAL> > cred;
|
||||||
|
if (!CredRead(target_name(pszTargetName, level).c_str(), CRED_TYPE_GENERIC, 0, (PCREDENTIAL*)&cred))
|
||||||
|
throw win_runtime_error(__FUNCTION__ " CredRead failed.");
|
||||||
|
|
||||||
|
if (cred->UserName)
|
||||||
|
m_identity = cred->UserName;
|
||||||
|
else
|
||||||
|
m_identity.clear();
|
||||||
|
|
||||||
|
wstring xpath(pszTargetName);
|
||||||
|
m_module.log_config((xpath + L"/Identity").c_str(), m_identity.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
LPCTSTR eap::credentials_identity::target_suffix() const
|
||||||
|
{
|
||||||
|
return _T("id");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::credentials::source_t eap::credentials_identity::combine(
|
||||||
|
_In_ DWORD dwFlags,
|
||||||
|
_In_ HANDLE hTokenImpersonateUser,
|
||||||
|
_In_opt_ const credentials *cred_cached,
|
||||||
|
_In_ const config_method &cfg,
|
||||||
|
_In_opt_z_ LPCTSTR pszTargetName)
|
||||||
|
{
|
||||||
|
UNREFERENCED_PARAMETER(dwFlags);
|
||||||
|
|
||||||
|
if (cred_cached) {
|
||||||
|
// Using EAP service cached credentials.
|
||||||
|
*this = *dynamic_cast<const credentials_identity*>(cred_cached);
|
||||||
|
m_module.log_event(&EAPMETHOD_TRACE_EVT_CRED_CACHED2, event_data((unsigned int)cfg.get_method_id()), event_data(credentials_identity::get_name()), event_data(pszTargetName), event_data::blank);
|
||||||
|
return source_cache;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto cfg_with_cred = dynamic_cast<const config_method_with_cred*>(&cfg);
|
||||||
|
if (cfg_with_cred && cfg_with_cred->m_use_cred) {
|
||||||
|
// Using configured credentials.
|
||||||
|
*this = *dynamic_cast<const credentials_identity*>(cfg_with_cred->m_cred.get());
|
||||||
|
m_module.log_event(&EAPMETHOD_TRACE_EVT_CRED_CONFIG2, event_data((unsigned int)cfg.get_method_id()), event_data(credentials_identity::get_name()), event_data(pszTargetName), event_data::blank);
|
||||||
|
return source_config;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (pszTargetName) {
|
||||||
|
// Switch user context.
|
||||||
|
user_impersonator impersonating(hTokenImpersonateUser);
|
||||||
|
|
||||||
|
try {
|
||||||
|
credentials_identity cred_loaded(m_module);
|
||||||
|
cred_loaded.retrieve(pszTargetName, cfg.m_level);
|
||||||
|
|
||||||
|
// Using stored credentials.
|
||||||
|
*this = std::move(cred_loaded);
|
||||||
|
m_module.log_event(&EAPMETHOD_TRACE_EVT_CRED_STORED2, event_data((unsigned int)cfg.get_method_id()), event_data(credentials_identity::get_name()), event_data(pszTargetName), event_data::blank);
|
||||||
|
return source_storage;
|
||||||
|
} catch (...) {
|
||||||
|
// Not actually an error.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return source_unknown;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
// eap::credentials_pass
|
// eap::credentials_pass
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
@@ -24,6 +24,7 @@
|
|||||||
#include "../include/Credentials.h"
|
#include "../include/Credentials.h"
|
||||||
#include "../include/Method.h"
|
#include "../include/Method.h"
|
||||||
#include "../include/Module.h"
|
#include "../include/Module.h"
|
||||||
|
#include "../include/UIContext.h"
|
||||||
|
|
||||||
#include "../include/EAP.h"
|
#include "../include/EAP.h"
|
||||||
#include "../include/EAPXML.h"
|
#include "../include/EAPXML.h"
|
||||||
|
100
lib/EAPBase/src/UIContext.cpp
Normal file
100
lib/EAPBase/src/UIContext.cpp
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2015-2016 Amebis
|
||||||
|
Copyright 2016 GÉANT
|
||||||
|
|
||||||
|
This file is part of GÉANTLink.
|
||||||
|
|
||||||
|
GÉANTLink is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
GÉANTLink is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GÉANTLink. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "StdAfx.h"
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
using namespace winstd;
|
||||||
|
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
// eap::ui_context
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
eap::ui_context::ui_context(_In_ config_connection &cfg, _In_ credentials_connection &cred) :
|
||||||
|
m_cfg(cfg),
|
||||||
|
m_cred(cred)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::ui_context::ui_context(_In_ const ui_context &other) :
|
||||||
|
m_cfg (other.m_cfg ),
|
||||||
|
m_cred (other.m_cred),
|
||||||
|
packable(other )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::ui_context::ui_context(_Inout_ ui_context &&other) :
|
||||||
|
m_cfg ( other.m_cfg ),
|
||||||
|
m_cred ( other.m_cred ),
|
||||||
|
packable(std::move(other ))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::ui_context& eap::ui_context::operator=(_In_ const ui_context &other)
|
||||||
|
{
|
||||||
|
if (this != &other) {
|
||||||
|
assert(std::addressof(m_cfg ) == std::addressof(other.m_cfg )); // Copy context within same configuration only!
|
||||||
|
assert(std::addressof(m_cred) == std::addressof(other.m_cred)); // Copy context within same credentials only!
|
||||||
|
(packable&)*this = other;
|
||||||
|
}
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::ui_context& eap::ui_context::operator=(_Inout_ ui_context &&other)
|
||||||
|
{
|
||||||
|
if (this != &other) {
|
||||||
|
assert(std::addressof(m_cfg ) == std::addressof(other.m_cfg )); // Move context within same configuration only!
|
||||||
|
assert(std::addressof(m_cred) == std::addressof(other.m_cred)); // Move context within same credentials only!
|
||||||
|
(packable&)*this = std::move(other);
|
||||||
|
}
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void eap::ui_context::operator<<(_Inout_ cursor_out &cursor) const
|
||||||
|
{
|
||||||
|
packable::operator<<(cursor);
|
||||||
|
cursor << m_cfg ;
|
||||||
|
cursor << m_cred;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
size_t eap::ui_context::get_pk_size() const
|
||||||
|
{
|
||||||
|
return
|
||||||
|
packable::get_pk_size() +
|
||||||
|
pksizeof(m_cfg ) +
|
||||||
|
pksizeof(m_cred);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void eap::ui_context::operator>>(_Inout_ cursor_in &cursor)
|
||||||
|
{
|
||||||
|
packable::operator>>(cursor);
|
||||||
|
cursor >> m_cfg ;
|
||||||
|
cursor >> m_cred;
|
||||||
|
}
|
@@ -43,6 +43,7 @@ class wxEAPProviderIDPanel;
|
|||||||
class wxEAPConfigProvider;
|
class wxEAPConfigProvider;
|
||||||
template <class _Tcred, class _wxT> class wxEAPCredentialsConfigPanel;
|
template <class _Tcred, class _wxT> class wxEAPCredentialsConfigPanel;
|
||||||
template <class _Tcred, class _Tbase> class wxEAPCredentialsPanel;
|
template <class _Tcred, class _Tbase> class wxEAPCredentialsPanel;
|
||||||
|
template <class _Tcred, class _Tbase> class wxIdentityCredentialsPanel;
|
||||||
template <class _Tcred, class _Tbase> class wxPasswordCredentialsPanel;
|
template <class _Tcred, class _Tbase> class wxPasswordCredentialsPanel;
|
||||||
class wxEAPProviderSelectDialog;
|
class wxEAPProviderSelectDialog;
|
||||||
|
|
||||||
@@ -359,14 +360,6 @@ public:
|
|||||||
///
|
///
|
||||||
/// Constructs a credential dialog
|
/// Constructs a credential dialog
|
||||||
///
|
///
|
||||||
/// \param[in] prov Provider configuration data
|
|
||||||
/// \param[in] parent Parent window
|
|
||||||
/// \param[in] id An identifier for the dialog. A value of -1 is taken to mean a default.
|
|
||||||
/// \param[in] title The title of the dialog
|
|
||||||
/// \param[in] pos The dialog position. The value \c wxDefaultPosition indicates a default position, chosen by either the windowing system or wxWidgets, depending on platform.
|
|
||||||
/// \param[in] size The dialog size. The value \c wxDefaultSize indicates a default size, chosen by either the windowing system or wxWidgets, depending on platform.
|
|
||||||
/// \param[in] style The window style
|
|
||||||
///
|
|
||||||
wxEAPCredentialsDialog(const eap::config_provider &prov, wxWindow *parent, wxWindowID id = wxID_ANY, const wxString &title = _("EAP Credentials"), const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE);
|
wxEAPCredentialsDialog(const eap::config_provider &prov, wxWindow *parent, wxWindowID id = wxID_ANY, const wxString &title = _("EAP Credentials"), const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -953,14 +946,14 @@ protected:
|
|||||||
|
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Generic password credential entry panel
|
/// Generic identity credential entry panel
|
||||||
///
|
///
|
||||||
template <class _Tcred, class _Tbase>
|
template <class _Tcred, class _Tbase>
|
||||||
class wxPasswordCredentialsPanel : public wxEAPCredentialsPanel<_Tcred, _Tbase>
|
class wxIdentityCredentialsPanel : public wxEAPCredentialsPanel<_Tcred, _Tbase>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
///
|
///
|
||||||
/// Constructs a password credentials panel
|
/// Constructs a identity credentials panel
|
||||||
///
|
///
|
||||||
/// \param[in] prov Provider configuration data
|
/// \param[in] prov Provider configuration data
|
||||||
/// \param[in] cfg Method configuration data
|
/// \param[in] cfg Method configuration data
|
||||||
@@ -968,14 +961,13 @@ public:
|
|||||||
/// \param[in] parent Parent window
|
/// \param[in] parent Parent window
|
||||||
/// \param[in] is_config Is this panel used to config credentials?
|
/// \param[in] is_config Is this panel used to config credentials?
|
||||||
///
|
///
|
||||||
wxPasswordCredentialsPanel(const eap::config_provider &prov, const eap::config_method_with_cred &cfg, _Tcred &cred, wxWindow* parent, bool is_config = false) :
|
wxIdentityCredentialsPanel(const eap::config_provider &prov, const eap::config_method_with_cred &cfg, _Tcred &cred, wxWindow* parent, bool is_config = false) :
|
||||||
m_password_set(false),
|
|
||||||
wxEAPCredentialsPanel<_Tcred, _Tbase>(prov, cfg, cred, parent, is_config)
|
wxEAPCredentialsPanel<_Tcred, _Tbase>(prov, cfg, cred, parent, is_config)
|
||||||
{
|
{
|
||||||
// Load and set icon.
|
// Load and set icon.
|
||||||
winstd::library lib_shell32;
|
winstd::library lib_shell32;
|
||||||
if (lib_shell32.load(_T("imageres.dll"), NULL, LOAD_LIBRARY_AS_DATAFILE | LOAD_LIBRARY_AS_IMAGE_RESOURCE))
|
if (lib_shell32.load(_T("shell32.dll"), NULL, LOAD_LIBRARY_AS_DATAFILE | LOAD_LIBRARY_AS_IMAGE_RESOURCE))
|
||||||
m_credentials_icon->SetIcon(wxLoadIconFromResource(lib_shell32, MAKEINTRESOURCE(82)));
|
m_credentials_icon->SetIcon(wxLoadIconFromResource(lib_shell32, MAKEINTRESOURCE(/*16770*/269)));
|
||||||
|
|
||||||
bool layout = false;
|
bool layout = false;
|
||||||
if (!m_prov.m_lbl_alt_credential.empty()) {
|
if (!m_prov.m_lbl_alt_credential.empty()) {
|
||||||
@@ -989,11 +981,6 @@ public:
|
|||||||
layout = true;
|
layout = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_prov.m_lbl_alt_password.empty()) {
|
|
||||||
m_password_label->SetLabel(m_prov.m_lbl_alt_password);
|
|
||||||
layout = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (layout)
|
if (layout)
|
||||||
this->Layout();
|
this->Layout();
|
||||||
}
|
}
|
||||||
@@ -1005,26 +992,85 @@ protected:
|
|||||||
{
|
{
|
||||||
m_identity->SetValue(m_cred.m_identity);
|
m_identity->SetValue(m_cred.m_identity);
|
||||||
m_identity->SetSelection(0, -1);
|
m_identity->SetSelection(0, -1);
|
||||||
m_password->SetValue(m_cred.m_password.empty() ? wxEmptyString : wxT("dummypass"));
|
|
||||||
m_password_set = false;
|
|
||||||
|
|
||||||
if (!m_is_config && m_cfg.m_use_cred) {
|
if (!m_is_config && m_cfg.m_use_cred) {
|
||||||
// Credential prompt mode & Using configured credentials
|
// Credential prompt mode & Using configured credentials
|
||||||
m_identity_label->Enable(false);
|
m_identity_label->Enable(false);
|
||||||
m_identity ->Enable(false);
|
m_identity ->Enable(false);
|
||||||
m_password_label->Enable(false);
|
|
||||||
m_password ->Enable(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return wxEAPCredentialsPanel<_Tcred, wxPasswordCredentialsPanelBase>::TransferDataToWindow();
|
return wxEAPCredentialsPanel<_Tcred, _Tbase>::TransferDataToWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool TransferDataFromWindow()
|
virtual bool TransferDataFromWindow()
|
||||||
{
|
{
|
||||||
if (!wxEAPCredentialsPanel<_Tcred, wxPasswordCredentialsPanelBase>::TransferDataFromWindow())
|
if (!wxEAPCredentialsPanel<_Tcred, _Tbase>::TransferDataFromWindow())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
m_cred.m_identity = m_identity->GetValue();
|
m_cred.m_identity = m_identity->GetValue();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// \endcond
|
||||||
|
};
|
||||||
|
|
||||||
|
/// @}
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Generic password credential entry panel
|
||||||
|
///
|
||||||
|
template <class _Tcred, class _Tbase>
|
||||||
|
class wxPasswordCredentialsPanel : public wxIdentityCredentialsPanel<_Tcred, _Tbase>
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
///
|
||||||
|
/// Constructs a password credentials panel
|
||||||
|
///
|
||||||
|
/// \param[in] prov Provider configuration data
|
||||||
|
/// \param[in] cfg Method configuration data
|
||||||
|
/// \param[inout] cred Credentials data
|
||||||
|
/// \param[in] parent Parent window
|
||||||
|
/// \param[in] is_config Is this panel used to config credentials?
|
||||||
|
///
|
||||||
|
wxPasswordCredentialsPanel(const eap::config_provider &prov, const eap::config_method_with_cred &cfg, _Tcred &cred, wxWindow* parent, bool is_config = false) :
|
||||||
|
m_password_set(false),
|
||||||
|
wxIdentityCredentialsPanel<_Tcred, _Tbase>(prov, cfg, cred, parent, is_config)
|
||||||
|
{
|
||||||
|
// Load and set icon.
|
||||||
|
winstd::library lib_shell32;
|
||||||
|
if (lib_shell32.load(_T("imageres.dll"), NULL, LOAD_LIBRARY_AS_DATAFILE | LOAD_LIBRARY_AS_IMAGE_RESOURCE))
|
||||||
|
m_credentials_icon->SetIcon(wxLoadIconFromResource(lib_shell32, MAKEINTRESOURCE(82)));
|
||||||
|
|
||||||
|
if (!m_prov.m_lbl_alt_password.empty()) {
|
||||||
|
m_password_label->SetLabel(m_prov.m_lbl_alt_password);
|
||||||
|
this->Layout();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected:
|
||||||
|
/// \cond internal
|
||||||
|
|
||||||
|
virtual bool TransferDataToWindow()
|
||||||
|
{
|
||||||
|
m_password->SetValue(m_cred.m_password.empty() ? wxEmptyString : wxT("dummypass"));
|
||||||
|
m_password_set = false;
|
||||||
|
|
||||||
|
if (!m_is_config && m_cfg.m_use_cred) {
|
||||||
|
// Credential prompt mode & Using configured credentials
|
||||||
|
m_password_label->Enable(false);
|
||||||
|
m_password ->Enable(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
return wxIdentityCredentialsPanel<_Tcred, _Tbase>::TransferDataToWindow();
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual bool TransferDataFromWindow()
|
||||||
|
{
|
||||||
|
if (!wxIdentityCredentialsPanel<_Tcred, _Tbase>::TransferDataFromWindow())
|
||||||
|
return false;
|
||||||
|
|
||||||
if (m_password_set)
|
if (m_password_set)
|
||||||
m_cred.m_password = m_password->GetValue();
|
m_cred.m_password = m_password->GetValue();
|
||||||
|
|
||||||
@@ -1033,7 +1079,7 @@ protected:
|
|||||||
|
|
||||||
virtual void OnPasswordText(wxCommandEvent& event)
|
virtual void OnPasswordText(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
wxEAPCredentialsPanel<_Tcred, _Tbase>::OnPasswordText(event);
|
wxIdentityCredentialsPanel<_Tcred, _Tbase>::OnPasswordText(event);
|
||||||
|
|
||||||
m_password_set = true;
|
m_password_set = true;
|
||||||
}
|
}
|
||||||
|
@@ -418,6 +418,55 @@ wxPasswordCredentialsPanelBase::~wxPasswordCredentialsPanelBase()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxIdentityCredentialsPanelBase::wxIdentityCredentialsPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxEAPCredentialsPanelBase( parent, id, pos, size, style )
|
||||||
|
{
|
||||||
|
m_sb_credentials = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("User ID") ), wxVERTICAL );
|
||||||
|
|
||||||
|
wxBoxSizer* sb_credentials_horiz;
|
||||||
|
sb_credentials_horiz = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
|
m_credentials_icon = new wxStaticBitmap( m_sb_credentials->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
sb_credentials_horiz->Add( m_credentials_icon, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
m_sb_credentials_vert = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
|
m_credentials_label = new wxStaticText( m_sb_credentials->GetStaticBox(), wxID_ANY, _("Please provide your user ID."), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_credentials_label->Wrap( 440 );
|
||||||
|
m_sb_credentials_vert->Add( m_credentials_label, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
wxFlexGridSizer* sb_credentials_tbl;
|
||||||
|
sb_credentials_tbl = new wxFlexGridSizer( 0, 2, 5, 5 );
|
||||||
|
sb_credentials_tbl->AddGrowableCol( 1 );
|
||||||
|
sb_credentials_tbl->SetFlexibleDirection( wxBOTH );
|
||||||
|
sb_credentials_tbl->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
||||||
|
|
||||||
|
m_identity_label = new wxStaticText( m_sb_credentials->GetStaticBox(), wxID_ANY, _("User ID:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_identity_label->Wrap( -1 );
|
||||||
|
sb_credentials_tbl->Add( m_identity_label, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
|
m_identity = new wxTextCtrl( m_sb_credentials->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_identity->SetToolTip( _("Enter your user name here (user@domain.org, DOMAIN\\User, etc.)") );
|
||||||
|
|
||||||
|
sb_credentials_tbl->Add( m_identity, 2, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
m_sb_credentials_vert->Add( sb_credentials_tbl, 0, wxEXPAND|wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
sb_credentials_horiz->Add( m_sb_credentials_vert, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
m_sb_credentials->Add( sb_credentials_horiz, 0, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
this->SetSizer( m_sb_credentials );
|
||||||
|
this->Layout();
|
||||||
|
}
|
||||||
|
|
||||||
|
wxIdentityCredentialsPanelBase::~wxIdentityCredentialsPanelBase()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
wxEAPProviderContactInfoPanelBase::wxEAPProviderContactInfoPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
|
wxEAPProviderContactInfoPanelBase::wxEAPProviderContactInfoPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
|
||||||
{
|
{
|
||||||
wxStaticBoxSizer* sb_provider_contact;
|
wxStaticBoxSizer* sb_provider_contact;
|
||||||
|
@@ -3116,6 +3116,446 @@
|
|||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="Panel" expanded="1">
|
||||||
|
<property name="aui_managed">0</property>
|
||||||
|
<property name="aui_manager_style">wxAUI_MGR_DEFAULT</property>
|
||||||
|
<property name="bg"></property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="enabled">1</property>
|
||||||
|
<property name="event_handler">impl_virtual</property>
|
||||||
|
<property name="fg"></property>
|
||||||
|
<property name="font"></property>
|
||||||
|
<property name="hidden">0</property>
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="name">wxIdentityCredentialsPanelBase</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="size">500,-1</property>
|
||||||
|
<property name="subclass">wxEAPCredentialsPanelBase; ../include/wxEAP_UIBase.h</property>
|
||||||
|
<property name="tooltip"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style">wxTAB_TRAVERSAL</property>
|
||||||
|
<event name="OnAuiFindManager"></event>
|
||||||
|
<event name="OnAuiPaneButton"></event>
|
||||||
|
<event name="OnAuiPaneClose"></event>
|
||||||
|
<event name="OnAuiPaneMaximize"></event>
|
||||||
|
<event name="OnAuiPaneRestore"></event>
|
||||||
|
<event name="OnAuiRender"></event>
|
||||||
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnEnterWindow"></event>
|
||||||
|
<event name="OnEraseBackground"></event>
|
||||||
|
<event name="OnInitDialog"></event>
|
||||||
|
<event name="OnKeyDown"></event>
|
||||||
|
<event name="OnKeyUp"></event>
|
||||||
|
<event name="OnKillFocus"></event>
|
||||||
|
<event name="OnLeaveWindow"></event>
|
||||||
|
<event name="OnLeftDClick"></event>
|
||||||
|
<event name="OnLeftDown"></event>
|
||||||
|
<event name="OnLeftUp"></event>
|
||||||
|
<event name="OnMiddleDClick"></event>
|
||||||
|
<event name="OnMiddleDown"></event>
|
||||||
|
<event name="OnMiddleUp"></event>
|
||||||
|
<event name="OnMotion"></event>
|
||||||
|
<event name="OnMouseEvents"></event>
|
||||||
|
<event name="OnMouseWheel"></event>
|
||||||
|
<event name="OnPaint"></event>
|
||||||
|
<event name="OnRightDClick"></event>
|
||||||
|
<event name="OnRightDown"></event>
|
||||||
|
<event name="OnRightUp"></event>
|
||||||
|
<event name="OnSetFocus"></event>
|
||||||
|
<event name="OnSize"></event>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
|
<object class="wxStaticBoxSizer" expanded="1">
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="label">User ID</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="name">m_sb_credentials</property>
|
||||||
|
<property name="orient">wxVERTICAL</property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxBoxSizer" expanded="1">
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="name">sb_credentials_horiz</property>
|
||||||
|
<property name="orient">wxHORIZONTAL</property>
|
||||||
|
<property name="permission">none</property>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxALL</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxStaticBitmap" expanded="1">
|
||||||
|
<property name="BottomDockable">1</property>
|
||||||
|
<property name="LeftDockable">1</property>
|
||||||
|
<property name="RightDockable">1</property>
|
||||||
|
<property name="TopDockable">1</property>
|
||||||
|
<property name="aui_layer"></property>
|
||||||
|
<property name="aui_name"></property>
|
||||||
|
<property name="aui_position"></property>
|
||||||
|
<property name="aui_row"></property>
|
||||||
|
<property name="best_size"></property>
|
||||||
|
<property name="bg"></property>
|
||||||
|
<property name="bitmap">Load From Icon Resource; ; [32; 32]</property>
|
||||||
|
<property name="caption"></property>
|
||||||
|
<property name="caption_visible">1</property>
|
||||||
|
<property name="center_pane">0</property>
|
||||||
|
<property name="close_button">1</property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="default_pane">0</property>
|
||||||
|
<property name="dock">Dock</property>
|
||||||
|
<property name="dock_fixed">0</property>
|
||||||
|
<property name="docking">Left</property>
|
||||||
|
<property name="enabled">1</property>
|
||||||
|
<property name="fg"></property>
|
||||||
|
<property name="floatable">1</property>
|
||||||
|
<property name="font"></property>
|
||||||
|
<property name="gripper">0</property>
|
||||||
|
<property name="hidden">0</property>
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="max_size"></property>
|
||||||
|
<property name="maximize_button">0</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="min_size"></property>
|
||||||
|
<property name="minimize_button">0</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="moveable">1</property>
|
||||||
|
<property name="name">m_credentials_icon</property>
|
||||||
|
<property name="pane_border">1</property>
|
||||||
|
<property name="pane_position"></property>
|
||||||
|
<property name="pane_size"></property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="pin_button">1</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="resize">Resizable</property>
|
||||||
|
<property name="show">1</property>
|
||||||
|
<property name="size"></property>
|
||||||
|
<property name="subclass"></property>
|
||||||
|
<property name="toolbar_pane">0</property>
|
||||||
|
<property name="tooltip"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style"></property>
|
||||||
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnEnterWindow"></event>
|
||||||
|
<event name="OnEraseBackground"></event>
|
||||||
|
<event name="OnKeyDown"></event>
|
||||||
|
<event name="OnKeyUp"></event>
|
||||||
|
<event name="OnKillFocus"></event>
|
||||||
|
<event name="OnLeaveWindow"></event>
|
||||||
|
<event name="OnLeftDClick"></event>
|
||||||
|
<event name="OnLeftDown"></event>
|
||||||
|
<event name="OnLeftUp"></event>
|
||||||
|
<event name="OnMiddleDClick"></event>
|
||||||
|
<event name="OnMiddleDown"></event>
|
||||||
|
<event name="OnMiddleUp"></event>
|
||||||
|
<event name="OnMotion"></event>
|
||||||
|
<event name="OnMouseEvents"></event>
|
||||||
|
<event name="OnMouseWheel"></event>
|
||||||
|
<event name="OnPaint"></event>
|
||||||
|
<event name="OnRightDClick"></event>
|
||||||
|
<event name="OnRightDown"></event>
|
||||||
|
<event name="OnRightUp"></event>
|
||||||
|
<event name="OnSetFocus"></event>
|
||||||
|
<event name="OnSize"></event>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND</property>
|
||||||
|
<property name="proportion">1</property>
|
||||||
|
<object class="wxBoxSizer" expanded="1">
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="name">m_sb_credentials_vert</property>
|
||||||
|
<property name="orient">wxVERTICAL</property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxALL|wxEXPAND</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxStaticText" expanded="1">
|
||||||
|
<property name="BottomDockable">1</property>
|
||||||
|
<property name="LeftDockable">1</property>
|
||||||
|
<property name="RightDockable">1</property>
|
||||||
|
<property name="TopDockable">1</property>
|
||||||
|
<property name="aui_layer"></property>
|
||||||
|
<property name="aui_name"></property>
|
||||||
|
<property name="aui_position"></property>
|
||||||
|
<property name="aui_row"></property>
|
||||||
|
<property name="best_size"></property>
|
||||||
|
<property name="bg"></property>
|
||||||
|
<property name="caption"></property>
|
||||||
|
<property name="caption_visible">1</property>
|
||||||
|
<property name="center_pane">0</property>
|
||||||
|
<property name="close_button">1</property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="default_pane">0</property>
|
||||||
|
<property name="dock">Dock</property>
|
||||||
|
<property name="dock_fixed">0</property>
|
||||||
|
<property name="docking">Left</property>
|
||||||
|
<property name="enabled">1</property>
|
||||||
|
<property name="fg"></property>
|
||||||
|
<property name="floatable">1</property>
|
||||||
|
<property name="font"></property>
|
||||||
|
<property name="gripper">0</property>
|
||||||
|
<property name="hidden">0</property>
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="label">Please provide your user ID.</property>
|
||||||
|
<property name="max_size"></property>
|
||||||
|
<property name="maximize_button">0</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="min_size"></property>
|
||||||
|
<property name="minimize_button">0</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="moveable">1</property>
|
||||||
|
<property name="name">m_credentials_label</property>
|
||||||
|
<property name="pane_border">1</property>
|
||||||
|
<property name="pane_position"></property>
|
||||||
|
<property name="pane_size"></property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="pin_button">1</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="resize">Resizable</property>
|
||||||
|
<property name="show">1</property>
|
||||||
|
<property name="size"></property>
|
||||||
|
<property name="style"></property>
|
||||||
|
<property name="subclass"></property>
|
||||||
|
<property name="toolbar_pane">0</property>
|
||||||
|
<property name="tooltip"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style"></property>
|
||||||
|
<property name="wrap">440</property>
|
||||||
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnEnterWindow"></event>
|
||||||
|
<event name="OnEraseBackground"></event>
|
||||||
|
<event name="OnKeyDown"></event>
|
||||||
|
<event name="OnKeyUp"></event>
|
||||||
|
<event name="OnKillFocus"></event>
|
||||||
|
<event name="OnLeaveWindow"></event>
|
||||||
|
<event name="OnLeftDClick"></event>
|
||||||
|
<event name="OnLeftDown"></event>
|
||||||
|
<event name="OnLeftUp"></event>
|
||||||
|
<event name="OnMiddleDClick"></event>
|
||||||
|
<event name="OnMiddleDown"></event>
|
||||||
|
<event name="OnMiddleUp"></event>
|
||||||
|
<event name="OnMotion"></event>
|
||||||
|
<event name="OnMouseEvents"></event>
|
||||||
|
<event name="OnMouseWheel"></event>
|
||||||
|
<event name="OnPaint"></event>
|
||||||
|
<event name="OnRightDClick"></event>
|
||||||
|
<event name="OnRightDown"></event>
|
||||||
|
<event name="OnRightUp"></event>
|
||||||
|
<event name="OnSetFocus"></event>
|
||||||
|
<event name="OnSize"></event>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND|wxALL</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxFlexGridSizer" expanded="1">
|
||||||
|
<property name="cols">2</property>
|
||||||
|
<property name="flexible_direction">wxBOTH</property>
|
||||||
|
<property name="growablecols">1</property>
|
||||||
|
<property name="growablerows"></property>
|
||||||
|
<property name="hgap">5</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="name">sb_credentials_tbl</property>
|
||||||
|
<property name="non_flexible_grow_mode">wxFLEX_GROWMODE_SPECIFIED</property>
|
||||||
|
<property name="permission">none</property>
|
||||||
|
<property name="rows">0</property>
|
||||||
|
<property name="vgap">5</property>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxALIGN_CENTER_VERTICAL</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxStaticText" expanded="1">
|
||||||
|
<property name="BottomDockable">1</property>
|
||||||
|
<property name="LeftDockable">1</property>
|
||||||
|
<property name="RightDockable">1</property>
|
||||||
|
<property name="TopDockable">1</property>
|
||||||
|
<property name="aui_layer"></property>
|
||||||
|
<property name="aui_name"></property>
|
||||||
|
<property name="aui_position"></property>
|
||||||
|
<property name="aui_row"></property>
|
||||||
|
<property name="best_size"></property>
|
||||||
|
<property name="bg"></property>
|
||||||
|
<property name="caption"></property>
|
||||||
|
<property name="caption_visible">1</property>
|
||||||
|
<property name="center_pane">0</property>
|
||||||
|
<property name="close_button">1</property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="default_pane">0</property>
|
||||||
|
<property name="dock">Dock</property>
|
||||||
|
<property name="dock_fixed">0</property>
|
||||||
|
<property name="docking">Left</property>
|
||||||
|
<property name="enabled">1</property>
|
||||||
|
<property name="fg"></property>
|
||||||
|
<property name="floatable">1</property>
|
||||||
|
<property name="font"></property>
|
||||||
|
<property name="gripper">0</property>
|
||||||
|
<property name="hidden">0</property>
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="label">User ID:</property>
|
||||||
|
<property name="max_size"></property>
|
||||||
|
<property name="maximize_button">0</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="min_size"></property>
|
||||||
|
<property name="minimize_button">0</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="moveable">1</property>
|
||||||
|
<property name="name">m_identity_label</property>
|
||||||
|
<property name="pane_border">1</property>
|
||||||
|
<property name="pane_position"></property>
|
||||||
|
<property name="pane_size"></property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="pin_button">1</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="resize">Resizable</property>
|
||||||
|
<property name="show">1</property>
|
||||||
|
<property name="size"></property>
|
||||||
|
<property name="style"></property>
|
||||||
|
<property name="subclass"></property>
|
||||||
|
<property name="toolbar_pane">0</property>
|
||||||
|
<property name="tooltip"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style"></property>
|
||||||
|
<property name="wrap">-1</property>
|
||||||
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnEnterWindow"></event>
|
||||||
|
<event name="OnEraseBackground"></event>
|
||||||
|
<event name="OnKeyDown"></event>
|
||||||
|
<event name="OnKeyUp"></event>
|
||||||
|
<event name="OnKillFocus"></event>
|
||||||
|
<event name="OnLeaveWindow"></event>
|
||||||
|
<event name="OnLeftDClick"></event>
|
||||||
|
<event name="OnLeftDown"></event>
|
||||||
|
<event name="OnLeftUp"></event>
|
||||||
|
<event name="OnMiddleDClick"></event>
|
||||||
|
<event name="OnMiddleDown"></event>
|
||||||
|
<event name="OnMiddleUp"></event>
|
||||||
|
<event name="OnMotion"></event>
|
||||||
|
<event name="OnMouseEvents"></event>
|
||||||
|
<event name="OnMouseWheel"></event>
|
||||||
|
<event name="OnPaint"></event>
|
||||||
|
<event name="OnRightDClick"></event>
|
||||||
|
<event name="OnRightDown"></event>
|
||||||
|
<event name="OnRightUp"></event>
|
||||||
|
<event name="OnSetFocus"></event>
|
||||||
|
<event name="OnSize"></event>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND|wxALIGN_CENTER_VERTICAL</property>
|
||||||
|
<property name="proportion">2</property>
|
||||||
|
<object class="wxTextCtrl" expanded="1">
|
||||||
|
<property name="BottomDockable">1</property>
|
||||||
|
<property name="LeftDockable">1</property>
|
||||||
|
<property name="RightDockable">1</property>
|
||||||
|
<property name="TopDockable">1</property>
|
||||||
|
<property name="aui_layer"></property>
|
||||||
|
<property name="aui_name"></property>
|
||||||
|
<property name="aui_position"></property>
|
||||||
|
<property name="aui_row"></property>
|
||||||
|
<property name="best_size"></property>
|
||||||
|
<property name="bg"></property>
|
||||||
|
<property name="caption"></property>
|
||||||
|
<property name="caption_visible">1</property>
|
||||||
|
<property name="center_pane">0</property>
|
||||||
|
<property name="close_button">1</property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="default_pane">0</property>
|
||||||
|
<property name="dock">Dock</property>
|
||||||
|
<property name="dock_fixed">0</property>
|
||||||
|
<property name="docking">Left</property>
|
||||||
|
<property name="enabled">1</property>
|
||||||
|
<property name="fg"></property>
|
||||||
|
<property name="floatable">1</property>
|
||||||
|
<property name="font"></property>
|
||||||
|
<property name="gripper">0</property>
|
||||||
|
<property name="hidden">0</property>
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="max_size"></property>
|
||||||
|
<property name="maximize_button">0</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="maxlength"></property>
|
||||||
|
<property name="min_size"></property>
|
||||||
|
<property name="minimize_button">0</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="moveable">1</property>
|
||||||
|
<property name="name">m_identity</property>
|
||||||
|
<property name="pane_border">1</property>
|
||||||
|
<property name="pane_position"></property>
|
||||||
|
<property name="pane_size"></property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="pin_button">1</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="resize">Resizable</property>
|
||||||
|
<property name="show">1</property>
|
||||||
|
<property name="size"></property>
|
||||||
|
<property name="style"></property>
|
||||||
|
<property name="subclass"></property>
|
||||||
|
<property name="toolbar_pane">0</property>
|
||||||
|
<property name="tooltip">Enter your user name here (user@domain.org, DOMAIN\User, etc.)</property>
|
||||||
|
<property name="validator_data_type"></property>
|
||||||
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
<property name="validator_variable"></property>
|
||||||
|
<property name="value"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style"></property>
|
||||||
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnEnterWindow"></event>
|
||||||
|
<event name="OnEraseBackground"></event>
|
||||||
|
<event name="OnKeyDown"></event>
|
||||||
|
<event name="OnKeyUp"></event>
|
||||||
|
<event name="OnKillFocus"></event>
|
||||||
|
<event name="OnLeaveWindow"></event>
|
||||||
|
<event name="OnLeftDClick"></event>
|
||||||
|
<event name="OnLeftDown"></event>
|
||||||
|
<event name="OnLeftUp"></event>
|
||||||
|
<event name="OnMiddleDClick"></event>
|
||||||
|
<event name="OnMiddleDown"></event>
|
||||||
|
<event name="OnMiddleUp"></event>
|
||||||
|
<event name="OnMotion"></event>
|
||||||
|
<event name="OnMouseEvents"></event>
|
||||||
|
<event name="OnMouseWheel"></event>
|
||||||
|
<event name="OnPaint"></event>
|
||||||
|
<event name="OnRightDClick"></event>
|
||||||
|
<event name="OnRightDown"></event>
|
||||||
|
<event name="OnRightUp"></event>
|
||||||
|
<event name="OnSetFocus"></event>
|
||||||
|
<event name="OnSize"></event>
|
||||||
|
<event name="OnText"></event>
|
||||||
|
<event name="OnTextEnter"></event>
|
||||||
|
<event name="OnTextMaxLen"></event>
|
||||||
|
<event name="OnTextURL"></event>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
<object class="Panel" expanded="1">
|
<object class="Panel" expanded="1">
|
||||||
<property name="aui_managed">0</property>
|
<property name="aui_managed">0</property>
|
||||||
<property name="aui_manager_style">wxAUI_MGR_DEFAULT</property>
|
<property name="aui_manager_style">wxAUI_MGR_DEFAULT</property>
|
||||||
|
@@ -222,6 +222,28 @@ class wxPasswordCredentialsPanelBase : public wxEAPCredentialsPanelBase
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
/// Class wxIdentityCredentialsPanelBase
|
||||||
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
class wxIdentityCredentialsPanelBase : public wxEAPCredentialsPanelBase
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
|
||||||
|
protected:
|
||||||
|
wxStaticBoxSizer* m_sb_credentials;
|
||||||
|
wxStaticBitmap* m_credentials_icon;
|
||||||
|
wxBoxSizer* m_sb_credentials_vert;
|
||||||
|
wxStaticText* m_credentials_label;
|
||||||
|
wxStaticText* m_identity_label;
|
||||||
|
wxTextCtrl* m_identity;
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
wxIdentityCredentialsPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL );
|
||||||
|
~wxIdentityCredentialsPanelBase();
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
/// Class wxEAPProviderContactInfoPanelBase
|
/// Class wxEAPProviderContactInfoPanelBase
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
Binary file not shown.
2
lib/GTC/build/.gitignore
vendored
Normal file
2
lib/GTC/build/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
/temp
|
||||||
|
/*.user
|
12
lib/GTC/build/GTC.props
Normal file
12
lib/GTC/build/GTC.props
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ImportGroup Label="PropertySheets" />
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup />
|
||||||
|
<ItemDefinitionGroup>
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>..\..\Events\build\temp\Events.$(Platform).$(Configuration).$(PlatformToolset);..\..\WinStd\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup />
|
||||||
|
</Project>
|
104
lib/GTC/build/GTC.vcxproj
Normal file
104
lib/GTC/build/GTC.vcxproj
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{114A70BB-8698-4A0C-8C90-58F22EDD8129}</ProjectGuid>
|
||||||
|
<RootNamespace>GTC</RootNamespace>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="..\..\..\include\Win32.props" />
|
||||||
|
<Import Project="..\..\..\include\Debug.props" />
|
||||||
|
<Import Project="GTC.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="..\..\..\include\x64.props" />
|
||||||
|
<Import Project="..\..\..\include\Debug.props" />
|
||||||
|
<Import Project="GTC.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="..\..\..\include\Win32.props" />
|
||||||
|
<Import Project="..\..\..\include\Release.props" />
|
||||||
|
<Import Project="GTC.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="..\..\..\include\x64.props" />
|
||||||
|
<Import Project="..\..\..\include\Release.props" />
|
||||||
|
<Import Project="GTC.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup />
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\include\Config.h" />
|
||||||
|
<ClInclude Include="..\include\Method.h" />
|
||||||
|
<ClInclude Include="..\src\StdAfx.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\src\Config.cpp" />
|
||||||
|
<ClCompile Include="..\src\Method.cpp" />
|
||||||
|
<ClCompile Include="..\src\StdAfx.cpp">
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\Events\build\Events.vcxproj">
|
||||||
|
<Project>{d63f24bd-92a0-4d6b-8b69-ed947e4d2b1b}</Project>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
35
lib/GTC/build/GTC.vcxproj.filters
Normal file
35
lib/GTC/build/GTC.vcxproj.filters
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\src\StdAfx.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\include\Config.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\include\Method.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\src\StdAfx.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\Config.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\Method.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
175
lib/GTC/include/Config.h
Normal file
175
lib/GTC/include/Config.h
Normal file
@@ -0,0 +1,175 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2015-2016 Amebis
|
||||||
|
Copyright 2016 GÉANT
|
||||||
|
|
||||||
|
This file is part of GÉANTLink.
|
||||||
|
|
||||||
|
GÉANTLink is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
GÉANTLink is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GÉANTLink. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <sal.h>
|
||||||
|
|
||||||
|
namespace eap
|
||||||
|
{
|
||||||
|
class config_method_eapgtc;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "../../EAPBase/include/Config.h"
|
||||||
|
|
||||||
|
#include <Windows.h>
|
||||||
|
#include <sal.h>
|
||||||
|
#include <tchar.h>
|
||||||
|
|
||||||
|
|
||||||
|
namespace eap
|
||||||
|
{
|
||||||
|
/// \addtogroup EAPBaseConfig
|
||||||
|
/// @{
|
||||||
|
|
||||||
|
///
|
||||||
|
/// EAP-GTC configuration
|
||||||
|
///
|
||||||
|
class config_method_eapgtc : public config_method_with_cred
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
///
|
||||||
|
/// Authentication mode
|
||||||
|
///
|
||||||
|
enum auth_mode_t {
|
||||||
|
auth_mode_response = 0, ///< Challenge/Response
|
||||||
|
auth_mode_password, ///< Password
|
||||||
|
};
|
||||||
|
|
||||||
|
public:
|
||||||
|
///
|
||||||
|
/// Constructs configuration
|
||||||
|
///
|
||||||
|
/// \param[in] mod EAP module to use for global services
|
||||||
|
/// \param[in] level Config level (0=outer, 1=inner, 2=inner-inner...)
|
||||||
|
///
|
||||||
|
config_method_eapgtc(_In_ module &mod, _In_ unsigned int level);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Copies configuration
|
||||||
|
///
|
||||||
|
/// \param[in] other Configuration to copy from
|
||||||
|
///
|
||||||
|
config_method_eapgtc(_In_ const config_method_eapgtc &other);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Moves configuration
|
||||||
|
///
|
||||||
|
/// \param[in] other Configuration to move from
|
||||||
|
///
|
||||||
|
config_method_eapgtc(_Inout_ config_method_eapgtc &&other);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Copies configuration
|
||||||
|
///
|
||||||
|
/// \param[in] other Configuration to copy from
|
||||||
|
///
|
||||||
|
/// \returns Reference to this object
|
||||||
|
///
|
||||||
|
config_method_eapgtc& operator=(_In_ const config_method_eapgtc &other);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Moves configuration
|
||||||
|
///
|
||||||
|
/// \param[in] other Configuration to move from
|
||||||
|
///
|
||||||
|
/// \returns Reference to this object
|
||||||
|
///
|
||||||
|
config_method_eapgtc& operator=(_Inout_ config_method_eapgtc &&other);
|
||||||
|
|
||||||
|
virtual config* clone() const;
|
||||||
|
|
||||||
|
/// \name XML management
|
||||||
|
/// @{
|
||||||
|
virtual void save(_In_ IXMLDOMDocument *pDoc, _In_ IXMLDOMNode *pConfigRoot) const;
|
||||||
|
virtual void load(_In_ IXMLDOMNode *pConfigRoot);
|
||||||
|
/// @}
|
||||||
|
|
||||||
|
/// \name BLOB management
|
||||||
|
/// @{
|
||||||
|
virtual void operator<<(_Inout_ cursor_out &cursor) const;
|
||||||
|
virtual size_t get_pk_size() const;
|
||||||
|
virtual void operator>>(_Inout_ cursor_in &cursor);
|
||||||
|
/// @}
|
||||||
|
|
||||||
|
///
|
||||||
|
/// @copydoc eap::config_method::get_method_id()
|
||||||
|
/// \returns This implementation always returns `winstd::eap_type_gtc`
|
||||||
|
///
|
||||||
|
virtual winstd::eap_type_t get_method_id() const;
|
||||||
|
|
||||||
|
///
|
||||||
|
/// @copydoc eap::config_method::get_method_str()
|
||||||
|
/// \returns This implementation always returns `L"EAP-GTC"`
|
||||||
|
///
|
||||||
|
virtual const wchar_t* get_method_str() const;
|
||||||
|
|
||||||
|
///
|
||||||
|
/// @copydoc eap::config_method::make_credentials()
|
||||||
|
/// \returns This implementation returns `eap::credentials_identity` or `eap::credentials_pass` type of credentials, depending on authentication mode.
|
||||||
|
///
|
||||||
|
virtual credentials* make_credentials() const;
|
||||||
|
};
|
||||||
|
|
||||||
|
/// @}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// \addtogroup EAPBaseStream
|
||||||
|
/// @{
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Packs an EAP-GTC method authentication mode
|
||||||
|
///
|
||||||
|
/// \param[inout] cursor Memory cursor
|
||||||
|
/// \param[in] val Authentication mode to pack
|
||||||
|
///
|
||||||
|
inline void operator<<(_Inout_ eap::cursor_out &cursor, _In_ const eap::config_method_eapgtc::auth_mode_t &val)
|
||||||
|
{
|
||||||
|
cursor << (unsigned char)val;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Returns packed size of an EAP-GTC method authentication mode
|
||||||
|
///
|
||||||
|
/// \param[in] val Authentication mode to pack
|
||||||
|
///
|
||||||
|
/// \returns Size of data when packed (in bytes)
|
||||||
|
///
|
||||||
|
inline size_t pksizeof(_In_ const eap::config_method_eapgtc::auth_mode_t &val)
|
||||||
|
{
|
||||||
|
return pksizeof((unsigned char)val);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Unpacks an EAP-GTC method authentication mode
|
||||||
|
///
|
||||||
|
/// \param[inout] cursor Memory cursor
|
||||||
|
/// \param[out] val Authentication mode to unpack to
|
||||||
|
///
|
||||||
|
inline void operator>>(_Inout_ eap::cursor_in &cursor, _Out_ eap::config_method_eapgtc::auth_mode_t &val)
|
||||||
|
{
|
||||||
|
val = (eap::config_method_eapgtc::auth_mode_t)0; // Reset higher bytes to zero before reading to lower byte.
|
||||||
|
cursor >> (unsigned char&)val;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// @}
|
118
lib/GTC/include/Method.h
Normal file
118
lib/GTC/include/Method.h
Normal file
@@ -0,0 +1,118 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2015-2016 Amebis
|
||||||
|
Copyright 2016 GÉANT
|
||||||
|
|
||||||
|
This file is part of GÉANTLink.
|
||||||
|
|
||||||
|
GÉANTLink is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
GÉANTLink is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GÉANTLink. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace eap
|
||||||
|
{
|
||||||
|
class method_gtc;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "Config.h"
|
||||||
|
|
||||||
|
#include "../../EAPBase/include/Method.h"
|
||||||
|
|
||||||
|
|
||||||
|
namespace eap
|
||||||
|
{
|
||||||
|
/// \addtogroup EAPBaseMethod
|
||||||
|
/// @{
|
||||||
|
|
||||||
|
///
|
||||||
|
/// GTC method
|
||||||
|
///
|
||||||
|
class method_gtc : public method
|
||||||
|
{
|
||||||
|
WINSTD_NONCOPYABLE(method_gtc)
|
||||||
|
|
||||||
|
public:
|
||||||
|
///
|
||||||
|
/// Constructs a GTC method
|
||||||
|
///
|
||||||
|
/// \param[in] mod GTC module to use for global services
|
||||||
|
/// \param[in] cfg Method configuration
|
||||||
|
/// \param[in] cred User credentials
|
||||||
|
///
|
||||||
|
method_gtc(_In_ module &mod, _In_ config_method_eapgtc &cfg, _In_ credentials &cred);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Moves a GTC method
|
||||||
|
///
|
||||||
|
/// \param[in] other GTC method to move from
|
||||||
|
///
|
||||||
|
method_gtc(_Inout_ method_gtc &&other);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Moves a GTC method
|
||||||
|
///
|
||||||
|
/// \param[in] other GTC method to move from
|
||||||
|
///
|
||||||
|
/// \returns Reference to this object
|
||||||
|
///
|
||||||
|
method_gtc& operator=(_Inout_ method_gtc &&other);
|
||||||
|
|
||||||
|
/// \name Session management
|
||||||
|
/// @{
|
||||||
|
|
||||||
|
virtual void begin_session(
|
||||||
|
_In_ DWORD dwFlags,
|
||||||
|
_In_ const EapAttributes *pAttributeArray,
|
||||||
|
_In_ HANDLE hTokenImpersonateUser,
|
||||||
|
_In_opt_ DWORD dwMaxSendPacketSize = MAXDWORD);
|
||||||
|
|
||||||
|
/// @}
|
||||||
|
|
||||||
|
/// \name Packet processing
|
||||||
|
/// @{
|
||||||
|
|
||||||
|
virtual EapPeerMethodResponseAction process_request_packet(
|
||||||
|
_In_bytecount_(dwReceivedPacketSize) const void *pReceivedPacket,
|
||||||
|
_In_ DWORD dwReceivedPacketSize);
|
||||||
|
|
||||||
|
virtual void get_response_packet(
|
||||||
|
_Out_ sanitizing_blob &packet,
|
||||||
|
_In_opt_ DWORD size_max = MAXDWORD);
|
||||||
|
|
||||||
|
/// @}
|
||||||
|
|
||||||
|
virtual void get_result(
|
||||||
|
_In_ EapPeerMethodResultReason reason,
|
||||||
|
_Out_ EapPeerMethodResult *pResult);
|
||||||
|
|
||||||
|
/// \name User Interaction
|
||||||
|
/// @{
|
||||||
|
|
||||||
|
virtual void get_ui_context(_Out_ sanitizing_blob &context_data);
|
||||||
|
|
||||||
|
virtual EapPeerMethodResponseAction set_ui_context(
|
||||||
|
_In_count_(dwUIContextDataSize) const BYTE *pUIContextData,
|
||||||
|
_In_ DWORD dwUIContextDataSize);
|
||||||
|
|
||||||
|
/// @}
|
||||||
|
|
||||||
|
protected:
|
||||||
|
config_method_eapgtc &m_cfg; ///< Method configuration
|
||||||
|
credentials &m_cred; ///< Method user credentials
|
||||||
|
winstd::sanitizing_wstring m_challenge; ///< GTC challenge
|
||||||
|
winstd::sanitizing_wstring m_response; ///< GTC response
|
||||||
|
};
|
||||||
|
|
||||||
|
/// @}
|
||||||
|
}
|
183
lib/GTC/src/Config.cpp
Normal file
183
lib/GTC/src/Config.cpp
Normal file
@@ -0,0 +1,183 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2015-2016 Amebis
|
||||||
|
Copyright 2016 GÉANT
|
||||||
|
|
||||||
|
This file is part of GÉANTLink.
|
||||||
|
|
||||||
|
GÉANTLink is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
GÉANTLink is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GÉANTLink. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "StdAfx.h"
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
using namespace winstd;
|
||||||
|
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
// eap::config_method_eapgtc
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
eap::config_method_eapgtc::config_method_eapgtc(_In_ module &mod, _In_ unsigned int level) : config_method_with_cred(mod, level)
|
||||||
|
{
|
||||||
|
// Default to Challenge/Response authentication mode.
|
||||||
|
m_cred.reset(new credentials_identity(mod));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::config_method_eapgtc::config_method_eapgtc(_In_ const config_method_eapgtc &other) :
|
||||||
|
config_method_with_cred(other)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::config_method_eapgtc::config_method_eapgtc(_Inout_ config_method_eapgtc &&other) :
|
||||||
|
config_method_with_cred(std::move(other))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::config_method_eapgtc& eap::config_method_eapgtc::operator=(_In_ const config_method_eapgtc &other)
|
||||||
|
{
|
||||||
|
if (this != &other)
|
||||||
|
(config_method_with_cred&)*this = other;
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::config_method_eapgtc& eap::config_method_eapgtc::operator=(_Inout_ config_method_eapgtc &&other)
|
||||||
|
{
|
||||||
|
if (this != &other)
|
||||||
|
(config_method_with_cred&&)*this = std::move(other);
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::config* eap::config_method_eapgtc::clone() const
|
||||||
|
{
|
||||||
|
return new config_method_eapgtc(*this);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void eap::config_method_eapgtc::save(_In_ IXMLDOMDocument *pDoc, _In_ IXMLDOMNode *pConfigRoot) const
|
||||||
|
{
|
||||||
|
assert(pDoc);
|
||||||
|
assert(pConfigRoot);
|
||||||
|
|
||||||
|
config_method_with_cred::save(pDoc, pConfigRoot);
|
||||||
|
|
||||||
|
HRESULT hr;
|
||||||
|
|
||||||
|
if (dynamic_cast<credentials_identity*>(m_cred.get()))
|
||||||
|
hr = eapxml::put_element_value(pDoc, pConfigRoot, bstr(L"AuthMode"), namespace_eapmetadata, bstr(L"Challenge/Response"));
|
||||||
|
else if (dynamic_cast<credentials_pass*>(m_cred.get()))
|
||||||
|
hr = eapxml::put_element_value(pDoc, pConfigRoot, bstr(L"AuthMode"), namespace_eapmetadata, bstr(L"Password"));
|
||||||
|
else
|
||||||
|
throw invalid_argument(__FUNCTION__ " Unsupported authentication mode.");
|
||||||
|
if (FAILED(hr))
|
||||||
|
throw com_runtime_error(hr, __FUNCTION__ " Error creating <AuthMode> element.");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void eap::config_method_eapgtc::load(_In_ IXMLDOMNode *pConfigRoot)
|
||||||
|
{
|
||||||
|
assert(pConfigRoot);
|
||||||
|
HRESULT hr;
|
||||||
|
wstring xpath(eapxml::get_xpath(pConfigRoot));
|
||||||
|
|
||||||
|
// Load authentication mode first, then (re)create credentials to match the authentication mode.
|
||||||
|
bstr auth_mode;
|
||||||
|
if (FAILED(hr = eapxml::get_element_value(pConfigRoot, bstr(L"eap-metadata:AuthMode"), auth_mode)) ||
|
||||||
|
CompareStringEx(LOCALE_NAME_INVARIANT, NORM_IGNORECASE, auth_mode, auth_mode.length(), _L("Challenge/Response"), -1, NULL, NULL, 0) == CSTR_EQUAL)
|
||||||
|
{
|
||||||
|
m_cred.reset(new eap::credentials_identity(m_module));
|
||||||
|
} else if (CompareStringEx(LOCALE_NAME_INVARIANT, NORM_IGNORECASE, auth_mode, auth_mode.length(), _L("Password"), -1, NULL, NULL, 0) == CSTR_EQUAL) {
|
||||||
|
m_cred.reset(new eap::credentials_pass(m_module));
|
||||||
|
} else
|
||||||
|
throw invalid_argument(string_printf(__FUNCTION__ " Unsupported authentication mode (%ls).", (BSTR)auth_mode));
|
||||||
|
|
||||||
|
// Load method configuration.
|
||||||
|
config_method_with_cred::load(pConfigRoot);
|
||||||
|
|
||||||
|
m_module.log_config((xpath + L"/AuthMode").c_str(), auth_mode);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void eap::config_method_eapgtc::operator<<(_Inout_ cursor_out &cursor) const
|
||||||
|
{
|
||||||
|
// Save authentication mode first, as credential loading will require this information.
|
||||||
|
if (dynamic_cast<credentials_identity*>(m_cred.get()))
|
||||||
|
cursor << auth_mode_response;
|
||||||
|
else if (dynamic_cast<credentials_pass*>(m_cred.get()))
|
||||||
|
cursor << auth_mode_password;
|
||||||
|
else
|
||||||
|
throw invalid_argument(__FUNCTION__ " Unsupported authentication mode.");
|
||||||
|
|
||||||
|
config_method_with_cred::operator<<(cursor);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
size_t eap::config_method_eapgtc::get_pk_size() const
|
||||||
|
{
|
||||||
|
auth_mode_t auth_mode;
|
||||||
|
if (dynamic_cast<credentials_identity*>(m_cred.get()))
|
||||||
|
auth_mode = auth_mode_response;
|
||||||
|
else if (dynamic_cast<credentials_pass*>(m_cred.get()))
|
||||||
|
auth_mode = auth_mode_password;
|
||||||
|
else
|
||||||
|
throw invalid_argument(__FUNCTION__ " Unsupported authentication mode.");
|
||||||
|
|
||||||
|
return
|
||||||
|
pksizeof(auth_mode) +
|
||||||
|
config_method_with_cred::get_pk_size();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void eap::config_method_eapgtc::operator>>(_Inout_ cursor_in &cursor)
|
||||||
|
{
|
||||||
|
// (Re)create credentials to match the authentication mode.
|
||||||
|
auth_mode_t auth_mode;
|
||||||
|
cursor >> auth_mode;
|
||||||
|
switch (auth_mode) {
|
||||||
|
case auth_mode_response: m_cred.reset(new eap::credentials_identity(m_module)); break;
|
||||||
|
case auth_mode_password: m_cred.reset(new eap::credentials_pass (m_module)); break;
|
||||||
|
default : throw invalid_argument(string_printf(__FUNCTION__ " Unsupported authentication mode (%u).", auth_mode));
|
||||||
|
}
|
||||||
|
|
||||||
|
config_method_with_cred::operator>>(cursor);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap_type_t eap::config_method_eapgtc::get_method_id() const
|
||||||
|
{
|
||||||
|
return eap_type_gtc;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const wchar_t* eap::config_method_eapgtc::get_method_str() const
|
||||||
|
{
|
||||||
|
return L"EAP-GTC";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::credentials* eap::config_method_eapgtc::make_credentials() const
|
||||||
|
{
|
||||||
|
if (dynamic_cast<credentials_identity*>(m_cred.get()))
|
||||||
|
return new eap::credentials_identity(m_module);
|
||||||
|
else if (dynamic_cast<credentials_pass*>(m_cred.get()))
|
||||||
|
return new eap::credentials_pass (m_module);
|
||||||
|
else
|
||||||
|
throw invalid_argument(__FUNCTION__ " Unsupported authentication mode.");
|
||||||
|
}
|
163
lib/GTC/src/Method.cpp
Normal file
163
lib/GTC/src/Method.cpp
Normal file
@@ -0,0 +1,163 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2015-2016 Amebis
|
||||||
|
Copyright 2016 GÉANT
|
||||||
|
|
||||||
|
This file is part of GÉANTLink.
|
||||||
|
|
||||||
|
GÉANTLink is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
GÉANTLink is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GÉANTLink. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "StdAfx.h"
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
using namespace winstd;
|
||||||
|
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
// eap::method_gtc
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
eap::method_gtc::method_gtc(_In_ module &mod, _In_ config_method_eapgtc &cfg, _In_ credentials &cred) :
|
||||||
|
m_cfg(cfg),
|
||||||
|
m_cred(cred),
|
||||||
|
method(mod)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::method_gtc::method_gtc(_Inout_ method_gtc &&other) :
|
||||||
|
m_cfg ( other.m_cfg ),
|
||||||
|
m_cred ( other.m_cred ),
|
||||||
|
m_challenge(std::move(other.m_challenge)),
|
||||||
|
m_response (std::move(other.m_response )),
|
||||||
|
method (std::move(other ))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::method_gtc& eap::method_gtc::operator=(_Inout_ method_gtc &&other)
|
||||||
|
{
|
||||||
|
if (this != std::addressof(other)) {
|
||||||
|
assert(std::addressof(m_cfg ) == std::addressof(other.m_cfg )); // Move method within same configuration only!
|
||||||
|
assert(std::addressof(m_cred) == std::addressof(other.m_cred)); // Move method within same credentials only!
|
||||||
|
(method&)*this = std::move(other );
|
||||||
|
m_challenge = std::move(other.m_challenge);
|
||||||
|
m_response = std::move(other.m_response );
|
||||||
|
}
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void eap::method_gtc::begin_session(
|
||||||
|
_In_ DWORD dwFlags,
|
||||||
|
_In_ const EapAttributes *pAttributeArray,
|
||||||
|
_In_ HANDLE hTokenImpersonateUser,
|
||||||
|
_In_opt_ DWORD dwMaxSendPacketSize)
|
||||||
|
{
|
||||||
|
method::begin_session(dwFlags, pAttributeArray, hTokenImpersonateUser, dwMaxSendPacketSize);
|
||||||
|
|
||||||
|
// Presume authentication will fail with generic protocol failure. (Pesimist!!!)
|
||||||
|
// We will reset once we get get_result(Success) call.
|
||||||
|
m_cfg.m_last_status = config_method::status_auth_failed;
|
||||||
|
m_cfg.m_last_msg.clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
EapPeerMethodResponseAction eap::method_gtc::process_request_packet(
|
||||||
|
_In_bytecount_(dwReceivedPacketSize) const void *pReceivedPacket,
|
||||||
|
_In_ DWORD dwReceivedPacketSize)
|
||||||
|
{
|
||||||
|
assert(pReceivedPacket || dwReceivedPacketSize == 0);
|
||||||
|
|
||||||
|
m_module.log_event(&EAPMETHOD_METHOD_HANDSHAKE_START2, event_data((unsigned int)eap_type_gtc), event_data::blank);
|
||||||
|
|
||||||
|
credentials_pass *cred_pass;
|
||||||
|
if (dynamic_cast<credentials_identity*>(&m_cred)) {
|
||||||
|
// Read authenticator challenge as UTF-8 encoded string.
|
||||||
|
MultiByteToWideChar(CP_UTF8, 0, (LPCSTR)pReceivedPacket, dwReceivedPacketSize, m_challenge);
|
||||||
|
|
||||||
|
m_module.log_event(&EAPMETHOD_GTC_RESPONSE_REQ, event_data((unsigned int)eap_type_gtc), event_data::blank);
|
||||||
|
|
||||||
|
// User must respond to the challenge.
|
||||||
|
return EapPeerMethodResponseActionInvokeUI;
|
||||||
|
} else if ((cred_pass = dynamic_cast<credentials_pass*>(&m_cred)) != NULL) {
|
||||||
|
// Ignore authenticator challenge and save password as GTC response.
|
||||||
|
m_response = cred_pass->m_password;
|
||||||
|
|
||||||
|
// Send the response.
|
||||||
|
m_cfg.m_last_status = config_method::status_cred_invalid; // Blame "credentials" if we fail beyond this point.
|
||||||
|
return EapPeerMethodResponseActionSend;
|
||||||
|
} else
|
||||||
|
throw invalid_argument(__FUNCTION__ " Unsupported authentication mode.");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void eap::method_gtc::get_response_packet(
|
||||||
|
_Out_ sanitizing_blob &packet,
|
||||||
|
_In_opt_ DWORD size_max)
|
||||||
|
{
|
||||||
|
// Encode GTC response as UTF-8.
|
||||||
|
sanitizing_string response_utf8;
|
||||||
|
WideCharToMultiByte(CP_UTF8, 0, m_response, response_utf8, NULL, NULL);
|
||||||
|
|
||||||
|
if (sizeof(sanitizing_string::value_type)*response_utf8.length() > size_max)
|
||||||
|
throw invalid_argument(string_printf(__FUNCTION__ " This method does not support packet fragmentation, but the data size is too big to fit in one packet (packet: %u, maximum: %u).", sizeof(sanitizing_string::value_type)*response_utf8.length(), size_max));
|
||||||
|
|
||||||
|
packet.assign(response_utf8.begin(), response_utf8.end());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void eap::method_gtc::get_result(
|
||||||
|
_In_ EapPeerMethodResultReason reason,
|
||||||
|
_Inout_ EapPeerMethodResult *pResult)
|
||||||
|
{
|
||||||
|
assert(pResult);
|
||||||
|
|
||||||
|
method::get_result(reason, pResult);
|
||||||
|
|
||||||
|
if (reason == EapPeerMethodResultSuccess)
|
||||||
|
m_cfg.m_last_status = config_method::status_success;
|
||||||
|
|
||||||
|
// Always ask EAP host to save the connection data. And it will save it *only* when we report "success".
|
||||||
|
// Don't worry. EapHost is well aware of failed authentication condition.
|
||||||
|
pResult->fSaveConnectionData = TRUE;
|
||||||
|
pResult->fIsSuccess = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void eap::method_gtc::get_ui_context(_Out_ sanitizing_blob &context_data)
|
||||||
|
{
|
||||||
|
// Return authenticator string.
|
||||||
|
context_data.assign(
|
||||||
|
reinterpret_cast<sanitizing_blob::const_pointer>(m_challenge.data() ),
|
||||||
|
reinterpret_cast<sanitizing_blob::const_pointer>(m_challenge.data() + m_challenge.length()));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
EapPeerMethodResponseAction eap::method_gtc::set_ui_context(
|
||||||
|
_In_count_(dwUIContextDataSize) const BYTE *pUIContextData,
|
||||||
|
_In_ DWORD dwUIContextDataSize)
|
||||||
|
{
|
||||||
|
m_module.log_event(&EAPMETHOD_GTC_RESPONSE, event_data((unsigned int)eap_type_gtc), event_data::blank);
|
||||||
|
|
||||||
|
// Save GTC response.
|
||||||
|
m_response.assign(
|
||||||
|
reinterpret_cast<sanitizing_wstring::const_pointer>(pUIContextData ),
|
||||||
|
reinterpret_cast<sanitizing_wstring::const_pointer>(pUIContextData + dwUIContextDataSize));
|
||||||
|
|
||||||
|
// Send the response.
|
||||||
|
m_cfg.m_last_status = config_method::status_cred_invalid; // Blame "credentials" if we fail beyond this point.
|
||||||
|
return EapPeerMethodResponseActionSend;
|
||||||
|
}
|
21
lib/GTC/src/StdAfx.cpp
Normal file
21
lib/GTC/src/StdAfx.cpp
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2015-2016 Amebis
|
||||||
|
Copyright 2016 GÉANT
|
||||||
|
|
||||||
|
This file is part of GÉANTLink.
|
||||||
|
|
||||||
|
GÉANTLink is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
GÉANTLink is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GÉANTLink. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "StdAfx.h"
|
30
lib/GTC/src/StdAfx.h
Normal file
30
lib/GTC/src/StdAfx.h
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2015-2016 Amebis
|
||||||
|
Copyright 2016 GÉANT
|
||||||
|
|
||||||
|
This file is part of GÉANTLink.
|
||||||
|
|
||||||
|
GÉANTLink is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
GÉANTLink is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GÉANTLink. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "../include/Config.h"
|
||||||
|
#include "../include/Method.h"
|
||||||
|
|
||||||
|
#include <WinStd/Hex.h>
|
||||||
|
|
||||||
|
#include <Windows.h>
|
||||||
|
#include <EapHostError.h> // include after Windows.h
|
||||||
|
#include <RasError.h>
|
2
lib/GTC_UI/build/.gitignore
vendored
Normal file
2
lib/GTC_UI/build/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
/temp
|
||||||
|
/*.user
|
12
lib/GTC_UI/build/GTC_UI.props
Normal file
12
lib/GTC_UI/build/GTC_UI.props
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ImportGroup Label="PropertySheets" />
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup />
|
||||||
|
<ItemDefinitionGroup>
|
||||||
|
<ClCompile>
|
||||||
|
<AdditionalIncludeDirectories>..\..\Events\build\temp\Events.$(Platform).$(Configuration).$(PlatformToolset);..\..\WinStd\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup />
|
||||||
|
</Project>
|
107
lib/GTC_UI/build/GTC_UI.vcxproj
Normal file
107
lib/GTC_UI/build/GTC_UI.vcxproj
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{34680813-3A52-46FB-B5A8-1E4BBF770855}</ProjectGuid>
|
||||||
|
<RootNamespace>GTC_UI</RootNamespace>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="..\..\..\include\Win32.props" />
|
||||||
|
<Import Project="..\..\..\include\Debug.props" />
|
||||||
|
<Import Project="GTC_UI.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="..\..\..\include\x64.props" />
|
||||||
|
<Import Project="..\..\..\include\Debug.props" />
|
||||||
|
<Import Project="GTC_UI.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="..\..\..\include\Win32.props" />
|
||||||
|
<Import Project="..\..\..\include\Release.props" />
|
||||||
|
<Import Project="GTC_UI.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="..\..\..\include\x64.props" />
|
||||||
|
<Import Project="..\..\..\include\Release.props" />
|
||||||
|
<Import Project="GTC_UI.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup />
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\include\GTC_UI.h" />
|
||||||
|
<ClInclude Include="..\res\wxGTC_UI.h" />
|
||||||
|
<ClInclude Include="..\src\StdAfx.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\res\wxGTC_UI.cpp" />
|
||||||
|
<ClCompile Include="..\src\GTC_UI.cpp" />
|
||||||
|
<ClCompile Include="..\src\StdAfx.cpp">
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\Events\build\Events.vcxproj">
|
||||||
|
<Project>{d63f24bd-92a0-4d6b-8b69-ed947e4d2b1b}</Project>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="..\res\wxGTC_UI.fbp" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
44
lib/GTC_UI/build/GTC_UI.vcxproj.filters
Normal file
44
lib/GTC_UI/build/GTC_UI.vcxproj.filters
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Resource Files">
|
||||||
|
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||||
|
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\src\StdAfx.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\include\GTC_UI.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\res\wxGTC_UI.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\src\StdAfx.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\GTC_UI.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\res\wxGTC_UI.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="..\res\wxGTC_UI.fbp">
|
||||||
|
<Filter>Resource Files</Filter>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
132
lib/GTC_UI/include/GTC_UI.h
Normal file
132
lib/GTC_UI/include/GTC_UI.h
Normal file
@@ -0,0 +1,132 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2015-2016 Amebis
|
||||||
|
Copyright 2016 GÉANT
|
||||||
|
|
||||||
|
This file is part of GÉANTLink.
|
||||||
|
|
||||||
|
GÉANTLink is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
GÉANTLink is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GÉANTLink. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "../../EAPBase_UI/include/EAP_UI.h"
|
||||||
|
#include "../../GTC/include/Config.h"
|
||||||
|
|
||||||
|
class wxGTCConfigPanel;
|
||||||
|
class wxGTCResponseDialog;
|
||||||
|
class wxGTCResponsePanel;
|
||||||
|
|
||||||
|
/// \addtogroup EAPBaseGUI
|
||||||
|
/// @{
|
||||||
|
|
||||||
|
///
|
||||||
|
/// GTC challenge/response credential entry panel
|
||||||
|
///
|
||||||
|
typedef wxIdentityCredentialsPanel<eap::credentials_identity, wxIdentityCredentialsPanelBase> wxGTCResponseCredentialsPanel;
|
||||||
|
|
||||||
|
///
|
||||||
|
/// GTC challenge/response credential configuration panel
|
||||||
|
///
|
||||||
|
typedef wxEAPCredentialsConfigPanel<eap::credentials_identity, wxGTCResponseCredentialsPanel> wxGTCResponseCredentialsConfigPanel;
|
||||||
|
|
||||||
|
///
|
||||||
|
/// GTC password credential entry panel
|
||||||
|
///
|
||||||
|
typedef wxPasswordCredentialsPanel<eap::credentials_pass, wxPasswordCredentialsPanelBase> wxGTCPasswordCredentialsPanel;
|
||||||
|
|
||||||
|
///
|
||||||
|
/// GTC password credential configuration panel
|
||||||
|
///
|
||||||
|
typedef wxEAPCredentialsConfigPanel<eap::credentials_pass, wxGTCPasswordCredentialsPanel> wxGTCPasswordCredentialsConfigPanel;
|
||||||
|
|
||||||
|
/// @}
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "../res/wxGTC_UI.h"
|
||||||
|
|
||||||
|
#include <Windows.h>
|
||||||
|
|
||||||
|
|
||||||
|
/// \addtogroup EAPBaseGUI
|
||||||
|
/// @{
|
||||||
|
|
||||||
|
///
|
||||||
|
/// GTC configuration panel
|
||||||
|
///
|
||||||
|
class wxGTCConfigPanel : public wxGTCConfigPanelBase
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
///
|
||||||
|
/// Constructs a configuration panel
|
||||||
|
///
|
||||||
|
wxGTCConfigPanel(const eap::config_provider &prov, eap::config_method_eapgtc &cfg, wxWindow* parent);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
/// \cond internal
|
||||||
|
virtual bool TransferDataToWindow();
|
||||||
|
virtual bool TransferDataFromWindow();
|
||||||
|
virtual void OnUpdateUI(wxUpdateUIEvent& event);
|
||||||
|
/// \endcond
|
||||||
|
|
||||||
|
protected:
|
||||||
|
const eap::config_provider &m_prov; ///< EAP provider
|
||||||
|
eap::config_method_eapgtc &m_cfg; ///< EAP-GTC configuration
|
||||||
|
|
||||||
|
wxGTCResponseCredentialsConfigPanel *m_credentials_resp; ///< Challenge/response credentials configuration panel
|
||||||
|
wxGTCPasswordCredentialsConfigPanel *m_credentials_pass; ///< Password credentials configuration panel
|
||||||
|
|
||||||
|
// Temporary configurations to hold data until applied
|
||||||
|
eap::config_method_eapgtc m_cfg_resp; ///< Method configuration for challenge/response mode
|
||||||
|
eap::config_method_eapgtc m_cfg_pass; ///< Method configuration for password mode
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// GTC challenge/response dialog
|
||||||
|
///
|
||||||
|
class wxGTCResponseDialog : public wxEAPGeneralDialog
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
///
|
||||||
|
/// Constructs a credential dialog
|
||||||
|
///
|
||||||
|
wxGTCResponseDialog(const eap::config_provider &prov, wxWindow *parent, wxWindowID id = wxID_ANY, const wxString &title = _("GTC Challenge"), const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
///
|
||||||
|
/// GTC challenge/response panel
|
||||||
|
///
|
||||||
|
class wxGTCResponsePanel : public wxGTCResponsePanelBase
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
///
|
||||||
|
/// Constructs a panel
|
||||||
|
///
|
||||||
|
/// \param[inout] response GTC response
|
||||||
|
/// \param[in ] challenge GTC challenge
|
||||||
|
/// \param[in ] parent Parent window
|
||||||
|
///
|
||||||
|
wxGTCResponsePanel(winstd::sanitizing_wstring &response, const wchar_t *challenge, wxWindow* parent);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
/// \cond internal
|
||||||
|
virtual bool TransferDataToWindow();
|
||||||
|
virtual bool TransferDataFromWindow();
|
||||||
|
/// \endcond
|
||||||
|
|
||||||
|
protected:
|
||||||
|
winstd::sanitizing_wstring &m_response_value; ///< GTC response
|
||||||
|
};
|
||||||
|
|
||||||
|
/// @}
|
92
lib/GTC_UI/res/wxGTC_UI.cpp
Normal file
92
lib/GTC_UI/res/wxGTC_UI.cpp
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
// C++ code generated with wxFormBuilder (version Jun 17 2015)
|
||||||
|
// http://www.wxformbuilder.org/
|
||||||
|
//
|
||||||
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
||||||
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include <StdAfx.h>
|
||||||
|
|
||||||
|
#include "wxGTC_UI.h"
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
wxGTCResponsePanelBase::wxGTCResponsePanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
|
||||||
|
{
|
||||||
|
m_sb_response = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("GTC Challenge") ), wxVERTICAL );
|
||||||
|
|
||||||
|
wxBoxSizer* sb_response_horiz;
|
||||||
|
sb_response_horiz = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
|
m_response_icon = new wxStaticBitmap( m_sb_response->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
sb_response_horiz->Add( m_response_icon, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
m_sb_response_vert = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
|
m_response_label = new wxStaticText( m_sb_response->GetStaticBox(), wxID_ANY, _("Please provide your response."), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_response_label->Wrap( 440 );
|
||||||
|
m_sb_response_vert->Add( m_response_label, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
wxFlexGridSizer* sb_response_tbl;
|
||||||
|
sb_response_tbl = new wxFlexGridSizer( 0, 2, 5, 5 );
|
||||||
|
sb_response_tbl->AddGrowableCol( 1 );
|
||||||
|
sb_response_tbl->SetFlexibleDirection( wxBOTH );
|
||||||
|
sb_response_tbl->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
||||||
|
|
||||||
|
m_challenge = new wxStaticText( m_sb_response->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_challenge->Wrap( -1 );
|
||||||
|
m_challenge->SetToolTip( _("Server challenge") );
|
||||||
|
|
||||||
|
sb_response_tbl->Add( m_challenge, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
|
m_response = new wxTextCtrl( m_sb_response->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_response->SetToolTip( _("Enter your response here") );
|
||||||
|
|
||||||
|
sb_response_tbl->Add( m_response, 2, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
m_sb_response_vert->Add( sb_response_tbl, 0, wxEXPAND|wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
sb_response_horiz->Add( m_sb_response_vert, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
m_sb_response->Add( sb_response_horiz, 0, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
this->SetSizer( m_sb_response );
|
||||||
|
this->Layout();
|
||||||
|
}
|
||||||
|
|
||||||
|
wxGTCResponsePanelBase::~wxGTCResponsePanelBase()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
wxGTCConfigPanelBase::wxGTCConfigPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
|
||||||
|
{
|
||||||
|
wxBoxSizer* sb_vertical;
|
||||||
|
sb_vertical = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
|
m_auth_mode_label = new wxStaticText( this, wxID_ANY, _("EAP-GTC authentication &mode:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_auth_mode_label->Wrap( -1 );
|
||||||
|
sb_vertical->Add( m_auth_mode_label, 0, wxBOTTOM, 5 );
|
||||||
|
|
||||||
|
m_auth_mode = new wxChoicebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxCHB_DEFAULT );
|
||||||
|
m_auth_mode->SetToolTip( _("Select EAP-GTC authentication mode from the list") );
|
||||||
|
|
||||||
|
sb_vertical->Add( m_auth_mode, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
this->SetSizer( sb_vertical );
|
||||||
|
this->Layout();
|
||||||
|
|
||||||
|
// Connect Events
|
||||||
|
this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( wxGTCConfigPanelBase::OnUpdateUI ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
wxGTCConfigPanelBase::~wxGTCConfigPanelBase()
|
||||||
|
{
|
||||||
|
// Disconnect Events
|
||||||
|
this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( wxGTCConfigPanelBase::OnUpdateUI ) );
|
||||||
|
|
||||||
|
}
|
695
lib/GTC_UI/res/wxGTC_UI.fbp
Normal file
695
lib/GTC_UI/res/wxGTC_UI.fbp
Normal file
@@ -0,0 +1,695 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
||||||
|
<wxFormBuilder_Project>
|
||||||
|
<FileVersion major="1" minor="13" />
|
||||||
|
<object class="Project" expanded="1">
|
||||||
|
<property name="class_decoration">; </property>
|
||||||
|
<property name="code_generation">C++</property>
|
||||||
|
<property name="disconnect_events">1</property>
|
||||||
|
<property name="disconnect_mode">source_name</property>
|
||||||
|
<property name="disconnect_php_events">0</property>
|
||||||
|
<property name="disconnect_python_events">0</property>
|
||||||
|
<property name="embedded_files_path">.</property>
|
||||||
|
<property name="encoding">UTF-8</property>
|
||||||
|
<property name="event_generation">connect</property>
|
||||||
|
<property name="file">wxGTC_UI</property>
|
||||||
|
<property name="first_id">1000</property>
|
||||||
|
<property name="help_provider">none</property>
|
||||||
|
<property name="internationalize">1</property>
|
||||||
|
<property name="name">wxGTC_UI</property>
|
||||||
|
<property name="namespace"></property>
|
||||||
|
<property name="path">.</property>
|
||||||
|
<property name="precompiled_header">#include <StdAfx.h></property>
|
||||||
|
<property name="relative_path">1</property>
|
||||||
|
<property name="skip_lua_events">1</property>
|
||||||
|
<property name="skip_php_events">1</property>
|
||||||
|
<property name="skip_python_events">1</property>
|
||||||
|
<property name="ui_table">UI</property>
|
||||||
|
<property name="use_enum">1</property>
|
||||||
|
<property name="use_microsoft_bom">1</property>
|
||||||
|
<object class="Panel" expanded="1">
|
||||||
|
<property name="aui_managed">0</property>
|
||||||
|
<property name="aui_manager_style">wxAUI_MGR_DEFAULT</property>
|
||||||
|
<property name="bg"></property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="enabled">1</property>
|
||||||
|
<property name="event_handler">impl_virtual</property>
|
||||||
|
<property name="fg"></property>
|
||||||
|
<property name="font"></property>
|
||||||
|
<property name="hidden">0</property>
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="name">wxGTCResponsePanelBase</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="size">500,-1</property>
|
||||||
|
<property name="subclass">; </property>
|
||||||
|
<property name="tooltip"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style">wxTAB_TRAVERSAL</property>
|
||||||
|
<event name="OnAuiFindManager"></event>
|
||||||
|
<event name="OnAuiPaneButton"></event>
|
||||||
|
<event name="OnAuiPaneClose"></event>
|
||||||
|
<event name="OnAuiPaneMaximize"></event>
|
||||||
|
<event name="OnAuiPaneRestore"></event>
|
||||||
|
<event name="OnAuiRender"></event>
|
||||||
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnEnterWindow"></event>
|
||||||
|
<event name="OnEraseBackground"></event>
|
||||||
|
<event name="OnInitDialog"></event>
|
||||||
|
<event name="OnKeyDown"></event>
|
||||||
|
<event name="OnKeyUp"></event>
|
||||||
|
<event name="OnKillFocus"></event>
|
||||||
|
<event name="OnLeaveWindow"></event>
|
||||||
|
<event name="OnLeftDClick"></event>
|
||||||
|
<event name="OnLeftDown"></event>
|
||||||
|
<event name="OnLeftUp"></event>
|
||||||
|
<event name="OnMiddleDClick"></event>
|
||||||
|
<event name="OnMiddleDown"></event>
|
||||||
|
<event name="OnMiddleUp"></event>
|
||||||
|
<event name="OnMotion"></event>
|
||||||
|
<event name="OnMouseEvents"></event>
|
||||||
|
<event name="OnMouseWheel"></event>
|
||||||
|
<event name="OnPaint"></event>
|
||||||
|
<event name="OnRightDClick"></event>
|
||||||
|
<event name="OnRightDown"></event>
|
||||||
|
<event name="OnRightUp"></event>
|
||||||
|
<event name="OnSetFocus"></event>
|
||||||
|
<event name="OnSize"></event>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
|
<object class="wxStaticBoxSizer" expanded="1">
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="label">GTC Challenge</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="name">m_sb_response</property>
|
||||||
|
<property name="orient">wxVERTICAL</property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxBoxSizer" expanded="1">
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="name">sb_response_horiz</property>
|
||||||
|
<property name="orient">wxHORIZONTAL</property>
|
||||||
|
<property name="permission">none</property>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxALL</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxStaticBitmap" expanded="1">
|
||||||
|
<property name="BottomDockable">1</property>
|
||||||
|
<property name="LeftDockable">1</property>
|
||||||
|
<property name="RightDockable">1</property>
|
||||||
|
<property name="TopDockable">1</property>
|
||||||
|
<property name="aui_layer"></property>
|
||||||
|
<property name="aui_name"></property>
|
||||||
|
<property name="aui_position"></property>
|
||||||
|
<property name="aui_row"></property>
|
||||||
|
<property name="best_size"></property>
|
||||||
|
<property name="bg"></property>
|
||||||
|
<property name="bitmap">Load From Icon Resource; ; [32; 32]</property>
|
||||||
|
<property name="caption"></property>
|
||||||
|
<property name="caption_visible">1</property>
|
||||||
|
<property name="center_pane">0</property>
|
||||||
|
<property name="close_button">1</property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="default_pane">0</property>
|
||||||
|
<property name="dock">Dock</property>
|
||||||
|
<property name="dock_fixed">0</property>
|
||||||
|
<property name="docking">Left</property>
|
||||||
|
<property name="enabled">1</property>
|
||||||
|
<property name="fg"></property>
|
||||||
|
<property name="floatable">1</property>
|
||||||
|
<property name="font"></property>
|
||||||
|
<property name="gripper">0</property>
|
||||||
|
<property name="hidden">0</property>
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="max_size"></property>
|
||||||
|
<property name="maximize_button">0</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="min_size"></property>
|
||||||
|
<property name="minimize_button">0</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="moveable">1</property>
|
||||||
|
<property name="name">m_response_icon</property>
|
||||||
|
<property name="pane_border">1</property>
|
||||||
|
<property name="pane_position"></property>
|
||||||
|
<property name="pane_size"></property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="pin_button">1</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="resize">Resizable</property>
|
||||||
|
<property name="show">1</property>
|
||||||
|
<property name="size"></property>
|
||||||
|
<property name="subclass"></property>
|
||||||
|
<property name="toolbar_pane">0</property>
|
||||||
|
<property name="tooltip"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style"></property>
|
||||||
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnEnterWindow"></event>
|
||||||
|
<event name="OnEraseBackground"></event>
|
||||||
|
<event name="OnKeyDown"></event>
|
||||||
|
<event name="OnKeyUp"></event>
|
||||||
|
<event name="OnKillFocus"></event>
|
||||||
|
<event name="OnLeaveWindow"></event>
|
||||||
|
<event name="OnLeftDClick"></event>
|
||||||
|
<event name="OnLeftDown"></event>
|
||||||
|
<event name="OnLeftUp"></event>
|
||||||
|
<event name="OnMiddleDClick"></event>
|
||||||
|
<event name="OnMiddleDown"></event>
|
||||||
|
<event name="OnMiddleUp"></event>
|
||||||
|
<event name="OnMotion"></event>
|
||||||
|
<event name="OnMouseEvents"></event>
|
||||||
|
<event name="OnMouseWheel"></event>
|
||||||
|
<event name="OnPaint"></event>
|
||||||
|
<event name="OnRightDClick"></event>
|
||||||
|
<event name="OnRightDown"></event>
|
||||||
|
<event name="OnRightUp"></event>
|
||||||
|
<event name="OnSetFocus"></event>
|
||||||
|
<event name="OnSize"></event>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND</property>
|
||||||
|
<property name="proportion">1</property>
|
||||||
|
<object class="wxBoxSizer" expanded="1">
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="name">m_sb_response_vert</property>
|
||||||
|
<property name="orient">wxVERTICAL</property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxALL|wxEXPAND</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxStaticText" expanded="1">
|
||||||
|
<property name="BottomDockable">1</property>
|
||||||
|
<property name="LeftDockable">1</property>
|
||||||
|
<property name="RightDockable">1</property>
|
||||||
|
<property name="TopDockable">1</property>
|
||||||
|
<property name="aui_layer"></property>
|
||||||
|
<property name="aui_name"></property>
|
||||||
|
<property name="aui_position"></property>
|
||||||
|
<property name="aui_row"></property>
|
||||||
|
<property name="best_size"></property>
|
||||||
|
<property name="bg"></property>
|
||||||
|
<property name="caption"></property>
|
||||||
|
<property name="caption_visible">1</property>
|
||||||
|
<property name="center_pane">0</property>
|
||||||
|
<property name="close_button">1</property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="default_pane">0</property>
|
||||||
|
<property name="dock">Dock</property>
|
||||||
|
<property name="dock_fixed">0</property>
|
||||||
|
<property name="docking">Left</property>
|
||||||
|
<property name="enabled">1</property>
|
||||||
|
<property name="fg"></property>
|
||||||
|
<property name="floatable">1</property>
|
||||||
|
<property name="font"></property>
|
||||||
|
<property name="gripper">0</property>
|
||||||
|
<property name="hidden">0</property>
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="label">Please provide your response.</property>
|
||||||
|
<property name="max_size"></property>
|
||||||
|
<property name="maximize_button">0</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="min_size"></property>
|
||||||
|
<property name="minimize_button">0</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="moveable">1</property>
|
||||||
|
<property name="name">m_response_label</property>
|
||||||
|
<property name="pane_border">1</property>
|
||||||
|
<property name="pane_position"></property>
|
||||||
|
<property name="pane_size"></property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="pin_button">1</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="resize">Resizable</property>
|
||||||
|
<property name="show">1</property>
|
||||||
|
<property name="size"></property>
|
||||||
|
<property name="style"></property>
|
||||||
|
<property name="subclass"></property>
|
||||||
|
<property name="toolbar_pane">0</property>
|
||||||
|
<property name="tooltip"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style"></property>
|
||||||
|
<property name="wrap">440</property>
|
||||||
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnEnterWindow"></event>
|
||||||
|
<event name="OnEraseBackground"></event>
|
||||||
|
<event name="OnKeyDown"></event>
|
||||||
|
<event name="OnKeyUp"></event>
|
||||||
|
<event name="OnKillFocus"></event>
|
||||||
|
<event name="OnLeaveWindow"></event>
|
||||||
|
<event name="OnLeftDClick"></event>
|
||||||
|
<event name="OnLeftDown"></event>
|
||||||
|
<event name="OnLeftUp"></event>
|
||||||
|
<event name="OnMiddleDClick"></event>
|
||||||
|
<event name="OnMiddleDown"></event>
|
||||||
|
<event name="OnMiddleUp"></event>
|
||||||
|
<event name="OnMotion"></event>
|
||||||
|
<event name="OnMouseEvents"></event>
|
||||||
|
<event name="OnMouseWheel"></event>
|
||||||
|
<event name="OnPaint"></event>
|
||||||
|
<event name="OnRightDClick"></event>
|
||||||
|
<event name="OnRightDown"></event>
|
||||||
|
<event name="OnRightUp"></event>
|
||||||
|
<event name="OnSetFocus"></event>
|
||||||
|
<event name="OnSize"></event>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND|wxALL</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxFlexGridSizer" expanded="1">
|
||||||
|
<property name="cols">2</property>
|
||||||
|
<property name="flexible_direction">wxBOTH</property>
|
||||||
|
<property name="growablecols">1</property>
|
||||||
|
<property name="growablerows"></property>
|
||||||
|
<property name="hgap">5</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="name">sb_response_tbl</property>
|
||||||
|
<property name="non_flexible_grow_mode">wxFLEX_GROWMODE_SPECIFIED</property>
|
||||||
|
<property name="permission">none</property>
|
||||||
|
<property name="rows">0</property>
|
||||||
|
<property name="vgap">5</property>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxALIGN_CENTER_VERTICAL</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxStaticText" expanded="1">
|
||||||
|
<property name="BottomDockable">1</property>
|
||||||
|
<property name="LeftDockable">1</property>
|
||||||
|
<property name="RightDockable">1</property>
|
||||||
|
<property name="TopDockable">1</property>
|
||||||
|
<property name="aui_layer"></property>
|
||||||
|
<property name="aui_name"></property>
|
||||||
|
<property name="aui_position"></property>
|
||||||
|
<property name="aui_row"></property>
|
||||||
|
<property name="best_size"></property>
|
||||||
|
<property name="bg"></property>
|
||||||
|
<property name="caption"></property>
|
||||||
|
<property name="caption_visible">1</property>
|
||||||
|
<property name="center_pane">0</property>
|
||||||
|
<property name="close_button">1</property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="default_pane">0</property>
|
||||||
|
<property name="dock">Dock</property>
|
||||||
|
<property name="dock_fixed">0</property>
|
||||||
|
<property name="docking">Left</property>
|
||||||
|
<property name="enabled">1</property>
|
||||||
|
<property name="fg"></property>
|
||||||
|
<property name="floatable">1</property>
|
||||||
|
<property name="font"></property>
|
||||||
|
<property name="gripper">0</property>
|
||||||
|
<property name="hidden">0</property>
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="label"></property>
|
||||||
|
<property name="max_size"></property>
|
||||||
|
<property name="maximize_button">0</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="min_size"></property>
|
||||||
|
<property name="minimize_button">0</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="moveable">1</property>
|
||||||
|
<property name="name">m_challenge</property>
|
||||||
|
<property name="pane_border">1</property>
|
||||||
|
<property name="pane_position"></property>
|
||||||
|
<property name="pane_size"></property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="pin_button">1</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="resize">Resizable</property>
|
||||||
|
<property name="show">1</property>
|
||||||
|
<property name="size"></property>
|
||||||
|
<property name="style"></property>
|
||||||
|
<property name="subclass"></property>
|
||||||
|
<property name="toolbar_pane">0</property>
|
||||||
|
<property name="tooltip">Server challenge</property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style"></property>
|
||||||
|
<property name="wrap">-1</property>
|
||||||
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnEnterWindow"></event>
|
||||||
|
<event name="OnEraseBackground"></event>
|
||||||
|
<event name="OnKeyDown"></event>
|
||||||
|
<event name="OnKeyUp"></event>
|
||||||
|
<event name="OnKillFocus"></event>
|
||||||
|
<event name="OnLeaveWindow"></event>
|
||||||
|
<event name="OnLeftDClick"></event>
|
||||||
|
<event name="OnLeftDown"></event>
|
||||||
|
<event name="OnLeftUp"></event>
|
||||||
|
<event name="OnMiddleDClick"></event>
|
||||||
|
<event name="OnMiddleDown"></event>
|
||||||
|
<event name="OnMiddleUp"></event>
|
||||||
|
<event name="OnMotion"></event>
|
||||||
|
<event name="OnMouseEvents"></event>
|
||||||
|
<event name="OnMouseWheel"></event>
|
||||||
|
<event name="OnPaint"></event>
|
||||||
|
<event name="OnRightDClick"></event>
|
||||||
|
<event name="OnRightDown"></event>
|
||||||
|
<event name="OnRightUp"></event>
|
||||||
|
<event name="OnSetFocus"></event>
|
||||||
|
<event name="OnSize"></event>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND|wxALIGN_CENTER_VERTICAL</property>
|
||||||
|
<property name="proportion">2</property>
|
||||||
|
<object class="wxTextCtrl" expanded="1">
|
||||||
|
<property name="BottomDockable">1</property>
|
||||||
|
<property name="LeftDockable">1</property>
|
||||||
|
<property name="RightDockable">1</property>
|
||||||
|
<property name="TopDockable">1</property>
|
||||||
|
<property name="aui_layer"></property>
|
||||||
|
<property name="aui_name"></property>
|
||||||
|
<property name="aui_position"></property>
|
||||||
|
<property name="aui_row"></property>
|
||||||
|
<property name="best_size"></property>
|
||||||
|
<property name="bg"></property>
|
||||||
|
<property name="caption"></property>
|
||||||
|
<property name="caption_visible">1</property>
|
||||||
|
<property name="center_pane">0</property>
|
||||||
|
<property name="close_button">1</property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="default_pane">0</property>
|
||||||
|
<property name="dock">Dock</property>
|
||||||
|
<property name="dock_fixed">0</property>
|
||||||
|
<property name="docking">Left</property>
|
||||||
|
<property name="enabled">1</property>
|
||||||
|
<property name="fg"></property>
|
||||||
|
<property name="floatable">1</property>
|
||||||
|
<property name="font"></property>
|
||||||
|
<property name="gripper">0</property>
|
||||||
|
<property name="hidden">0</property>
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="max_size"></property>
|
||||||
|
<property name="maximize_button">0</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="maxlength"></property>
|
||||||
|
<property name="min_size"></property>
|
||||||
|
<property name="minimize_button">0</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="moveable">1</property>
|
||||||
|
<property name="name">m_response</property>
|
||||||
|
<property name="pane_border">1</property>
|
||||||
|
<property name="pane_position"></property>
|
||||||
|
<property name="pane_size"></property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="pin_button">1</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="resize">Resizable</property>
|
||||||
|
<property name="show">1</property>
|
||||||
|
<property name="size"></property>
|
||||||
|
<property name="style"></property>
|
||||||
|
<property name="subclass"></property>
|
||||||
|
<property name="toolbar_pane">0</property>
|
||||||
|
<property name="tooltip">Enter your response here</property>
|
||||||
|
<property name="validator_data_type"></property>
|
||||||
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
<property name="validator_variable"></property>
|
||||||
|
<property name="value"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style"></property>
|
||||||
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnEnterWindow"></event>
|
||||||
|
<event name="OnEraseBackground"></event>
|
||||||
|
<event name="OnKeyDown"></event>
|
||||||
|
<event name="OnKeyUp"></event>
|
||||||
|
<event name="OnKillFocus"></event>
|
||||||
|
<event name="OnLeaveWindow"></event>
|
||||||
|
<event name="OnLeftDClick"></event>
|
||||||
|
<event name="OnLeftDown"></event>
|
||||||
|
<event name="OnLeftUp"></event>
|
||||||
|
<event name="OnMiddleDClick"></event>
|
||||||
|
<event name="OnMiddleDown"></event>
|
||||||
|
<event name="OnMiddleUp"></event>
|
||||||
|
<event name="OnMotion"></event>
|
||||||
|
<event name="OnMouseEvents"></event>
|
||||||
|
<event name="OnMouseWheel"></event>
|
||||||
|
<event name="OnPaint"></event>
|
||||||
|
<event name="OnRightDClick"></event>
|
||||||
|
<event name="OnRightDown"></event>
|
||||||
|
<event name="OnRightUp"></event>
|
||||||
|
<event name="OnSetFocus"></event>
|
||||||
|
<event name="OnSize"></event>
|
||||||
|
<event name="OnText"></event>
|
||||||
|
<event name="OnTextEnter"></event>
|
||||||
|
<event name="OnTextMaxLen"></event>
|
||||||
|
<event name="OnTextURL"></event>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="Panel" expanded="1">
|
||||||
|
<property name="aui_managed">0</property>
|
||||||
|
<property name="aui_manager_style">wxAUI_MGR_DEFAULT</property>
|
||||||
|
<property name="bg"></property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="enabled">1</property>
|
||||||
|
<property name="event_handler">impl_virtual</property>
|
||||||
|
<property name="fg"></property>
|
||||||
|
<property name="font"></property>
|
||||||
|
<property name="hidden">0</property>
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="name">wxGTCConfigPanelBase</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="size">500,-1</property>
|
||||||
|
<property name="subclass"></property>
|
||||||
|
<property name="tooltip"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style">wxTAB_TRAVERSAL</property>
|
||||||
|
<event name="OnAuiFindManager"></event>
|
||||||
|
<event name="OnAuiPaneButton"></event>
|
||||||
|
<event name="OnAuiPaneClose"></event>
|
||||||
|
<event name="OnAuiPaneMaximize"></event>
|
||||||
|
<event name="OnAuiPaneRestore"></event>
|
||||||
|
<event name="OnAuiRender"></event>
|
||||||
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnEnterWindow"></event>
|
||||||
|
<event name="OnEraseBackground"></event>
|
||||||
|
<event name="OnInitDialog"></event>
|
||||||
|
<event name="OnKeyDown"></event>
|
||||||
|
<event name="OnKeyUp"></event>
|
||||||
|
<event name="OnKillFocus"></event>
|
||||||
|
<event name="OnLeaveWindow"></event>
|
||||||
|
<event name="OnLeftDClick"></event>
|
||||||
|
<event name="OnLeftDown"></event>
|
||||||
|
<event name="OnLeftUp"></event>
|
||||||
|
<event name="OnMiddleDClick"></event>
|
||||||
|
<event name="OnMiddleDown"></event>
|
||||||
|
<event name="OnMiddleUp"></event>
|
||||||
|
<event name="OnMotion"></event>
|
||||||
|
<event name="OnMouseEvents"></event>
|
||||||
|
<event name="OnMouseWheel"></event>
|
||||||
|
<event name="OnPaint"></event>
|
||||||
|
<event name="OnRightDClick"></event>
|
||||||
|
<event name="OnRightDown"></event>
|
||||||
|
<event name="OnRightUp"></event>
|
||||||
|
<event name="OnSetFocus"></event>
|
||||||
|
<event name="OnSize"></event>
|
||||||
|
<event name="OnUpdateUI">OnUpdateUI</event>
|
||||||
|
<object class="wxBoxSizer" expanded="1">
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="name">sb_vertical</property>
|
||||||
|
<property name="orient">wxVERTICAL</property>
|
||||||
|
<property name="permission">none</property>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxBOTTOM</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxStaticText" expanded="1">
|
||||||
|
<property name="BottomDockable">1</property>
|
||||||
|
<property name="LeftDockable">1</property>
|
||||||
|
<property name="RightDockable">1</property>
|
||||||
|
<property name="TopDockable">1</property>
|
||||||
|
<property name="aui_layer"></property>
|
||||||
|
<property name="aui_name"></property>
|
||||||
|
<property name="aui_position"></property>
|
||||||
|
<property name="aui_row"></property>
|
||||||
|
<property name="best_size"></property>
|
||||||
|
<property name="bg"></property>
|
||||||
|
<property name="caption"></property>
|
||||||
|
<property name="caption_visible">1</property>
|
||||||
|
<property name="center_pane">0</property>
|
||||||
|
<property name="close_button">1</property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="default_pane">0</property>
|
||||||
|
<property name="dock">Dock</property>
|
||||||
|
<property name="dock_fixed">0</property>
|
||||||
|
<property name="docking">Left</property>
|
||||||
|
<property name="enabled">1</property>
|
||||||
|
<property name="fg"></property>
|
||||||
|
<property name="floatable">1</property>
|
||||||
|
<property name="font"></property>
|
||||||
|
<property name="gripper">0</property>
|
||||||
|
<property name="hidden">0</property>
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="label">EAP-GTC authentication &mode:</property>
|
||||||
|
<property name="max_size"></property>
|
||||||
|
<property name="maximize_button">0</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="min_size"></property>
|
||||||
|
<property name="minimize_button">0</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="moveable">1</property>
|
||||||
|
<property name="name">m_auth_mode_label</property>
|
||||||
|
<property name="pane_border">1</property>
|
||||||
|
<property name="pane_position"></property>
|
||||||
|
<property name="pane_size"></property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="pin_button">1</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="resize">Resizable</property>
|
||||||
|
<property name="show">1</property>
|
||||||
|
<property name="size"></property>
|
||||||
|
<property name="style"></property>
|
||||||
|
<property name="subclass"></property>
|
||||||
|
<property name="toolbar_pane">0</property>
|
||||||
|
<property name="tooltip"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style"></property>
|
||||||
|
<property name="wrap">-1</property>
|
||||||
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnEnterWindow"></event>
|
||||||
|
<event name="OnEraseBackground"></event>
|
||||||
|
<event name="OnKeyDown"></event>
|
||||||
|
<event name="OnKeyUp"></event>
|
||||||
|
<event name="OnKillFocus"></event>
|
||||||
|
<event name="OnLeaveWindow"></event>
|
||||||
|
<event name="OnLeftDClick"></event>
|
||||||
|
<event name="OnLeftDown"></event>
|
||||||
|
<event name="OnLeftUp"></event>
|
||||||
|
<event name="OnMiddleDClick"></event>
|
||||||
|
<event name="OnMiddleDown"></event>
|
||||||
|
<event name="OnMiddleUp"></event>
|
||||||
|
<event name="OnMotion"></event>
|
||||||
|
<event name="OnMouseEvents"></event>
|
||||||
|
<event name="OnMouseWheel"></event>
|
||||||
|
<event name="OnPaint"></event>
|
||||||
|
<event name="OnRightDClick"></event>
|
||||||
|
<event name="OnRightDown"></event>
|
||||||
|
<event name="OnRightUp"></event>
|
||||||
|
<event name="OnSetFocus"></event>
|
||||||
|
<event name="OnSize"></event>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND</property>
|
||||||
|
<property name="proportion">1</property>
|
||||||
|
<object class="wxChoicebook" expanded="1">
|
||||||
|
<property name="BottomDockable">1</property>
|
||||||
|
<property name="LeftDockable">1</property>
|
||||||
|
<property name="RightDockable">1</property>
|
||||||
|
<property name="TopDockable">1</property>
|
||||||
|
<property name="aui_layer"></property>
|
||||||
|
<property name="aui_name"></property>
|
||||||
|
<property name="aui_position"></property>
|
||||||
|
<property name="aui_row"></property>
|
||||||
|
<property name="best_size"></property>
|
||||||
|
<property name="bg"></property>
|
||||||
|
<property name="caption"></property>
|
||||||
|
<property name="caption_visible">1</property>
|
||||||
|
<property name="center_pane">0</property>
|
||||||
|
<property name="close_button">1</property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="default_pane">0</property>
|
||||||
|
<property name="dock">Dock</property>
|
||||||
|
<property name="dock_fixed">0</property>
|
||||||
|
<property name="docking">Left</property>
|
||||||
|
<property name="enabled">1</property>
|
||||||
|
<property name="fg"></property>
|
||||||
|
<property name="floatable">1</property>
|
||||||
|
<property name="font"></property>
|
||||||
|
<property name="gripper">0</property>
|
||||||
|
<property name="hidden">0</property>
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="max_size"></property>
|
||||||
|
<property name="maximize_button">0</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="min_size"></property>
|
||||||
|
<property name="minimize_button">0</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="moveable">1</property>
|
||||||
|
<property name="name">m_auth_mode</property>
|
||||||
|
<property name="pane_border">1</property>
|
||||||
|
<property name="pane_position"></property>
|
||||||
|
<property name="pane_size"></property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="pin_button">1</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="resize">Resizable</property>
|
||||||
|
<property name="show">1</property>
|
||||||
|
<property name="size"></property>
|
||||||
|
<property name="style">wxCHB_DEFAULT</property>
|
||||||
|
<property name="subclass"></property>
|
||||||
|
<property name="toolbar_pane">0</property>
|
||||||
|
<property name="tooltip">Select EAP-GTC authentication mode from the list</property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style"></property>
|
||||||
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnChoicebookPageChanged"></event>
|
||||||
|
<event name="OnChoicebookPageChanging"></event>
|
||||||
|
<event name="OnEnterWindow"></event>
|
||||||
|
<event name="OnEraseBackground"></event>
|
||||||
|
<event name="OnKeyDown"></event>
|
||||||
|
<event name="OnKeyUp"></event>
|
||||||
|
<event name="OnKillFocus"></event>
|
||||||
|
<event name="OnLeaveWindow"></event>
|
||||||
|
<event name="OnLeftDClick"></event>
|
||||||
|
<event name="OnLeftDown"></event>
|
||||||
|
<event name="OnLeftUp"></event>
|
||||||
|
<event name="OnMiddleDClick"></event>
|
||||||
|
<event name="OnMiddleDown"></event>
|
||||||
|
<event name="OnMiddleUp"></event>
|
||||||
|
<event name="OnMotion"></event>
|
||||||
|
<event name="OnMouseEvents"></event>
|
||||||
|
<event name="OnMouseWheel"></event>
|
||||||
|
<event name="OnPaint"></event>
|
||||||
|
<event name="OnRightDClick"></event>
|
||||||
|
<event name="OnRightDown"></event>
|
||||||
|
<event name="OnRightUp"></event>
|
||||||
|
<event name="OnSetFocus"></event>
|
||||||
|
<event name="OnSize"></event>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</wxFormBuilder_Project>
|
76
lib/GTC_UI/res/wxGTC_UI.h
Normal file
76
lib/GTC_UI/res/wxGTC_UI.h
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
// C++ code generated with wxFormBuilder (version Jun 17 2015)
|
||||||
|
// http://www.wxformbuilder.org/
|
||||||
|
//
|
||||||
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
||||||
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef __WXGTC_UI_H__
|
||||||
|
#define __WXGTC_UI_H__
|
||||||
|
|
||||||
|
#include <wx/artprov.h>
|
||||||
|
#include <wx/xrc/xmlres.h>
|
||||||
|
#include <wx/intl.h>
|
||||||
|
#include <wx/bitmap.h>
|
||||||
|
#include <wx/image.h>
|
||||||
|
#include <wx/icon.h>
|
||||||
|
#include <wx/statbmp.h>
|
||||||
|
#include <wx/gdicmn.h>
|
||||||
|
#include <wx/font.h>
|
||||||
|
#include <wx/colour.h>
|
||||||
|
#include <wx/settings.h>
|
||||||
|
#include <wx/string.h>
|
||||||
|
#include <wx/stattext.h>
|
||||||
|
#include <wx/textctrl.h>
|
||||||
|
#include <wx/sizer.h>
|
||||||
|
#include <wx/statbox.h>
|
||||||
|
#include <wx/panel.h>
|
||||||
|
#include <wx/choicebk.h>
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
/// Class wxGTCResponsePanelBase
|
||||||
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
class wxGTCResponsePanelBase : public wxPanel
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
|
||||||
|
protected:
|
||||||
|
wxStaticBoxSizer* m_sb_response;
|
||||||
|
wxStaticBitmap* m_response_icon;
|
||||||
|
wxBoxSizer* m_sb_response_vert;
|
||||||
|
wxStaticText* m_response_label;
|
||||||
|
wxStaticText* m_challenge;
|
||||||
|
wxTextCtrl* m_response;
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
wxGTCResponsePanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL );
|
||||||
|
~wxGTCResponsePanelBase();
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
/// Class wxGTCConfigPanelBase
|
||||||
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
class wxGTCConfigPanelBase : public wxPanel
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
|
||||||
|
protected:
|
||||||
|
wxStaticText* m_auth_mode_label;
|
||||||
|
wxChoicebook* m_auth_mode;
|
||||||
|
|
||||||
|
// Virtual event handlers, overide them in your derived class
|
||||||
|
virtual void OnUpdateUI( wxUpdateUIEvent& event ) { event.Skip(); }
|
||||||
|
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
wxGTCConfigPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL );
|
||||||
|
~wxGTCConfigPanelBase();
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif //__WXGTC_UI_H__
|
163
lib/GTC_UI/src/GTC_UI.cpp
Normal file
163
lib/GTC_UI/src/GTC_UI.cpp
Normal file
@@ -0,0 +1,163 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2015-2016 Amebis
|
||||||
|
Copyright 2016 GÉANT
|
||||||
|
|
||||||
|
This file is part of GÉANTLink.
|
||||||
|
|
||||||
|
GÉANTLink is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
GÉANTLink is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GÉANTLink. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "StdAfx.h"
|
||||||
|
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
// wxGTCConfigPanel
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
wxGTCConfigPanel::wxGTCConfigPanel(const eap::config_provider &prov, eap::config_method_eapgtc &cfg, wxWindow* parent) :
|
||||||
|
m_prov (prov ),
|
||||||
|
m_cfg (cfg ),
|
||||||
|
m_cfg_resp(cfg.m_module, cfg.m_level),
|
||||||
|
m_cfg_pass(cfg.m_module, cfg.m_level),
|
||||||
|
wxGTCConfigPanelBase(parent)
|
||||||
|
{
|
||||||
|
// Initialize Password authentication mode properly. Challenge/Response mode does not require initialization, since it is initialized so by default.
|
||||||
|
m_cfg_pass.m_cred.reset(new eap::credentials_pass(m_cfg.m_module));
|
||||||
|
|
||||||
|
m_credentials_resp = new wxGTCResponseCredentialsConfigPanel(m_prov, m_cfg_resp, m_auth_mode);
|
||||||
|
m_auth_mode->AddPage(m_credentials_resp, _("Challenge/Response"));
|
||||||
|
m_credentials_pass = new wxGTCPasswordCredentialsConfigPanel(m_prov, m_cfg_pass, m_auth_mode);
|
||||||
|
m_auth_mode->AddPage(m_credentials_pass, _("Password"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// \cond internal
|
||||||
|
|
||||||
|
bool wxGTCConfigPanel::TransferDataToWindow()
|
||||||
|
{
|
||||||
|
eap::credentials_identity *cred_resp;
|
||||||
|
eap::credentials_pass *cred_pass;
|
||||||
|
|
||||||
|
if ((cred_resp = dynamic_cast<eap::credentials_identity*>(m_cfg.m_cred.get())) != NULL) {
|
||||||
|
m_cfg_resp = m_cfg;
|
||||||
|
m_auth_mode->SetSelection(0); // 0=Challenge/Response
|
||||||
|
} else if ((cred_pass = dynamic_cast<eap::credentials_pass*>(m_cfg.m_cred.get())) != NULL) {
|
||||||
|
m_cfg_pass = m_cfg;
|
||||||
|
m_auth_mode->SetSelection(1); // 1=Password
|
||||||
|
} else
|
||||||
|
wxFAIL_MSG(wxT("Unsupported authentication mode."));
|
||||||
|
|
||||||
|
return wxGTCConfigPanelBase::TransferDataToWindow();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool wxGTCConfigPanel::TransferDataFromWindow()
|
||||||
|
{
|
||||||
|
wxCHECK(wxGTCConfigPanelBase::TransferDataFromWindow(), false);
|
||||||
|
|
||||||
|
if (!m_prov.m_read_only) {
|
||||||
|
// This is not a provider-locked configuration. Save the data.
|
||||||
|
switch (m_auth_mode->GetSelection()) {
|
||||||
|
case 0: // 0=Challenge/Response
|
||||||
|
m_cfg = m_cfg_resp;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 1: // 1=Password
|
||||||
|
m_cfg = m_cfg_pass;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
wxFAIL_MSG(wxT("Unsupported authentication mode."));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void wxGTCConfigPanel::OnUpdateUI(wxUpdateUIEvent& event)
|
||||||
|
{
|
||||||
|
UNREFERENCED_PARAMETER(event);
|
||||||
|
|
||||||
|
if (m_prov.m_read_only) {
|
||||||
|
// This is provider-locked configuration. Disable controls.
|
||||||
|
m_auth_mode_label ->Enable(false);
|
||||||
|
m_auth_mode ->Enable(false);
|
||||||
|
m_credentials_resp->Enable(false);
|
||||||
|
m_credentials_pass->Enable(false);
|
||||||
|
} else {
|
||||||
|
// This is not a provider-locked configuration. Enable controls.
|
||||||
|
m_auth_mode_label ->Enable(true);
|
||||||
|
m_auth_mode ->Enable(true);
|
||||||
|
m_credentials_resp->Enable(true);
|
||||||
|
m_credentials_pass ->Enable(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// \endcond
|
||||||
|
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
// wxGTCResponseDialog
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
wxGTCResponseDialog::wxGTCResponseDialog(const eap::config_provider &prov, wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos, const wxSize &size, long style) :
|
||||||
|
wxEAPGeneralDialog(parent, id, title, pos, size, style)
|
||||||
|
{
|
||||||
|
// Set banner title.
|
||||||
|
m_banner->m_title->SetLabel(wxString::Format(_("%s Challenge"), wxEAPGetProviderName(prov.m_name)));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
// wxGTCResponsePanel
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
wxGTCResponsePanel::wxGTCResponsePanel(winstd::sanitizing_wstring &response, const wchar_t *challenge, wxWindow* parent) :
|
||||||
|
wxGTCResponsePanelBase(parent),
|
||||||
|
m_response_value(response)
|
||||||
|
{
|
||||||
|
// Load and set icon.
|
||||||
|
winstd::library lib_shell32;
|
||||||
|
if (lib_shell32.load(_T("shell32.dll"), NULL, LOAD_LIBRARY_AS_DATAFILE | LOAD_LIBRARY_AS_IMAGE_RESOURCE))
|
||||||
|
m_response_icon->SetIcon(wxLoadIconFromResource(lib_shell32, MAKEINTRESOURCE(24)));
|
||||||
|
|
||||||
|
// Set challenge label.
|
||||||
|
m_challenge->SetLabelText(challenge);
|
||||||
|
m_challenge->Wrap(200);
|
||||||
|
|
||||||
|
this->Layout();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// \cond internal
|
||||||
|
|
||||||
|
bool wxGTCResponsePanel::TransferDataToWindow()
|
||||||
|
{
|
||||||
|
m_response->SetValue(m_response_value.c_str());
|
||||||
|
|
||||||
|
return wxGTCResponsePanelBase::TransferDataToWindow();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool wxGTCResponsePanel::TransferDataFromWindow()
|
||||||
|
{
|
||||||
|
wxCHECK(wxGTCResponsePanelBase::TransferDataFromWindow(), false);
|
||||||
|
|
||||||
|
m_response_value = m_response->GetValue();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// \endcond
|
21
lib/GTC_UI/src/StdAfx.cpp
Normal file
21
lib/GTC_UI/src/StdAfx.cpp
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2015-2016 Amebis
|
||||||
|
Copyright 2016 GÉANT
|
||||||
|
|
||||||
|
This file is part of GÉANTLink.
|
||||||
|
|
||||||
|
GÉANTLink is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
GÉANTLink is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GÉANTLink. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "StdAfx.h"
|
25
lib/GTC_UI/src/StdAfx.h
Normal file
25
lib/GTC_UI/src/StdAfx.h
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2015-2016 Amebis
|
||||||
|
Copyright 2016 GÉANT
|
||||||
|
|
||||||
|
This file is part of GÉANTLink.
|
||||||
|
|
||||||
|
GÉANTLink is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
GÉANTLink is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GÉANTLink. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define _CRT_SECURE_NO_WARNINGS // Prevent warnings from wxWidgets headers
|
||||||
|
|
||||||
|
#include "../include/GTC_UI.h"
|
@@ -55,6 +55,7 @@ wxTLSServerTrustPanelBase::wxTLSServerTrustPanelBase( wxWindow* parent, wxWindow
|
|||||||
sb_root_ca_btn->Add( m_root_ca_add_file, 0, wxRIGHT|wxLEFT, 5 );
|
sb_root_ca_btn->Add( m_root_ca_add_file, 0, wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_root_ca_remove = new wxButton( sb_server_trust->GetStaticBox(), wxID_ANY, _("&Remove CA"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_root_ca_remove = new wxButton( sb_server_trust->GetStaticBox(), wxID_ANY, _("&Remove CA"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_root_ca_remove->Enable( false );
|
||||||
m_root_ca_remove->SetToolTip( _("Removes selected certificate authorities from the list") );
|
m_root_ca_remove->SetToolTip( _("Removes selected certificate authorities from the list") );
|
||||||
|
|
||||||
sb_root_ca_btn->Add( m_root_ca_remove, 0, wxLEFT, 5 );
|
sb_root_ca_btn->Add( m_root_ca_remove, 0, wxLEFT, 5 );
|
||||||
|
@@ -659,7 +659,7 @@
|
|||||||
<property name="dock">Dock</property>
|
<property name="dock">Dock</property>
|
||||||
<property name="dock_fixed">0</property>
|
<property name="dock_fixed">0</property>
|
||||||
<property name="docking">Left</property>
|
<property name="docking">Left</property>
|
||||||
<property name="enabled">1</property>
|
<property name="enabled">0</property>
|
||||||
<property name="fg"></property>
|
<property name="fg"></property>
|
||||||
<property name="floatable">1</property>
|
<property name="floatable">1</property>
|
||||||
<property name="font"></property>
|
<property name="font"></property>
|
||||||
|
@@ -84,6 +84,7 @@
|
|||||||
<ClInclude Include="..\include\Method.h" />
|
<ClInclude Include="..\include\Method.h" />
|
||||||
<ClInclude Include="..\include\Module.h" />
|
<ClInclude Include="..\include\Module.h" />
|
||||||
<ClInclude Include="..\include\TTLS.h" />
|
<ClInclude Include="..\include\TTLS.h" />
|
||||||
|
<ClInclude Include="..\include\UIContext.h" />
|
||||||
<ClInclude Include="..\src\StdAfx.h" />
|
<ClInclude Include="..\src\StdAfx.h" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -97,6 +98,7 @@
|
|||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\UIContext.cpp" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\Events\build\Events.vcxproj">
|
<ProjectReference Include="..\..\Events\build\Events.vcxproj">
|
||||||
|
@@ -26,6 +26,9 @@
|
|||||||
<ClInclude Include="..\include\Module.h">
|
<ClInclude Include="..\include\Module.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\include\UIContext.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
<ClInclude Include="..\include\TTLS.h">
|
<ClInclude Include="..\include\TTLS.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
@@ -46,5 +49,8 @@
|
|||||||
<ClCompile Include="..\src\Module.cpp">
|
<ClCompile Include="..\src\Module.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\src\UIContext.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
@@ -18,8 +18,6 @@
|
|||||||
along with GÉANTLink. If not, see <http://www.gnu.org/licenses/>.
|
along with GÉANTLink. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
/// \addtogroup EAPBaseMethod
|
/// \addtogroup EAPBaseMethod
|
||||||
/// @{
|
/// @{
|
||||||
#ifndef EAP_INNER_EAPHOST
|
#ifndef EAP_INNER_EAPHOST
|
||||||
|
96
lib/TTLS/include/UIContext.h
Normal file
96
lib/TTLS/include/UIContext.h
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2015-2017 Amebis
|
||||||
|
Copyright 2016-2017 GÉANT
|
||||||
|
|
||||||
|
This file is part of GÉANTLink.
|
||||||
|
|
||||||
|
GÉANTLink is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
GÉANTLink is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GÉANTLink. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace eap
|
||||||
|
{
|
||||||
|
class ui_context_ttls;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "TTLS.h"
|
||||||
|
|
||||||
|
#include "../../EAPBase/include/UIContext.h"
|
||||||
|
|
||||||
|
|
||||||
|
namespace eap
|
||||||
|
{
|
||||||
|
/// \addtogroup EAPBaseUICtx
|
||||||
|
/// @{
|
||||||
|
|
||||||
|
///
|
||||||
|
/// EAP-TTLS UI context
|
||||||
|
///
|
||||||
|
class ui_context_ttls : public ui_context
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
///
|
||||||
|
/// Constructs context
|
||||||
|
///
|
||||||
|
/// \param[in] cfg Connection configuration
|
||||||
|
/// \param[in] cred Connection credentials
|
||||||
|
///
|
||||||
|
ui_context_ttls(_In_ config_connection &cfg, _In_ credentials_connection &cred);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Copies context
|
||||||
|
///
|
||||||
|
/// \param[in] other Credentials to copy from
|
||||||
|
///
|
||||||
|
ui_context_ttls(_In_ const ui_context_ttls &other);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Moves context
|
||||||
|
///
|
||||||
|
/// \param[in] other Credentials to move from
|
||||||
|
///
|
||||||
|
ui_context_ttls(_Inout_ ui_context_ttls &&other);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Copies context
|
||||||
|
///
|
||||||
|
/// \param[in] other Credentials to copy from
|
||||||
|
///
|
||||||
|
/// \returns Reference to this object
|
||||||
|
///
|
||||||
|
ui_context_ttls& operator=(_In_ const ui_context_ttls &other);
|
||||||
|
|
||||||
|
///
|
||||||
|
/// Moves context
|
||||||
|
///
|
||||||
|
/// \param[in] other Configuration to move from
|
||||||
|
///
|
||||||
|
/// \returns Reference to this object
|
||||||
|
///
|
||||||
|
ui_context_ttls& operator=(_Inout_ ui_context_ttls &&other);
|
||||||
|
|
||||||
|
/// \name BLOB management
|
||||||
|
/// @{
|
||||||
|
virtual void operator<<(_Inout_ cursor_out &cursor) const;
|
||||||
|
virtual size_t get_pk_size() const;
|
||||||
|
virtual void operator>>(_Inout_ cursor_in &cursor);
|
||||||
|
/// @}
|
||||||
|
|
||||||
|
public:
|
||||||
|
sanitizing_blob m_data; ///< Context data
|
||||||
|
};
|
||||||
|
|
||||||
|
/// @}
|
||||||
|
}
|
@@ -268,6 +268,7 @@ eap::config_method* eap::config_method_ttls::make_config_method(_In_ winstd::eap
|
|||||||
case eap_type_legacy_pap : return new config_method_pap (m_module, m_level + 1);
|
case eap_type_legacy_pap : return new config_method_pap (m_module, m_level + 1);
|
||||||
case eap_type_legacy_mschapv2: return new config_method_mschapv2 (m_module, m_level + 1);
|
case eap_type_legacy_mschapv2: return new config_method_mschapv2 (m_module, m_level + 1);
|
||||||
case eap_type_mschapv2 : return new config_method_eapmschapv2(m_module, m_level + 1);
|
case eap_type_mschapv2 : return new config_method_eapmschapv2(m_module, m_level + 1);
|
||||||
|
case eap_type_gtc : return new config_method_eapgtc (m_module, m_level + 1);
|
||||||
#if EAP_INNER_EAPHOST
|
#if EAP_INNER_EAPHOST
|
||||||
default : return new config_method_eaphost (m_module, m_level + 1); // EapHost peer method handles all other method types
|
default : return new config_method_eaphost (m_module, m_level + 1); // EapHost peer method handles all other method types
|
||||||
#else
|
#else
|
||||||
@@ -282,6 +283,7 @@ eap::config_method* eap::config_method_ttls::make_config_method(_In_ const wchar
|
|||||||
if (_wcsicmp(eap_type, L"PAP" ) == 0) return new config_method_pap (m_module, m_level + 1);
|
if (_wcsicmp(eap_type, L"PAP" ) == 0) return new config_method_pap (m_module, m_level + 1);
|
||||||
else if (_wcsicmp(eap_type, L"MSCHAPv2" ) == 0) return new config_method_mschapv2 (m_module, m_level + 1);
|
else if (_wcsicmp(eap_type, L"MSCHAPv2" ) == 0) return new config_method_mschapv2 (m_module, m_level + 1);
|
||||||
else if (_wcsicmp(eap_type, L"EAP-MSCHAPv2") == 0) return new config_method_eapmschapv2(m_module, m_level + 1);
|
else if (_wcsicmp(eap_type, L"EAP-MSCHAPv2") == 0) return new config_method_eapmschapv2(m_module, m_level + 1);
|
||||||
|
else if (_wcsicmp(eap_type, L"EAP-GTC" ) == 0) return new config_method_eapgtc (m_module, m_level + 1);
|
||||||
#if EAP_INNER_EAPHOST
|
#if EAP_INNER_EAPHOST
|
||||||
else if (_wcsicmp(eap_type, L"EapHost" ) == 0) return new config_method_eaphost (m_module, m_level + 1);
|
else if (_wcsicmp(eap_type, L"EapHost" ) == 0) return new config_method_eaphost (m_module, m_level + 1);
|
||||||
#endif
|
#endif
|
||||||
|
@@ -256,6 +256,10 @@ EAP_SESSION_HANDLE eap::peer_ttls::begin_session(
|
|||||||
new method_eapmsg (*this, cred_inner->get_identity().c_str(),
|
new method_eapmsg (*this, cred_inner->get_identity().c_str(),
|
||||||
new method_eap (*this, eap_type_mschapv2,
|
new method_eap (*this, eap_type_mschapv2,
|
||||||
new method_mschapv2(*this, dynamic_cast<config_method_mschapv2&>(*cfg_inner), dynamic_cast<credentials_pass&>(*cred_inner))))); break;
|
new method_mschapv2(*this, dynamic_cast<config_method_mschapv2&>(*cfg_inner), dynamic_cast<credentials_pass&>(*cred_inner))))); break;
|
||||||
|
case eap_type_gtc : meth_inner.reset(
|
||||||
|
new method_eapmsg (*this, cred_inner->get_identity().c_str(),
|
||||||
|
new method_eap (*this, eap_type_gtc,
|
||||||
|
new method_gtc (*this, dynamic_cast<config_method_eapgtc&>(*cfg_inner), dynamic_cast<credentials&>(*cred_inner))))); break;
|
||||||
default: throw invalid_argument(__FUNCTION__ " Unsupported inner authentication method.");
|
default: throw invalid_argument(__FUNCTION__ " Unsupported inner authentication method.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -363,11 +367,11 @@ void eap::peer_ttls::get_ui_context(
|
|||||||
auto s = static_cast<session*>(hSession);
|
auto s = static_cast<session*>(hSession);
|
||||||
|
|
||||||
// Get context data from method.
|
// Get context data from method.
|
||||||
sanitizing_blob context_data;
|
ui_context_ttls ctx(s->m_cfg, s->m_cred);
|
||||||
s->m_method->get_ui_context(context_data);
|
s->m_method->get_ui_context(ctx.m_data);
|
||||||
|
|
||||||
// Pack data.
|
// Pack context data.
|
||||||
pack(context_data, ppUIContextData, pdwUIContextDataSize);
|
pack(ctx, ppUIContextData, pdwUIContextDataSize);
|
||||||
if (s->m_blob_ui_ctx)
|
if (s->m_blob_ui_ctx)
|
||||||
free_memory(s->m_blob_ui_ctx);
|
free_memory(s->m_blob_ui_ctx);
|
||||||
s->m_blob_ui_ctx = *ppUIContextData;
|
s->m_blob_ui_ctx = *ppUIContextData;
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
#include "../include/Credentials.h"
|
#include "../include/Credentials.h"
|
||||||
#include "../include/Method.h"
|
#include "../include/Method.h"
|
||||||
#include "../include/Module.h"
|
#include "../include/Module.h"
|
||||||
|
#include "../include/UIContext.h"
|
||||||
|
|
||||||
#include "../../PAP/include/Config.h"
|
#include "../../PAP/include/Config.h"
|
||||||
#include "../../PAP/include/Method.h"
|
#include "../../PAP/include/Method.h"
|
||||||
@@ -34,6 +35,9 @@
|
|||||||
#include "../../MSCHAPv2/include/Method.h"
|
#include "../../MSCHAPv2/include/Method.h"
|
||||||
#include "../../MSCHAPv2/include/MSCHAPv2.h"
|
#include "../../MSCHAPv2/include/MSCHAPv2.h"
|
||||||
|
|
||||||
|
#include "../../GTC/include/Config.h"
|
||||||
|
#include "../../GTC/include/Method.h"
|
||||||
|
|
||||||
#include "../../EapHost/include/Config.h"
|
#include "../../EapHost/include/Config.h"
|
||||||
#include "../../EapHost/include/Method.h"
|
#include "../../EapHost/include/Method.h"
|
||||||
|
|
||||||
|
92
lib/TTLS/src/UIContext.cpp
Normal file
92
lib/TTLS/src/UIContext.cpp
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2015-2016 Amebis
|
||||||
|
Copyright 2016 GÉANT
|
||||||
|
|
||||||
|
This file is part of GÉANTLink.
|
||||||
|
|
||||||
|
GÉANTLink is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
GÉANTLink is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GÉANTLink. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "StdAfx.h"
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
using namespace winstd;
|
||||||
|
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
// eap::ui_context_ttls
|
||||||
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
eap::ui_context_ttls::ui_context_ttls(_In_ config_connection &cfg, _In_ credentials_connection &cred) :
|
||||||
|
ui_context(cfg, cred)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::ui_context_ttls::ui_context_ttls(_In_ const ui_context_ttls &other) :
|
||||||
|
m_data (other.m_data),
|
||||||
|
ui_context(other )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::ui_context_ttls::ui_context_ttls(_Inout_ ui_context_ttls &&other) :
|
||||||
|
m_data (std::move(other.m_data)),
|
||||||
|
ui_context(std::move(other ))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::ui_context_ttls& eap::ui_context_ttls::operator=(_In_ const ui_context_ttls &other)
|
||||||
|
{
|
||||||
|
if (this != &other) {
|
||||||
|
(ui_context&)*this = other;
|
||||||
|
m_data = other.m_data;
|
||||||
|
}
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
eap::ui_context_ttls& eap::ui_context_ttls::operator=(_Inout_ ui_context_ttls &&other)
|
||||||
|
{
|
||||||
|
if (this != &other) {
|
||||||
|
(ui_context&)*this = std::move(other );
|
||||||
|
m_data = std::move(other.m_data);
|
||||||
|
}
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void eap::ui_context_ttls::operator<<(_Inout_ cursor_out &cursor) const
|
||||||
|
{
|
||||||
|
ui_context::operator<<(cursor);
|
||||||
|
cursor << m_data;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
size_t eap::ui_context_ttls::get_pk_size() const
|
||||||
|
{
|
||||||
|
return
|
||||||
|
ui_context::get_pk_size() +
|
||||||
|
pksizeof(m_data);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void eap::ui_context_ttls::operator>>(_Inout_ cursor_in &cursor)
|
||||||
|
{
|
||||||
|
ui_context::operator>>(cursor);
|
||||||
|
cursor >> m_data;
|
||||||
|
}
|
@@ -31,6 +31,7 @@ class wxTTLSConfigWindow;
|
|||||||
#include "../../EapHost/include/Config.h"
|
#include "../../EapHost/include/Config.h"
|
||||||
#include "../../PAP/include/Config.h"
|
#include "../../PAP/include/Config.h"
|
||||||
#include "../../MSCHAPv2/include/Config.h"
|
#include "../../MSCHAPv2/include/Config.h"
|
||||||
|
#include "../../GTC/include/Config.h"
|
||||||
|
|
||||||
#include <WinStd/Win.h>
|
#include <WinStd/Win.h>
|
||||||
|
|
||||||
@@ -107,6 +108,7 @@ protected:
|
|||||||
eap::config_method_pap m_cfg_pap; ///< PAP configuration
|
eap::config_method_pap m_cfg_pap; ///< PAP configuration
|
||||||
eap::config_method_mschapv2 m_cfg_mschapv2; ///< MSCHAPv2 configuration
|
eap::config_method_mschapv2 m_cfg_mschapv2; ///< MSCHAPv2 configuration
|
||||||
eap::config_method_eapmschapv2 m_cfg_eapmschapv2; ///< EAP-MSCHAPv2 configuration
|
eap::config_method_eapmschapv2 m_cfg_eapmschapv2; ///< EAP-MSCHAPv2 configuration
|
||||||
|
eap::config_method_eapgtc m_cfg_eapgtc; ///< EAP-GTC configuration
|
||||||
#if EAP_INNER_EAPHOST
|
#if EAP_INNER_EAPHOST
|
||||||
eap::config_method_eaphost m_cfg_eaphost; ///< Inner EAP configuration
|
eap::config_method_eaphost m_cfg_eaphost; ///< Inner EAP configuration
|
||||||
#endif
|
#endif
|
||||||
|
@@ -43,7 +43,7 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
static wxCriticalSection s_lock; ///< Initialization lock
|
static wxCriticalSection s_lock; ///< Initialization lock
|
||||||
static unsigned long s_init_ref_count; ///< Initialization reference counter
|
static unsigned long s_init_ref_count; ///< Initialization reference counter
|
||||||
static wxLocale *s_locale; ///< Locale
|
static wxLocale s_locale; ///< Locale
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -295,9 +295,21 @@ void eap::peer_ttls_ui::invoke_identity_ui(
|
|||||||
dlg.AddContent(new wxEAPCredentialWarningPanel(*cfg_prov, cfg_method->m_inner->m_last_status, &dlg));
|
dlg.AddContent(new wxEAPCredentialWarningPanel(*cfg_prov, cfg_method->m_inner->m_last_status, &dlg));
|
||||||
wxEAPCredentialsPanelBase *panel = NULL;
|
wxEAPCredentialsPanelBase *panel = NULL;
|
||||||
switch (cfg_method->m_inner->get_method_id()) {
|
switch (cfg_method->m_inner->get_method_id()) {
|
||||||
case eap_type_legacy_pap : panel = new wxPAPCredentialsPanel (*cfg_prov, *dynamic_cast<const eap::config_method_pap *>(cfg_method->m_inner.get()), *dynamic_cast<eap::credentials_pass*>(cred->m_inner.get()), &dlg, false); break;
|
case eap_type_legacy_pap : panel = new wxPAPCredentialsPanel (*cfg_prov, *dynamic_cast<const eap::config_method_pap *>(cfg_method->m_inner.get()), *dynamic_cast<eap::credentials_pass *>(cred->m_inner.get()), &dlg, false); break;
|
||||||
case eap_type_legacy_mschapv2: panel = new wxMSCHAPv2CredentialsPanel(*cfg_prov, *dynamic_cast<const eap::config_method_mschapv2 *>(cfg_method->m_inner.get()), *dynamic_cast<eap::credentials_pass*>(cred->m_inner.get()), &dlg, false); break;
|
case eap_type_legacy_mschapv2: panel = new wxMSCHAPv2CredentialsPanel(*cfg_prov, *dynamic_cast<const eap::config_method_mschapv2 *>(cfg_method->m_inner.get()), *dynamic_cast<eap::credentials_pass *>(cred->m_inner.get()), &dlg, false); break;
|
||||||
case eap_type_mschapv2 : panel = new wxMSCHAPv2CredentialsPanel(*cfg_prov, *dynamic_cast<const eap::config_method_eapmschapv2*>(cfg_method->m_inner.get()), *dynamic_cast<eap::credentials_pass*>(cred->m_inner.get()), &dlg, false); break;
|
case eap_type_mschapv2 : panel = new wxMSCHAPv2CredentialsPanel(*cfg_prov, *dynamic_cast<const eap::config_method_eapmschapv2*>(cfg_method->m_inner.get()), *dynamic_cast<eap::credentials_pass *>(cred->m_inner.get()), &dlg, false); break;
|
||||||
|
case eap_type_gtc : {
|
||||||
|
// EAP-GTC credential prompt differes for "Challenge/Response" and "Password" authentication modes.
|
||||||
|
eap::credentials_identity *cred_resp;
|
||||||
|
eap::credentials_pass *cred_pass;
|
||||||
|
if ((cred_resp = dynamic_cast<eap::credentials_identity*>(cred->m_inner.get())) != NULL)
|
||||||
|
panel = new wxGTCResponseCredentialsPanel(*cfg_prov, *dynamic_cast<const eap::config_method_eapgtc*>(cfg_method->m_inner.get()), *cred_resp, &dlg, false);
|
||||||
|
else if ((cred_pass = dynamic_cast<eap::credentials_pass*>(cred->m_inner.get())) != NULL)
|
||||||
|
panel = new wxGTCPasswordCredentialsPanel(*cfg_prov, *dynamic_cast<const eap::config_method_eapgtc*>(cfg_method->m_inner.get()), *cred_pass, &dlg, false);
|
||||||
|
else
|
||||||
|
wxLogError("Unsupported authentication mode.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
default : wxLogError("Unsupported inner authentication method.");
|
default : wxLogError("Unsupported inner authentication method.");
|
||||||
}
|
}
|
||||||
panel->SetRemember(src_inner == eap::credentials::source_storage);
|
panel->SetRemember(src_inner == eap::credentials::source_storage);
|
||||||
@@ -389,13 +401,109 @@ void eap::peer_ttls_ui::invoke_interactive_ui(
|
|||||||
_Inout_ BYTE **ppDataFromInteractiveUI,
|
_Inout_ BYTE **ppDataFromInteractiveUI,
|
||||||
_Inout_ DWORD *pdwDataFromInteractiveUISize)
|
_Inout_ DWORD *pdwDataFromInteractiveUISize)
|
||||||
{
|
{
|
||||||
UNREFERENCED_PARAMETER(pUIContextData);
|
// Unpack context data.
|
||||||
UNREFERENCED_PARAMETER(dwUIContextDataSize);
|
config_connection cfg(*this);
|
||||||
UNREFERENCED_PARAMETER(ppDataFromInteractiveUI);
|
credentials_connection cred(*this, cfg);
|
||||||
UNREFERENCED_PARAMETER(pdwDataFromInteractiveUISize);
|
ui_context_ttls ctx(cfg, cred);
|
||||||
|
unpack(ctx, pUIContextData, dwUIContextDataSize);
|
||||||
|
|
||||||
InitCommonControls();
|
// Look-up the provider.
|
||||||
MessageBox(hwndParent, _T(PRODUCT_NAME_STR) _T(" interactive UI goes here!"), _T(PRODUCT_NAME_STR) _T(" Prompt"), MB_OK);
|
config_provider *cfg_prov;
|
||||||
|
config_method_ttls *cfg_method;
|
||||||
|
for (auto _cfg_prov = cfg.m_providers.begin(), cfg_prov_end = cfg.m_providers.end();; ++_cfg_prov) {
|
||||||
|
if (_cfg_prov != cfg_prov_end) {
|
||||||
|
if (cred.match(*_cfg_prov)) {
|
||||||
|
// Matching provider found.
|
||||||
|
if (_cfg_prov->m_methods.empty())
|
||||||
|
throw invalid_argument(string_printf(__FUNCTION__ " %ls provider has no methods.", _cfg_prov->get_id().c_str()));
|
||||||
|
cfg_prov = &*_cfg_prov;
|
||||||
|
cfg_method = dynamic_cast<config_method_ttls*>(_cfg_prov->m_methods.front().get());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} else
|
||||||
|
throw invalid_argument(string_printf(__FUNCTION__ " Credentials do not match to any provider within this connection configuration (provider: %ls).", cred.get_id().c_str()));
|
||||||
|
}
|
||||||
|
|
||||||
|
#if EAP_INNER_EAPHOST
|
||||||
|
auto cfg_inner_eaphost = dynamic_cast<config_method_eaphost*>(cfg_method->m_inner.get());
|
||||||
|
if (!cfg_inner_eaphost)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
int result;
|
||||||
|
{
|
||||||
|
// Initialize application.
|
||||||
|
wxInitializerPeer init(m_instance);
|
||||||
|
|
||||||
|
{
|
||||||
|
// Create wxWidget-approved parent window.
|
||||||
|
wxWindow parent;
|
||||||
|
parent.SetHWND((WXHWND)(hwndParent ? hwndParent : GetForegroundWindow()));
|
||||||
|
parent.AdoptAttributesFromHWND();
|
||||||
|
wxTopLevelWindows.Append(&parent);
|
||||||
|
|
||||||
|
{
|
||||||
|
sanitizing_wstring
|
||||||
|
challenge(reinterpret_cast<sanitizing_wstring::const_pointer>(ctx.m_data.data()), ctx.m_data.size()/sizeof(sanitizing_wstring::value_type)),
|
||||||
|
response;
|
||||||
|
|
||||||
|
// Build dialog to prompt for response.
|
||||||
|
wxGTCResponseDialog dlg(*cfg_prov, &parent);
|
||||||
|
auto panel = new wxGTCResponsePanel(response, challenge.c_str(), &dlg);
|
||||||
|
dlg.AddContent(panel);
|
||||||
|
|
||||||
|
// Update dialog layout.
|
||||||
|
dlg.Layout();
|
||||||
|
dlg.GetSizer()->Fit(&dlg);
|
||||||
|
|
||||||
|
// Centre and display dialog.
|
||||||
|
dlg.Centre(wxBOTH);
|
||||||
|
if ((result = dlg.ShowModal()) == wxID_OK) {
|
||||||
|
// Save response.
|
||||||
|
ctx.m_data.assign(
|
||||||
|
reinterpret_cast<sanitizing_blob::const_pointer>(response.data() ),
|
||||||
|
reinterpret_cast<sanitizing_blob::const_pointer>(response.data() + response.length()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
wxTopLevelWindows.DeleteObject(&parent);
|
||||||
|
parent.SetHWND((WXHWND)NULL);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (result != wxID_OK)
|
||||||
|
throw win_runtime_error(ERROR_CANCELLED, __FUNCTION__ " Cancelled.");
|
||||||
|
}
|
||||||
|
#if EAP_INNER_EAPHOST
|
||||||
|
else {
|
||||||
|
// EapHost inner method
|
||||||
|
DWORD dwSizeofDataFromInteractiveUI;
|
||||||
|
BYTE *pDataFromInteractiveUI;
|
||||||
|
winstd::eap_error error;
|
||||||
|
DWORD dwResult = EapHostPeerInvokeInteractiveUI(
|
||||||
|
hwndParent,
|
||||||
|
(DWORD)ctx.m_data.size(),
|
||||||
|
ctx.m_data.data(),
|
||||||
|
&dwSizeofDataFromInteractiveUI,
|
||||||
|
&pDataFromInteractiveUI,
|
||||||
|
&error._Myptr);
|
||||||
|
if (dwResult == ERROR_SUCCESS) {
|
||||||
|
// Inner EAP method provided response.
|
||||||
|
ctx.m_data.assign(pDataFromInteractiveUI, pDataFromInteractiveUI + dwSizeofDataFromInteractiveUI);
|
||||||
|
} else if (dwResult == ERROR_CANCELLED) {
|
||||||
|
// Not really an error.
|
||||||
|
throw win_runtime_error(ERROR_CANCELLED, __FUNCTION__ " Cancelled.");
|
||||||
|
} else if (error) {
|
||||||
|
wxLogError(_("Invoking EAP interactive UI failed (error %u, %s, %s)."), error->dwWinError, error->pRootCauseString, error->pRepairString);
|
||||||
|
throw eap_runtime_error(*error , __FUNCTION__ " EapHostPeerInvokeInteractiveUI failed.");
|
||||||
|
} else {
|
||||||
|
wxLogError(_("Invoking EAP interactive UI failed (error %u)."), dwResult);
|
||||||
|
throw win_runtime_error(dwResult, __FUNCTION__ " EapHostPeerInvokeInteractiveUI failed.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Pack output data.
|
||||||
|
pack(ctx.m_data, ppDataFromInteractiveUI, pdwDataFromInteractiveUISize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -415,10 +523,9 @@ wxInitializerPeer::wxInitializerPeer(_In_ HINSTANCE instance)
|
|||||||
|
|
||||||
// Do our wxWidgets configuration and localization initialization.
|
// Do our wxWidgets configuration and localization initialization.
|
||||||
wxInitializeConfig();
|
wxInitializeConfig();
|
||||||
s_locale = new wxLocale;
|
if (wxInitializeLocale(s_locale)) {
|
||||||
if (wxInitializeLocale(*s_locale)) {
|
s_locale.AddCatalog(wxT("wxExtend") wxT(wxExtendVersion));
|
||||||
s_locale->AddCatalog(wxT("wxExtend") wxT(wxExtendVersion));
|
s_locale.AddCatalog(wxT("EAPTTLSUI"));
|
||||||
s_locale->AddCatalog(wxT("EAPTTLSUI"));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -430,14 +537,9 @@ wxInitializerPeer::~wxInitializerPeer()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
wxEntryCleanup();
|
wxEntryCleanup();
|
||||||
|
|
||||||
if (s_locale) {
|
|
||||||
delete s_locale;
|
|
||||||
s_locale = NULL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
wxCriticalSection wxInitializerPeer::s_lock;
|
wxCriticalSection wxInitializerPeer::s_lock;
|
||||||
unsigned long wxInitializerPeer::s_init_ref_count = 0;
|
unsigned long wxInitializerPeer::s_init_ref_count = 0;
|
||||||
wxLocale *wxInitializerPeer::s_locale = NULL;
|
wxLocale wxInitializerPeer::s_locale;
|
||||||
|
@@ -28,8 +28,10 @@
|
|||||||
#include "../../EapHost_UI/include/EapHost_UI.h"
|
#include "../../EapHost_UI/include/EapHost_UI.h"
|
||||||
#include "../../PAP_UI/include/PAP_UI.h"
|
#include "../../PAP_UI/include/PAP_UI.h"
|
||||||
#include "../../MSCHAPv2_UI/include/MSCHAPv2_UI.h"
|
#include "../../MSCHAPv2_UI/include/MSCHAPv2_UI.h"
|
||||||
|
#include "../../GTC_UI/include/GTC_UI.h"
|
||||||
|
|
||||||
#include "../../EapHost/include/Credentials.h"
|
#include "../../EapHost/include/Credentials.h"
|
||||||
|
#include "../../TTLS/include/UIContext.h"
|
||||||
|
|
||||||
#include <wxex/common.h>
|
#include <wxex/common.h>
|
||||||
|
|
||||||
|
@@ -103,6 +103,7 @@ wxTTLSConfigWindow::wxTTLSConfigWindow(eap::config_provider &prov, eap::config_m
|
|||||||
m_cfg_pap (cfg.m_module, cfg.m_level + 1),
|
m_cfg_pap (cfg.m_module, cfg.m_level + 1),
|
||||||
m_cfg_mschapv2 (cfg.m_module, cfg.m_level + 1),
|
m_cfg_mschapv2 (cfg.m_module, cfg.m_level + 1),
|
||||||
m_cfg_eapmschapv2(cfg.m_module, cfg.m_level + 1),
|
m_cfg_eapmschapv2(cfg.m_module, cfg.m_level + 1),
|
||||||
|
m_cfg_eapgtc (cfg.m_module, cfg.m_level + 1),
|
||||||
#if EAP_INNER_EAPHOST
|
#if EAP_INNER_EAPHOST
|
||||||
m_cfg_eaphost (cfg.m_module, cfg.m_level + 1),
|
m_cfg_eaphost (cfg.m_module, cfg.m_level + 1),
|
||||||
#endif
|
#endif
|
||||||
@@ -127,6 +128,8 @@ wxTTLSConfigWindow::wxTTLSConfigWindow(eap::config_provider &prov, eap::config_m
|
|||||||
m_inner_type->AddPage(panel_mschapv2, _("MSCHAPv2"));
|
m_inner_type->AddPage(panel_mschapv2, _("MSCHAPv2"));
|
||||||
wxMSCHAPv2ConfigPanel *panel_eapmschapv2 = new wxMSCHAPv2ConfigPanel(m_prov, m_cfg_eapmschapv2, m_inner_type);
|
wxMSCHAPv2ConfigPanel *panel_eapmschapv2 = new wxMSCHAPv2ConfigPanel(m_prov, m_cfg_eapmschapv2, m_inner_type);
|
||||||
m_inner_type->AddPage(panel_eapmschapv2, _("EAP-MSCHAPv2"));
|
m_inner_type->AddPage(panel_eapmschapv2, _("EAP-MSCHAPv2"));
|
||||||
|
wxGTCConfigPanel *panel_eapgtc = new wxGTCConfigPanel(m_prov, m_cfg_eapgtc, m_inner_type);
|
||||||
|
m_inner_type->AddPage(panel_eapgtc, _("EAP-GTC"));
|
||||||
#if EAP_INNER_EAPHOST
|
#if EAP_INNER_EAPHOST
|
||||||
wxEapHostConfigPanel *panel_eaphost = new wxEapHostConfigPanel(m_prov, m_cfg_eaphost, m_inner_type);
|
wxEapHostConfigPanel *panel_eaphost = new wxEapHostConfigPanel(m_prov, m_cfg_eaphost, m_inner_type);
|
||||||
m_inner_type->AddPage(panel_eaphost, _("Other EAP methods..."));
|
m_inner_type->AddPage(panel_eaphost, _("Other EAP methods..."));
|
||||||
@@ -198,6 +201,11 @@ bool wxTTLSConfigWindow::TransferDataToWindow()
|
|||||||
m_inner_type->SetSelection(2); // 2=EAP-MSCHAPv2
|
m_inner_type->SetSelection(2); // 2=EAP-MSCHAPv2
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case winstd::eap_type_gtc:
|
||||||
|
m_cfg_eapgtc = dynamic_cast<eap::config_method_eapgtc&>(*cfg_ttls.m_inner);
|
||||||
|
m_inner_type->SetSelection(3); // 3=EAP-GTC
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
wxFAIL_MSG(wxT("Unsupported inner authentication method type."));
|
wxFAIL_MSG(wxT("Unsupported inner authentication method type."));
|
||||||
}
|
}
|
||||||
@@ -206,7 +214,7 @@ bool wxTTLSConfigWindow::TransferDataToWindow()
|
|||||||
else {
|
else {
|
||||||
// EapHost inner method
|
// EapHost inner method
|
||||||
m_cfg_eaphost = *cfg_inner_eaphost;
|
m_cfg_eaphost = *cfg_inner_eaphost;
|
||||||
m_inner_type->SetSelection(3); // 3=EapHost
|
m_inner_type->SetSelection(4); // 4=EapHost
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -237,8 +245,12 @@ bool wxTTLSConfigWindow::TransferDataFromWindow()
|
|||||||
cfg_ttls.m_inner.reset(new eap::config_method_eapmschapv2(m_cfg_eapmschapv2));
|
cfg_ttls.m_inner.reset(new eap::config_method_eapmschapv2(m_cfg_eapmschapv2));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 3: // 3=EAP-GTC
|
||||||
|
cfg_ttls.m_inner.reset(new eap::config_method_eapgtc(m_cfg_eapgtc));
|
||||||
|
break;
|
||||||
|
|
||||||
#if EAP_INNER_EAPHOST
|
#if EAP_INNER_EAPHOST
|
||||||
case 3: // 3=EapHost
|
case 4: // 4=EapHost
|
||||||
cfg_ttls.m_inner.reset(new eap::config_method_eaphost(m_cfg_eaphost));
|
cfg_ttls.m_inner.reset(new eap::config_method_eaphost(m_cfg_eaphost));
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
Submodule lib/WinStd updated: 90b60031df...905fd066dc
Submodule lib/wxExtend updated: 5ff1a95df2...eb33a877d1
Reference in New Issue
Block a user