summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Network/IScsiDxe/IScsiCHAP.h
diff options
context:
space:
mode:
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2008-04-17 08:28:51 +0000
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2008-04-17 08:28:51 +0000
commit12618416ec7a468bc7e47d9739cf973a0bb418fc (patch)
tree1a23c7d46665240f08b061aaa13832da602162d3 /MdeModulePkg/Universal/Network/IScsiDxe/IScsiCHAP.h
parentd16fc3dbb3461dab1cb8a8df21b9e3c2e09723e6 (diff)
downloadedk2-12618416ec7a468bc7e47d9739cf973a0bb418fc.zip
edk2-12618416ec7a468bc7e47d9739cf973a0bb418fc.tar.gz
edk2-12618416ec7a468bc7e47d9739cf973a0bb418fc.tar.bz2
[Description]
change the old code style to comply with Doxgen format [Impaction] add comments for every function [Reference Info] add comments to achieve the highest standard of code quality matrix git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5079 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/IScsiDxe/IScsiCHAP.h')
-rw-r--r--MdeModulePkg/Universal/Network/IScsiDxe/IScsiCHAP.h38
1 files changed, 35 insertions, 3 deletions
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiCHAP.h b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiCHAP.h
index 2889167..bd5b13c 100644
--- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiCHAP.h
+++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiCHAP.h
@@ -1,4 +1,5 @@
-/*++
+/** @file
+ The header file of CHAP configuration
Copyright (c) 2004 - 2007, Intel Corporation
All rights reserved. This program and the accompanying materials
@@ -14,8 +15,8 @@ Module Name:
IScsiCHAP.h
Abstract:
-
---*/
+ the header file for CHAP
+**/
#ifndef _ISCSI_CHAP_H_
#define _ISCSI_CHAP_H_
@@ -80,12 +81,43 @@ typedef struct _ISCSI_CHAP_AUTH_DATA {
UINT32 OutChallengeLength;
} ISCSI_CHAP_AUTH_DATA;
+/**
+ This function checks the received iSCSI Login Response during the security
+ negotiation stage.
+
+ @param Conn[in] The iSCSI connection.
+
+ @param Transit[in] The transit flag of the latest iSCSI Login Response.
+
+ @retval EFI_SUCCESS The Login Response passed the CHAP validation.
+
+ @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
+
+ @retval EFI_PROTOCOL_ERROR Some kind of protocol error happend.
+
+**/
EFI_STATUS
IScsiCHAPOnRspReceived (
IN ISCSI_CONNECTION *Conn,
IN BOOLEAN Transit
);
+/**
+ This function fills the CHAP authentication information into the login PDU
+ during the security negotiation stage in the iSCSI connection login.
+
+ @param Conn[in] The iSCSI connection.
+
+ @param Pdu[in] The PDU to send out.
+
+ @retval EFI_SUCCESS All check passed and the phase-related CHAP
+ authentication info is filled into the iSCSI PDU.
+
+ @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
+
+ @retval EFI_PROTOCOL_ERROR Some kind of protocol error happend.
+
+**/
EFI_STATUS
IScsiCHAPToSendReq (
IN ISCSI_CONNECTION *Conn,