From 9abd3166ec2655c70143337f477b44e4f7a06fb2 Mon Sep 17 00:00:00 2001 From: niruiyu Date: Wed, 13 Jul 2011 05:35:20 +0000 Subject: [PATCH] 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 --- MdePkg/Include/Protocol/AuthenticationInfo.h | 58 +++++++++++++++----- 1 file changed, 45 insertions(+), 13 deletions(-) diff --git a/MdePkg/Include/Protocol/AuthenticationInfo.h b/MdePkg/Include/Protocol/AuthenticationInfo.h index 3530aabb90..a69423fe5b 100644 --- a/MdePkg/Include/Protocol/AuthenticationInfo.h +++ b/MdePkg/Include/Protocol/AuthenticationInfo.h @@ -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()