mirror of https://github.com/acidanthera/audk.git
NetworkPkg/IpSecDxe: correct one comment and remove the unused buf
Cc: Fu Siyuan <siyuan.fu@intel.com> Cc: Ye Ting <ting.ye@intel.com> Cc: Zhang Lubo <lubo.zhang@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Zhang Lubo <lubo.zhang@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com>
This commit is contained in:
parent
46d4b181bb
commit
aa63a86601
|
@ -657,7 +657,6 @@ Ikev2CertGenerateAuthPayload (
|
|||
UINT8 *Digest;
|
||||
UINTN DigestSize;
|
||||
PRF_DATA_FRAGMENT Fragments[3];
|
||||
UINT8 *KeyBuf;
|
||||
IKE_PAYLOAD *AuthPayload;
|
||||
IKEV2_AUTH *PayloadBuf;
|
||||
EFI_STATUS Status;
|
||||
|
@ -682,7 +681,6 @@ Ikev2CertGenerateAuthPayload (
|
|||
//
|
||||
// Initial point
|
||||
//
|
||||
KeyBuf = NULL;
|
||||
AuthPayload = NULL;
|
||||
Digest = NULL;
|
||||
Signature = NULL;
|
||||
|
@ -697,17 +695,6 @@ Ikev2CertGenerateAuthPayload (
|
|||
return NULL;
|
||||
}
|
||||
|
||||
//
|
||||
// Store the AuthKey into KeyBuf
|
||||
//
|
||||
KeyBuf = AllocateZeroPool (DigestSize);
|
||||
if (KeyBuf == NULL) {
|
||||
Status = EFI_OUT_OF_RESOURCES;
|
||||
goto EXIT;
|
||||
}
|
||||
|
||||
CopyMem (KeyBuf, Digest, DigestSize);
|
||||
|
||||
//
|
||||
// Calculate Prf(SK_Pi/r, IDi/r)
|
||||
//
|
||||
|
@ -863,9 +850,6 @@ Ikev2CertGenerateAuthPayload (
|
|||
AuthPayload->PayloadType = IKEV2_PAYLOAD_TYPE_AUTH;
|
||||
|
||||
EXIT:
|
||||
if (KeyBuf != NULL) {
|
||||
FreePool (KeyBuf);
|
||||
}
|
||||
if (Digest != NULL) {
|
||||
FreePool (Digest);
|
||||
}
|
||||
|
@ -1492,7 +1476,7 @@ Ikev2ParserNotifyCookiePayload (
|
|||
in RFC 4306.
|
||||
@param[in] IsRequest To indicate create Certificate Payload or Certificate
|
||||
Request Payload. If it is TURE, create Certificate
|
||||
Payload. Otherwise, create Certificate Request Payload.
|
||||
Request Payload. Otherwise, create Certificate Payload.
|
||||
|
||||
@retval a Pointer to IKE Payload whose payload buffer containing the Certificate
|
||||
payload or Certificated Request payload.
|
||||
|
|
Loading…
Reference in New Issue