Compare commits
20 Commits
Author | SHA1 | Date | |
---|---|---|---|
303a060f28 | |||
6264741a62 | |||
28f5710e47 | |||
cf6e3e7c25 | |||
a1485a78f6 | |||
06d39f0561 | |||
0efe4d52c3 | |||
5efadaa8c2 | |||
4937550746 | |||
4b5ffdf9a1 | |||
ffa74466a4 | |||
f4e27d2151 | |||
7f20906cf7 | |||
30b96082bd | |||
0abae8fe0e | |||
6df6eeaa0a | |||
4ac3643ef7 | |||
3fa838aba1 | |||
2557861065 | |||
212e319011 |
Binary file not shown.
Binary file not shown.
Submodule MSI/MSIBuild updated: ce10368864...2c96dff9c2
18
README.md
18
README.md
@@ -1,8 +1,10 @@
|
||||
# GÉANTLink
|
||||
|
||||
Suite of EAP supplicants for Microsoft Windows - IEEE 802.1X plug-ins for enterprise network authentication
|
||||
Suite of EAP supplicants for Microsoft Windows - IEEE 802.1X clients for enterprise network authentication
|
||||
|
||||
## Features
|
||||
- Integrates into Windows seamlessly
|
||||
- Wired and wireless network support
|
||||
|
||||
### Authentication methods
|
||||
- EAP-TTLS with the following inner methods:
|
||||
@@ -11,7 +13,7 @@ Suite of EAP supplicants for Microsoft Windows - IEEE 802.1X plug-ins for enterp
|
||||
|
||||
### Security
|
||||
- Microsoft Windows Credential Manager stored user credentials
|
||||
- User credentials can be shared between different network profiles
|
||||
- User credentials can be shared between different network profiles, regardless of their connection: wired or wireless
|
||||
- Encrypted EapHost inter-process communication
|
||||
- TLS:
|
||||
- Separate trusted root CA list
|
||||
@@ -26,11 +28,18 @@ Suite of EAP supplicants for Microsoft Windows - IEEE 802.1X plug-ins for enterp
|
||||
- Lockable network profile configuration
|
||||
|
||||
### Deployment
|
||||
- Released as multi-lingual 32 and 64-bit MSI packages
|
||||
- Released as multi-lingual 32 and 64-bit MSI packages; Group Policy deployment supported
|
||||
- [MsiUseFeature utility](https://github.com/Amebis/GEANTLink/tree/ver1.0/MsiUseFeature) for GÉANTLink install state testing (for embedding GÉANTLink into other setup packages)
|
||||
- [CredWrite utility](https://github.com/Amebis/GEANTLink/tree/ver1.0/CredWrite) for automated user credential import to Credential Manager
|
||||
- [WLANManager utility](https://github.com/Amebis/GEANTLink/tree/ver1.0/WLANManager) to allow network profile configuration dialog shortcuts
|
||||
|
||||
### Supported operating systems
|
||||
- Windows Vista, Windows Server 2008
|
||||
- Windows 7, Windows Server 2008 R2
|
||||
|
||||
## Download
|
||||
Binaries are available for download [here](https://github.com/Amebis/GEANTLink/releases).
|
||||
|
||||
## Building
|
||||
|
||||
### Building Environment Requirements
|
||||
@@ -113,3 +122,6 @@ 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.
|
||||
|
||||
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/).
|
||||
|
@@ -60,6 +60,10 @@ static int WLANManager()
|
||||
return -1;
|
||||
}
|
||||
|
||||
wstring interface_name;
|
||||
if (nArgs >= 5 && _wcsicmp(pwcArglist[3], L"interface") == 0)
|
||||
interface_name = pwcArglist[4];
|
||||
|
||||
// Open WLAN handle.
|
||||
DWORD dwNegotiatedVersion;
|
||||
wlan_handle wlan;
|
||||
@@ -83,21 +87,55 @@ static int WLANManager()
|
||||
interfaces.reset(pInterfaceList);
|
||||
}
|
||||
|
||||
tstring_guid devclass_net(GUID_DEVCLASS_NET);
|
||||
bool profile_found = false;
|
||||
for (DWORD i = 0; i < interfaces->dwNumberOfItems; i++) {
|
||||
if (interfaces->InterfaceInfo[i].isState == wlan_interface_state_not_ready) {
|
||||
// This interface is not ready.
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!interface_name.empty()) {
|
||||
// Read the interface name from registry.
|
||||
reg_key key;
|
||||
if (key.open(HKEY_LOCAL_MACHINE, tstring_printf(_T("SYSTEM\\CurrentControlSet\\Control\\Network\\%s\\%s\\Connection"), devclass_net.c_str(), tstring_guid(interfaces->InterfaceInfo[i].InterfaceGuid).c_str()).c_str(), 0, KEY_READ)) {
|
||||
wstring name;
|
||||
if (RegQueryStringValue(key, _T("Name"), name) == ERROR_SUCCESS && _wcsicmp(interface_name.c_str(), name.c_str()) != 0) {
|
||||
// Not the interface we are interested in.
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
unique_ptr<WLAN_PROFILE_INFO_LIST, WlanFreeMemory_delete<WLAN_PROFILE_INFO_LIST> > profiles;
|
||||
{
|
||||
// Get a list of profiles.
|
||||
WLAN_PROFILE_INFO_LIST *pProfileList;
|
||||
DWORD dwResult = WlanGetProfileList(wlan, &(interfaces->InterfaceInfo[i].InterfaceGuid), NULL, &pProfileList);
|
||||
if (dwResult != ERROR_SUCCESS) {
|
||||
DisplayError(_T("%s function failed (error %u)."), _T("WlanGetProfileList"), dwResult);
|
||||
return 4;
|
||||
}
|
||||
profiles.reset(pProfileList);
|
||||
}
|
||||
|
||||
for (DWORD j = 0; j < profiles->dwNumberOfItems; j++)
|
||||
if (_wcsicmp(profiles->ProfileInfo[j].strProfileName, pwcArglist[2]) == 0) {
|
||||
profile_found = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!profile_found)
|
||||
continue;
|
||||
|
||||
// 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 = L2_REASON_CODE_SUCCESS;
|
||||
DWORD dwResult = WlanUIEditProfile(WLAN_UI_API_VERSION, pwcArglist[2], &(interfaces->InterfaceInfo[i].InterfaceGuid), NULL, WLSecurityPage, NULL, &wlrc);
|
||||
if (dwResult != ERROR_SUCCESS) {
|
||||
DisplayError(_T("%s function failed (error %u)."), _T("WlanUIEditProfile"), dwResult);
|
||||
// WlanUIEditProfile() displays own error dialog on failure.
|
||||
//DisplayError(_T("%s function failed (error %u)."), _T("WlanUIEditProfile"), dwResult);
|
||||
return 5;
|
||||
}
|
||||
if (wlrc != WLAN_REASON_CODE_SUCCESS) {
|
||||
} else if (wlrc != WLAN_REASON_CODE_SUCCESS) {
|
||||
tstring reason;
|
||||
if (WlanReasonCodeToString(wlrc, reason, NULL) == ERROR_SUCCESS)
|
||||
DisplayError(_T("%s function failed: %s"), _T("WlanUIEditProfile"), reason.c_str());
|
||||
@@ -108,6 +146,9 @@ static int WLANManager()
|
||||
break;
|
||||
}
|
||||
|
||||
if (!profile_found)
|
||||
DisplayError(_T("%ls profile not found."), pwcArglist[2]);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -119,6 +160,13 @@ int CALLBACK WinMain(_In_ HINSTANCE hInstance, _In_ HINSTANCE hPrevInstance, _In
|
||||
UNREFERENCED_PARAMETER(lpCmdLine);
|
||||
UNREFERENCED_PARAMETER(nCmdShow);
|
||||
|
||||
int res = 0;
|
||||
|
||||
{
|
||||
// Note: When a debugger is attached to this process, the WlanUIEditProfile() will raise an exception and fail.
|
||||
// It was accidentially discovered, that COM initialization resolves this issue.
|
||||
com_initializer com_init(NULL);
|
||||
|
||||
{
|
||||
// Initialize Windows XP visual styles
|
||||
INITCOMMONCONTROLSEX icc;
|
||||
@@ -129,7 +177,8 @@ int CALLBACK WinMain(_In_ HINSTANCE hInstance, _In_ HINSTANCE hPrevInstance, _In
|
||||
|
||||
pfnWlanReasonCodeToString = WlanReasonCodeToString;
|
||||
|
||||
int res = WLANManager();
|
||||
res = WLANManager();
|
||||
}
|
||||
|
||||
assert(!_CrtDumpMemoryLeaks());
|
||||
return res;
|
||||
|
@@ -3,7 +3,7 @@ Invokes standard Windows Wireless Network Properties dialog
|
||||
|
||||
##Usage
|
||||
```
|
||||
WLANManager profile <name>
|
||||
WLANManager profile <name> [interface <name>]
|
||||
```
|
||||
|
||||
- `name` - The name of the network profile (not neccessarely the same as SSID)
|
||||
|
@@ -28,6 +28,7 @@
|
||||
|
||||
#include <Windows.h>
|
||||
#include <CommCtrl.h>
|
||||
#include <devguid.h>
|
||||
#include <tchar.h>
|
||||
|
||||
#include <memory>
|
||||
|
@@ -29,7 +29,7 @@
|
||||
// Product version as a single DWORD
|
||||
// Note: Used for version comparison within C/C++ code.
|
||||
//
|
||||
#define PRODUCT_VERSION 0x01001d00
|
||||
#define PRODUCT_VERSION 0x01001f00
|
||||
|
||||
//
|
||||
// Product version by components
|
||||
@@ -39,26 +39,26 @@
|
||||
//
|
||||
#define PRODUCT_VERSION_MAJ 1
|
||||
#define PRODUCT_VERSION_MIN 0
|
||||
#define PRODUCT_VERSION_REV 29
|
||||
#define PRODUCT_VERSION_REV 31
|
||||
#define PRODUCT_VERSION_BUILD 0
|
||||
|
||||
//
|
||||
// Human readable product version and build year for UI
|
||||
//
|
||||
#define PRODUCT_VERSION_STR "1.0b"
|
||||
#define PRODUCT_BUILD_YEAR_STR "2016"
|
||||
#define PRODUCT_VERSION_STR "1.0d"
|
||||
#define PRODUCT_BUILD_YEAR_STR "2017"
|
||||
|
||||
//
|
||||
// Numerical version presentation for ProductVersion propery in
|
||||
// MSI packages (syntax: N.N[.N[.N]])
|
||||
//
|
||||
#define PRODUCT_VERSION_INST "1.0.29"
|
||||
#define PRODUCT_VERSION_INST "1.0.31"
|
||||
|
||||
//
|
||||
// The product code for ProductCode property in MSI packages
|
||||
// Replace with new on every version change, regardless how minor it is.
|
||||
//
|
||||
#define PRODUCT_VERSION_GUID "{7DCB9632-6524-4590-A16F-173FB117F494}"
|
||||
#define PRODUCT_VERSION_GUID "{930DA0D6-428F-4E9B-9969-0DEE33F1D958}"
|
||||
|
||||
//
|
||||
// Product vendor
|
||||
|
@@ -692,5 +692,6 @@ inline size_t pksizeof(_In_ const eap::config_method::status_t &val)
|
||||
|
||||
inline void operator>>(_Inout_ eap::cursor_in &cursor, _Out_ eap::config_method::status_t &val)
|
||||
{
|
||||
val = (eap::config_method::status_t)0; // Reset higher bytes to zero before reading to lower byte.
|
||||
cursor >> (unsigned char&)val;
|
||||
}
|
||||
|
@@ -583,5 +583,6 @@ inline size_t pksizeof(_In_ const eap::credentials_pass::enc_alg_t &val)
|
||||
|
||||
inline void operator>>(_Inout_ eap::cursor_in &cursor, _Out_ eap::credentials_pass::enc_alg_t &val)
|
||||
{
|
||||
val = (eap::credentials_pass::enc_alg_t)0; // Reset higher bytes to zero before reading to lower byte.
|
||||
cursor >> (unsigned char&)val;
|
||||
}
|
||||
|
@@ -1022,9 +1022,11 @@ inline size_t pksizeof(const winstd::cert_context &val)
|
||||
inline void operator>>(_Inout_ eap::cursor_in &cursor, _Out_ winstd::cert_context &val)
|
||||
{
|
||||
DWORD dwCertEncodingType;
|
||||
assert(sizeof(dwCertEncodingType) == sizeof(unsigned int));
|
||||
cursor >> (unsigned int&)dwCertEncodingType;
|
||||
|
||||
DWORD dwCertEncodedSize;
|
||||
assert(sizeof(dwCertEncodingType) == sizeof(unsigned int));
|
||||
cursor >> (unsigned int&)dwCertEncodedSize;
|
||||
|
||||
if (dwCertEncodedSize) {
|
||||
@@ -1051,6 +1053,7 @@ inline size_t pksizeof(_In_ const winstd::eap_type_t &val)
|
||||
|
||||
inline void operator>>(_Inout_ eap::cursor_in &cursor, _Out_ winstd::eap_type_t &val)
|
||||
{
|
||||
val = (winstd::eap_type_t)0; // Reset higher bytes to zero before reading to lower byte.
|
||||
cursor >> (unsigned char&)val;
|
||||
}
|
||||
|
||||
|
Binary file not shown.
@@ -55,7 +55,6 @@ wxTLSServerTrustPanelBase::wxTLSServerTrustPanelBase( wxWindow* parent, wxWindow
|
||||
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->Enable( false );
|
||||
m_root_ca_remove->SetToolTip( _("Removes selected certificate authorities from the list") );
|
||||
|
||||
sb_root_ca_btn->Add( m_root_ca_remove, 0, wxLEFT, 5 );
|
||||
|
@@ -659,7 +659,7 @@
|
||||
<property name="dock">Dock</property>
|
||||
<property name="dock_fixed">0</property>
|
||||
<property name="docking">Left</property>
|
||||
<property name="enabled">0</property>
|
||||
<property name="enabled">1</property>
|
||||
<property name="fg"></property>
|
||||
<property name="floatable">1</property>
|
||||
<property name="font"></property>
|
||||
|
@@ -37,7 +37,7 @@ public:
|
||||
protected:
|
||||
static wxCriticalSection s_lock; ///< Initialization lock
|
||||
static unsigned long s_init_ref_count; ///< Initialization reference counter
|
||||
static wxLocale s_locale; ///< Locale
|
||||
static wxLocale *s_locale; ///< Locale
|
||||
};
|
||||
|
||||
|
||||
@@ -343,9 +343,10 @@ wxInitializerPeer::wxInitializerPeer(_In_ HINSTANCE instance)
|
||||
|
||||
// Do our wxWidgets configuration and localization initialization.
|
||||
wxInitializeConfig();
|
||||
if (wxInitializeLocale(s_locale)) {
|
||||
s_locale.AddCatalog(wxT("wxExtend") wxT(wxExtendVersion));
|
||||
s_locale.AddCatalog(wxT("EAPTTLSUI"));
|
||||
s_locale = new wxLocale;
|
||||
if (wxInitializeLocale(*s_locale)) {
|
||||
s_locale->AddCatalog(wxT("wxExtend") wxT(wxExtendVersion));
|
||||
s_locale->AddCatalog(wxT("EAPTTLSUI"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -357,9 +358,14 @@ wxInitializerPeer::~wxInitializerPeer()
|
||||
return;
|
||||
|
||||
wxEntryCleanup();
|
||||
|
||||
if (s_locale) {
|
||||
delete s_locale;
|
||||
s_locale = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
wxCriticalSection wxInitializerPeer::s_lock;
|
||||
unsigned long wxInitializerPeer::s_init_ref_count = 0;
|
||||
wxLocale wxInitializerPeer::s_locale;
|
||||
wxLocale *wxInitializerPeer::s_locale = NULL;
|
||||
|
Submodule lib/WinStd updated: 5ffcb79306...750f40fada
Submodule lib/wxExtend updated: a57c87aaaa...e353a2ed60
Reference in New Issue
Block a user