Change CHAP_RADIUS_AUTH_NODE & CHAP_LOCAL_AUTH_NODE definition in AuthenticationInfo.h to align to the latest spec.

Signed-off-by: niruiyu
Reviewed-by: tye

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12013 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
niruiyu 2011-07-13 05:35:20 +00:00
parent 30c00a1cfa
commit 9abd3166ec
1 changed files with 45 additions and 13 deletions

View File

@ -66,9 +66,9 @@ typedef struct {
UINT8 NasIpAddr[16]; ///< IPv4 or IPv6 address.
///
/// Network Access Server Secret Length in bytes (OPTIONAL)
/// Network Access Server Secret Length in bytes (OPTIONAL).
///
UINT16 NasSecretLength;
UINT16 NasSecretLength;
///
/// Network Access Server Secret (OPTIONAL).
@ -76,11 +76,11 @@ typedef struct {
UINT8 NasSecret[1];
///
/// CHAP Initiator Secret length in bytes on offset NasSecret + NasSecretLength.
/// CHAP Initiator Secret Length in bytes on offset NasSecret + NasSecretLength.
///
/// UINT16 ChapSecretLength;
///
/// CHAP Initiator Secret
/// CHAP Initiator Secret.
///
/// UINT8 ChapSecret[];
///
@ -88,10 +88,26 @@ typedef struct {
///
/// UINT16 ChapNameLength;
///
/// CHAP Initiator Name
/// CHAP Initiator Name.
///
/// UINT8 ChapName[];
///
/// Reverse CHAP Name Length in bytes on offset ChapName + ChapNameLength.
///
/// UINT16 ReverseChapNameLength;
///
/// Reverse CHAP Name.
///
/// UINT8 ReverseChapName[];
///
/// Reverse CHAP Secret Length in bytes on offseet ReverseChapName + ReverseChapNameLength.
///
/// UINT16 ReverseChapSecretLength;
///
/// Reverse CHAP Secret.
///
/// UINT8 ReverseChapSecret[];
///
} CHAP_RADIUS_AUTH_NODE;
typedef struct {
@ -117,25 +133,41 @@ typedef struct {
///
/// UINT16 UserNameLength;
///
/// User Name
/// User Name.
///
/// UINT8 *UserName;
/// UINT8 UserName[];
///
/// CHAP Initiator Secret length in bytes on offset UserName + UserNameLength
/// CHAP Initiator Secret Length in bytes on offset UserName + UserNameLength.
///
/// UINT16 ChapSecretLength;
///
/// CHAP Initiator Secret
/// CHAP Initiator Secret.
///
/// UINT8 *ChapSecret;
/// UINT8 ChapSecret[];
///
/// CHAP Initiator Name Length in bytes on offset ChapSecret + ChapSecretLength
/// CHAP Initiator Name Length in bytes on offset ChapSecret + ChapSecretLength.
///
/// UINT16 ChapNameLength;
///
/// CHAP Initiator Name
/// CHAP Initiator Name.
///
/// UINT8 *ChapName;
/// UINT8 ChapName[];
///
/// Reverse CHAP Name Length in bytes on offset ChapName + ChapNameLength.
///
/// UINT16 ReverseChapNameLength;
///
/// Reverse CHAP Name.
///
/// UINT8 ReverseChapName[];
///
/// Reverse CHAP Secret Length in bytes on offset ReverseChapName + ReverseChapNameLength.
///
/// UINT16 ReverseChapSecretLength;
///
/// Reverse CHAP Secret.
///
/// UINT8 ReverseChapSecret[];
///
} CHAP_LOCAL_AUTH_NODE;
#pragma pack()