121 lines
3.9 KiB
C++
121 lines
3.9 KiB
C++
//----------------------------------------------------------------------------
|
||
//
|
||
// Copyright (C) 2008 Intel Corporation
|
||
//
|
||
// File: WirelessConfigurationFlow.h
|
||
//
|
||
// Contents: API code for Intel(R) Active Management Technology
|
||
// (Intel<65> AMT) WirelessConfiguration Sample.
|
||
//
|
||
// Notes: This file contains the WirelessConfigurationFlow methods.
|
||
//
|
||
//----------------------------------------------------------------------------
|
||
|
||
#ifndef WIRELESS_CONFIGURATION_FLOW_H
|
||
#define WIRELESS_CONFIGURATION_FLOW_H
|
||
#include <string>
|
||
#include "CimWsman.h"
|
||
|
||
using namespace std;
|
||
using namespace Intel::WSManagement;
|
||
using namespace Intel::Manageability::Cim;
|
||
using namespace Intel::Manageability::Exceptions;
|
||
|
||
#pragma region CONSTANT
|
||
|
||
static const string PskPassPhrase = "Admin!98";
|
||
static const string UserWireless = "wireless_user";
|
||
static const string InstanceIDIT = "Intel(r) AMT:WiFi Endpoint Settings ";
|
||
static const string InstanceIDUser = "Intel(r) AMT:WiFi Endpoint User Settings ";
|
||
|
||
//Priorities can be any number up to #15
|
||
static const unsigned short TKIPPriority = 4;
|
||
static const unsigned short UpdateTKIPPriority = 5;
|
||
static const unsigned short Priority802_11x = 6;
|
||
static const unsigned short WEPPriority = 7;
|
||
static const unsigned short OpenPriority = 8;
|
||
static const unsigned short CCMPPriority = 9;
|
||
|
||
|
||
#pragma endregion
|
||
|
||
#pragma region ENUMS
|
||
|
||
enum AuthenticationMethods
|
||
{
|
||
AuthenticationMethodOther = 1,
|
||
AuthenticationMethodOpenSystem = 2,
|
||
AuthenticationMethodSharedKey = 3,
|
||
AuthenticationMethodWPAPSK = 4,
|
||
AuthenticationMethodWPAIEEE802_1x = 5,
|
||
AuthenticationMethodWPA2PSK = 6,
|
||
AuthenticationMethodWPA2IEEE802_1x = 7,
|
||
AuthenticationMethodDMTFReserved = 8
|
||
};
|
||
|
||
enum EncryptionMethods
|
||
{
|
||
EncryptionMethodOther = 1,
|
||
EncryptionMethodWEP = 2,
|
||
EncryptionMethodTKIP = 3,
|
||
EncryptionMethodCCMP = 4,
|
||
EncryptionMethodNone = 5,
|
||
EncryptionMethodReserved = 6,
|
||
};
|
||
|
||
enum BSSTypes
|
||
{
|
||
BSSTypeUnknown = 0,
|
||
BSSTypeIndependent = 2,
|
||
BSSTypeInfrastructure = 3,
|
||
BSSTypeReserved = 4
|
||
};
|
||
|
||
enum SupportedCapabilities
|
||
{
|
||
SupportedCapabilitiesP802_11a = 70,
|
||
SupportedCapabilitiesP802_11b = 71,
|
||
SupportedCapabilitiesP802_11g = 72,
|
||
SupportedCapabilitiesP802_11n = 73,
|
||
};
|
||
|
||
enum AuthenticationMethods802_1x
|
||
{
|
||
AuthenticationMethods802_1xEAP_TLS = 0,
|
||
AuthenticationMethods802_1xEAP_TTLS = 1,
|
||
AuthenticationMethods802_1xPEAPv0 = 2,
|
||
AuthenticationMethods802_1xPEAPv1 = 3,
|
||
AuthenticationMethods802_1xEAP_FAST_MSCHAPv2 = 4,
|
||
AuthenticationMethods802_1xEAP_FAST_GTC = 5,
|
||
AuthenticationMethods802_1xEAP_MD5 = 6,
|
||
AuthenticationMethods802_1xEAP_PSK = 7,
|
||
AuthenticationMethods802_1xEAP_SIM = 8,
|
||
AuthenticationMethods802_1xEAP_AKA = 9,
|
||
AuthenticationMethods802_1xEAP_FAST_TLS = 10,
|
||
AuthenticationMethods802_1xDMTF_Reserved = 11
|
||
};
|
||
|
||
enum LocalSynchronization
|
||
{
|
||
LocalSynchronizationDisabled = 0,
|
||
LocalUserProfileSynchronization = 1,
|
||
LocalAdminProfileSynchronization = 2,
|
||
UnrestrictedSynchronization = 3,
|
||
LocalSynchronizationReserved = 4
|
||
};
|
||
|
||
#pragma endregion
|
||
|
||
void UpdateProfile(ICimWsmanClient* wsmanClient, string profileName, unsigned short profilePriority, bool verbose);
|
||
void DeleteAllProfiles(ICimWsmanClient* wsmanClient, bool verbose);
|
||
void AddProfile(ICimWsmanClient* wsmanClient, string profileName, EncryptionMethods encryptionMethod, unsigned short profilePriority, bool verbose);
|
||
void WiFiCapabilities(ICimWsmanClient* wsmanClient, bool verbose);
|
||
void AddProfile802_1x(ICimWsmanClient* wsmanClient, string profileName, EncryptionMethods encryptionMethod, bool verbose);
|
||
void EnumerateProfiles(ICimWsmanClient* wsmanClient, int &numOfProfiles, bool verbose);
|
||
void DeleteProfile(ICimWsmanClient* wsmanClient, string profileName, bool verbose);
|
||
void GetLocalProfileSynch(ICimWsmanClient* wsmanClient, bool verbose);
|
||
void SetLocalProfileSynch(ICimWsmanClient* wsmanClient, unsigned int syncType, bool verbose);
|
||
void GetCoreVersion(ICimWsmanClient* wsmanClient);
|
||
|
||
#endif //WIRELESS_CONFIGURATION_FLOW_H
|