Fix CRLF format

Signed-off-by: Tian, Hot <hot.tian@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15157 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Tian, Hot 2014-01-22 08:39:32 +00:00 committed by hhtian
parent 8db92ab59b
commit 44de1013cf
7 changed files with 69 additions and 69 deletions

View File

@ -93,10 +93,10 @@
#define IKE_TRANSFORM_NEXT_PAYLOAD_MORE 3 #define IKE_TRANSFORM_NEXT_PAYLOAD_MORE 3
#define IKE_TRANSFORM_NEXT_PAYLOAD_NONE 0 #define IKE_TRANSFORM_NEXT_PAYLOAD_NONE 0
// //
// Max size of the SA attribute // Max size of the SA attribute
// //
#define MAX_SA_ATTRS_SIZE 48 #define MAX_SA_ATTRS_SIZE 48
#define SA_ATTR_FORMAT_BIT 0x8000 #define SA_ATTR_FORMAT_BIT 0x8000
// //
// The definition for Information Message ID. // The definition for Information Message ID.

View File

@ -194,42 +194,42 @@ IkeGenerateIv (
} }
/** /**
Find SPD entry by a specified SPD selector. Find SPD entry by a specified SPD selector.
@param[in] SpdSel Point to SPD Selector to be searched for. @param[in] SpdSel Point to SPD Selector to be searched for.
@retval Point to SPD Entry if the SPD entry found. @retval Point to SPD Entry if the SPD entry found.
@retval NULL if not found. @retval NULL if not found.
**/ **/
IPSEC_SPD_ENTRY * IPSEC_SPD_ENTRY *
IkeSearchSpdEntry ( IkeSearchSpdEntry (
IN EFI_IPSEC_SPD_SELECTOR *SpdSel IN EFI_IPSEC_SPD_SELECTOR *SpdSel
) )
{ {
IPSEC_SPD_ENTRY *SpdEntry; IPSEC_SPD_ENTRY *SpdEntry;
LIST_ENTRY *SpdList; LIST_ENTRY *SpdList;
LIST_ENTRY *Entry; LIST_ENTRY *Entry;
SpdList = &mConfigData[IPsecConfigDataTypeSpd]; SpdList = &mConfigData[IPsecConfigDataTypeSpd];
NET_LIST_FOR_EACH (Entry, SpdList) { NET_LIST_FOR_EACH (Entry, SpdList) {
SpdEntry = IPSEC_SPD_ENTRY_FROM_LIST (Entry); SpdEntry = IPSEC_SPD_ENTRY_FROM_LIST (Entry);
// //
// Find the required SPD entry // Find the required SPD entry
// //
if (CompareSpdSelector ( if (CompareSpdSelector (
(EFI_IPSEC_CONFIG_SELECTOR *) SpdSel, (EFI_IPSEC_CONFIG_SELECTOR *) SpdSel,
(EFI_IPSEC_CONFIG_SELECTOR *) SpdEntry->Selector (EFI_IPSEC_CONFIG_SELECTOR *) SpdEntry->Selector
)) { )) {
return SpdEntry; return SpdEntry;
} }
} }
return NULL; return NULL;
} }
/** /**

View File

@ -167,18 +167,18 @@ IkeGetVersionFromSession (
IN UINT8 *Session IN UINT8 *Session
); );
/** /**
Find SPD entry by a specified SPD selector. Find SPD entry by a specified SPD selector.
@param[in] SpdSel Point to SPD Selector to be searched for. @param[in] SpdSel Point to SPD Selector to be searched for.
@retval Point to Spd Entry if the SPD entry found. @retval Point to Spd Entry if the SPD entry found.
@retval NULL if not found. @retval NULL if not found.
**/ **/
IPSEC_SPD_ENTRY * IPSEC_SPD_ENTRY *
IkeSearchSpdEntry ( IkeSearchSpdEntry (
IN EFI_IPSEC_SPD_SELECTOR *SpdSel IN EFI_IPSEC_SPD_SELECTOR *SpdSel
); );
extern EFI_GUID mZeroGuid; extern EFI_GUID mZeroGuid;

View File

@ -779,11 +779,11 @@ Ikev2HandleInfo (
} }
} }
IKE_EXCHANGE_INTERFACE mIkev1Exchange = { IKE_EXCHANGE_INTERFACE mIkev1Exchange = {
1, 1,
NULL, //Ikev1NegotiateSa NULL, //Ikev1NegotiateSa
NULL, //Ikev1NegotiateChildSa NULL, //Ikev1NegotiateChildSa
NULL, NULL,
NULL, //Ikev1HandleSa, NULL, //Ikev1HandleSa,
NULL, //Ikev1HandleChildSa NULL, //Ikev1HandleChildSa
NULL, //Ikev1HandleInfo NULL, //Ikev1HandleInfo

View File

@ -666,26 +666,26 @@ Ikev2ChildSaSessionLookupByMid (
{ {
LIST_ENTRY *Entry; LIST_ENTRY *Entry;
IKEV2_CHILD_SA_SESSION *ChildSaSession; IKEV2_CHILD_SA_SESSION *ChildSaSession;
NET_LIST_FOR_EACH (Entry, SaSessionList) { NET_LIST_FOR_EACH (Entry, SaSessionList) {
ChildSaSession = IKEV2_CHILD_SA_SESSION_BY_IKE_SA (Entry); ChildSaSession = IKEV2_CHILD_SA_SESSION_BY_IKE_SA (Entry);
if (ChildSaSession->MessageId == Mid) { if (ChildSaSession->MessageId == Mid) {
return ChildSaSession; return ChildSaSession;
} }
} }
return NULL; return NULL;
} }
/** /**
This function find the Child SA by the specified SPI. This function find the Child SA by the specified SPI.
This functin find a ChildSA session by searching the ChildSaSessionlist of This functin find a ChildSA session by searching the ChildSaSessionlist of
the input IKEV2_SA_SESSION by specified MessageID. the input IKEV2_SA_SESSION by specified MessageID.
@param[in] SaSessionList Pointer to List to be searched. @param[in] SaSessionList Pointer to List to be searched.
@param[in] Spi Specified SPI. @param[in] Spi Specified SPI.
@return Pointer to IKEV2_CHILD_SA_SESSION or NULL. @return Pointer to IKEV2_CHILD_SA_SESSION or NULL.
**/ **/
@ -697,14 +697,14 @@ Ikev2ChildSaSessionLookupBySpi (
{ {
LIST_ENTRY *Entry; LIST_ENTRY *Entry;
IKEV2_CHILD_SA_SESSION *ChildSaSession; IKEV2_CHILD_SA_SESSION *ChildSaSession;
NET_LIST_FOR_EACH (Entry, SaSessionList) { NET_LIST_FOR_EACH (Entry, SaSessionList) {
ChildSaSession = IKEV2_CHILD_SA_SESSION_BY_IKE_SA (Entry); ChildSaSession = IKEV2_CHILD_SA_SESSION_BY_IKE_SA (Entry);
if (ChildSaSession->RemotePeerSpi == Spi || ChildSaSession->LocalPeerSpi == Spi) { if (ChildSaSession->RemotePeerSpi == Spi || ChildSaSession->LocalPeerSpi == Spi) {
return ChildSaSession; return ChildSaSession;
} }
} }
return NULL; return NULL;
} }

View File

@ -195,13 +195,13 @@ Ikev2ChildSaSessionReg (
/** /**
This function find the Child SA by the specified Spi. This function find the Child SA by the specified Spi.
This functin find a ChildSA session by searching the ChildSaSessionlist of This functin find a ChildSA session by searching the ChildSaSessionlist of
the input IKEV2_SA_SESSION by specified MessageID. the input IKEV2_SA_SESSION by specified MessageID.
@param[in] SaSessionList Pointer to List to be searched. @param[in] SaSessionList Pointer to List to be searched.
@param[in] Spi Specified SPI. @param[in] Spi Specified SPI.
@return Pointer to IKEV2_CHILD_SA_SESSION. @return Pointer to IKEV2_CHILD_SA_SESSION.
**/ **/

View File

@ -124,9 +124,9 @@ typedef struct _IPSEC_RECYCLE_CONTEXT {
// //
// Struct used to store the Hash and its data. // Struct used to store the Hash and its data.
// //
typedef struct { typedef struct {
UINTN DataSize; UINTN DataSize;
UINT8 *Data; UINT8 *Data;
} HASH_DATA_FRAGMENT; } HASH_DATA_FRAGMENT;
struct _IPSEC_PRIVATE_DATA { struct _IPSEC_PRIVATE_DATA {