]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/IScsiDxe/IScsiCHAP.h
update file header
[mirror_edk2.git] / MdeModulePkg / Universal / Network / IScsiDxe / IScsiCHAP.h
index bd5b13c00c180581519b09a6b452025354a1ae31..7bb01c5a6bf223f50a709fb4b1b187117e31e3f7 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
-  The header file of CHAP configuration\r
+  The header file of CHAP configuration.\r
 \r
-Copyright (c) 2004 - 2007, Intel Corporation\r
+Copyright (c) 2004 - 2007, Intel Corporation.<BR>\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -10,12 +10,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  IScsiCHAP.h\r
-\r
-Abstract:\r
-  the header file for CHAP\r
 **/\r
 \r
 #ifndef _ISCSI_CHAP_H_\r
@@ -39,7 +33,10 @@ extern EFI_GUID mIScsiCHAPAuthInfoGuid;
 #define ISCSI_CHAP_ALGORITHM_MD5  5\r
 \r
 #define ISCSI_CHAP_AUTH_MAX_LEN   1024\r
-#define ISCSI_CHAP_RSP_LEN        16  // == MD5_HASHSIZE\r
+///\r
+/// MD5_HASHSIZE\r
+///\r
+#define ISCSI_CHAP_RSP_LEN        16  \r
 typedef enum {\r
   ISCSI_CHAP_INITIAL,\r
   ISCSI_CHAP_STEP_ONE,\r
@@ -60,9 +57,9 @@ typedef struct _ISCSI_CHAP_AUTH_CONFIG_NVDATA {
 \r
 #pragma pack()\r
 \r
-//\r
-// ISCSI CHAP Authentication Data\r
-//\r
+///\r
+/// ISCSI CHAP Authentication Data\r
+///\r
 typedef struct _ISCSI_CHAP_AUTH_DATA {\r
   ISCSI_CHAP_AUTH_CONFIG_NVDATA AuthConfig;\r
   UINT32                        InIdentifier;\r
@@ -85,16 +82,13 @@ typedef struct _ISCSI_CHAP_AUTH_DATA {
   This function checks the received iSCSI Login Response during the security\r
   negotiation stage.\r
   \r
-  @param  Conn[in]             The iSCSI connection.\r
-\r
-  @param  Transit[in]          The transit flag of the latest iSCSI Login Response.\r
+  @param[in] Conn             The iSCSI connection.\r
+  @param[in] Transit          The transit flag of the latest iSCSI Login Response.\r
 \r
   @retval EFI_SUCCESS          The Login Response passed the CHAP validation.\r
-\r
   @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
-\r
   @retval EFI_PROTOCOL_ERROR   Some kind of protocol error happend.\r
-\r
+  @retval Others               Some unexpected error happend.\r
 **/\r
 EFI_STATUS\r
 IScsiCHAPOnRspReceived (\r
@@ -106,17 +100,13 @@ IScsiCHAPOnRspReceived (
   This function fills the CHAP authentication information into the login PDU\r
   during the security negotiation stage in the iSCSI connection login.\r
 \r
-  @param  Conn[in]             The iSCSI connection.\r
-\r
-  @param  Pdu[in]              The PDU to send out.\r
+  @param[in]  Conn             The iSCSI connection.\r
+  @param[in]  Pdu              The PDU to send out.\r
 \r
   @retval EFI_SUCCESS          All check passed and the phase-related CHAP\r
                                authentication info is filled into the iSCSI PDU.\r
-\r
   @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
-\r
   @retval EFI_PROTOCOL_ERROR   Some kind of protocol error happend.\r
-\r
 **/\r
 EFI_STATUS\r
 IScsiCHAPToSendReq (\r