Microchip® Advanced Software Framework

tstrAuth1xMschap2 Struct Reference

#include <m2m_wifi.h>

Data Fields

bool bPrependDomain
 
bool bUnencryptedUserName
 
uint8pu8Domain
 
uint8pu8Password
 
uint8pu8UserName
 
uint16 u16DomainLen
 
uint16 u16PasswordLen
 
uint16 u16UserNameLen
 

bool tstrAuth1xMschap2::bPrependDomain

Determines whether Domain is prepended or appended to UserName in EAP identity responses. true: Domain is prepended to UserName - [Domain][UserName]. false: Domain is appended to UserName - [UserName][Domain].

Referenced by m2m_wifi_connect_1x_mschap2(), and main().

bool tstrAuth1xMschap2::bUnencryptedUserName

Determines whether UserName or "anonymous" is sent (unencrypted) in the initial EAP identity response. Domain is sent in both cases.
true: UserName is sent in the initial EAP identity response (not recommended). false: "anonymous" is sent in the initial EAP identity response. This setting is recommended for tunneled methods. MSCHAPv2 is always a tunneled method.

Referenced by m2m_wifi_connect_1x_mschap2(), and main().

uint8* tstrAuth1xMschap2::pu8Domain

Pointer to Domain of authentication server (printable ASCII), including '@' or '\' separator character as appropriate. Use NULL if there is no domain information. The Domain will be either prepended or appended to the UserName, depending on the setting of field bPrependDomain.
Example 1: if [Domain]is "@my_domain" and bPrependDomain is false, then the EAP identity response is "[UserName]@my_domain".
Example 2: if [Domain]is "my_domain\" and bPrependDomain is true, then the EAP identity response is "my_domain\[UserName]".

Referenced by m2m_wifi_connect_1x_mschap2(), and main().

uint8* tstrAuth1xMschap2::pu8Password

Pointer to MSCHAPv2 Password (ASCII). This will be used during MSCHAPv2 authentication.

Referenced by m2m_wifi_connect_1x_mschap2(), and main().

uint8* tstrAuth1xMschap2::pu8UserName

Pointer to UserName (ASCII). This will be sent (encrypted) in the tunneled EAP identity response (if applicable) and used during MSCHAPv2 authentication. If bUnencryptedUserName is true then it will also be sent (unencrypted) in the initial EAP identity response.

Referenced by m2m_wifi_connect_1x_mschap2(), and main().

uint16 tstrAuth1xMschap2::u16DomainLen

Length of Domain (in ASCII characters), including '@' or '\' separator character as appropriate. Permitted values are such that u16DomainLen + u16UserNameLen is between 0 and M2M_AUTH_1X_USER_LEN_MAX.

Referenced by m2m_wifi_connect_1x_mschap2().

uint16 tstrAuth1xMschap2::u16PasswordLen

Length of Password (in ASCII characters). Permitted values are between 0 and M2M_AUTH_1X_PASSWORD_LEN_MAX.

Referenced by m2m_wifi_connect_1x_mschap2(), and main().

uint16 tstrAuth1xMschap2::u16UserNameLen

Length of UserName (in ASCII characters). Permitted values are such that u16DomainLen + u16UserNameLen is between 0 and M2M_AUTH_1X_USER_LEN_MAX.

Referenced by m2m_wifi_connect_1x_mschap2(), and main().