mirror of https://github.com/acidanthera/audk.git
NetworkPkg: Update the IpsecDxe driver related PCDs in NetworkPkg.dec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11258 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
e5c861ac2e
commit
bfd4204b2d
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
The operations for IKEv2 SA.
|
The operations for IKEv2 SA.
|
||||||
|
|
||||||
Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
|
@ -819,7 +819,7 @@ Ikev2InitCertGenerator (
|
||||||
LIST_ENTRY *Node;
|
LIST_ENTRY *Node;
|
||||||
IKE_PAYLOAD *NoncePayload;
|
IKE_PAYLOAD *NoncePayload;
|
||||||
|
|
||||||
if (!FeaturePcdGet (PcdIpsecCertiifcateEnabled)) {
|
if (!FeaturePcdGet (PcdIpsecCertificateEnabled)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -835,8 +835,8 @@ Ikev2InitCertGenerator (
|
||||||
CertReqPayload = Ikev2GenerateCertificatePayload (
|
CertReqPayload = Ikev2GenerateCertificatePayload (
|
||||||
(IKEV2_SA_SESSION *)SaSession,
|
(IKEV2_SA_SESSION *)SaSession,
|
||||||
IKEV2_PAYLOAD_TYPE_NONE,
|
IKEV2_PAYLOAD_TYPE_NONE,
|
||||||
(UINT8*)PcdGetPtr(UefiCaFile),
|
(UINT8*)PcdGetPtr(PcdIpsecUefiCaFile),
|
||||||
PcdGet32(UefiCaFileSize),
|
PcdGet32(PcdIpsecUefiCaFileSize),
|
||||||
IKEV2_CERT_ENCODEING_HASH_AND_URL_OF_X509_CERT,
|
IKEV2_CERT_ENCODEING_HASH_AND_URL_OF_X509_CERT,
|
||||||
TRUE
|
TRUE
|
||||||
);
|
);
|
||||||
|
@ -874,7 +874,7 @@ Ikev2InitCertParser (
|
||||||
IN IKE_PACKET *IkePacket
|
IN IKE_PACKET *IkePacket
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (!FeaturePcdGet (PcdIpsecCertiifcateEnabled)) {
|
if (!FeaturePcdGet (PcdIpsecCertificateEnabled)) {
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -913,7 +913,7 @@ Ikev2AuthCertGenerator (
|
||||||
IKE_PAYLOAD *CertReqPayload;
|
IKE_PAYLOAD *CertReqPayload;
|
||||||
IKEV2_CHILD_SA_SESSION *ChildSaSession;
|
IKEV2_CHILD_SA_SESSION *ChildSaSession;
|
||||||
|
|
||||||
if (!FeaturePcdGet (PcdIpsecCertiifcateEnabled)) {
|
if (!FeaturePcdGet (PcdIpsecCertificateEnabled)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -962,8 +962,8 @@ Ikev2AuthCertGenerator (
|
||||||
IdPayload = Ikev2GenerateCertIdPayload (
|
IdPayload = Ikev2GenerateCertIdPayload (
|
||||||
&IkeSaSession->SessionCommon,
|
&IkeSaSession->SessionCommon,
|
||||||
IKEV2_PAYLOAD_TYPE_CERT,
|
IKEV2_PAYLOAD_TYPE_CERT,
|
||||||
(UINT8 *)PcdGetPtr (UefiCertificate),
|
(UINT8 *)PcdGetPtr (PcdIpsecUefiCertificate),
|
||||||
PcdGet32 (UefiCertificateSize)
|
PcdGet32 (PcdIpsecUefiCertificateSize)
|
||||||
);
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -972,8 +972,8 @@ Ikev2AuthCertGenerator (
|
||||||
CertPayload = Ikev2GenerateCertificatePayload (
|
CertPayload = Ikev2GenerateCertificatePayload (
|
||||||
IkeSaSession,
|
IkeSaSession,
|
||||||
(UINT8)(IkeSaSession->SessionCommon.IsInitiator ? IKEV2_PAYLOAD_TYPE_CERTREQ : IKEV2_PAYLOAD_TYPE_AUTH),
|
(UINT8)(IkeSaSession->SessionCommon.IsInitiator ? IKEV2_PAYLOAD_TYPE_CERTREQ : IKEV2_PAYLOAD_TYPE_AUTH),
|
||||||
(UINT8 *)PcdGetPtr (UefiCertificate),
|
(UINT8 *)PcdGetPtr (PcdIpsecUefiCertificate),
|
||||||
PcdGet32 (UefiCertificateSize),
|
PcdGet32 (PcdIpsecUefiCertificateSize),
|
||||||
IKEV2_CERT_ENCODEING_X509_CERT_SIGN,
|
IKEV2_CERT_ENCODEING_X509_CERT_SIGN,
|
||||||
FALSE
|
FALSE
|
||||||
);
|
);
|
||||||
|
@ -981,8 +981,8 @@ Ikev2AuthCertGenerator (
|
||||||
CertReqPayload = Ikev2GenerateCertificatePayload (
|
CertReqPayload = Ikev2GenerateCertificatePayload (
|
||||||
IkeSaSession,
|
IkeSaSession,
|
||||||
IKEV2_PAYLOAD_TYPE_AUTH,
|
IKEV2_PAYLOAD_TYPE_AUTH,
|
||||||
(UINT8 *)PcdGetPtr (UefiCertificate),
|
(UINT8 *)PcdGetPtr (PcdIpsecUefiCertificate),
|
||||||
PcdGet32 (UefiCertificateSize),
|
PcdGet32 (PcdIpsecUefiCertificateSize),
|
||||||
IKEV2_CERT_ENCODEING_HASH_AND_URL_OF_X509_CERT,
|
IKEV2_CERT_ENCODEING_HASH_AND_URL_OF_X509_CERT,
|
||||||
TRUE
|
TRUE
|
||||||
);
|
);
|
||||||
|
@ -999,8 +999,8 @@ Ikev2AuthCertGenerator (
|
||||||
IdPayload,
|
IdPayload,
|
||||||
IKEV2_PAYLOAD_TYPE_SA,
|
IKEV2_PAYLOAD_TYPE_SA,
|
||||||
FALSE,
|
FALSE,
|
||||||
(UINT8 *)PcdGetPtr (UefiCertificateKey),
|
(UINT8 *)PcdGetPtr (PcdIpsecUefiCertificateKey),
|
||||||
PcdGet32 (UefiCertificateKeySize),
|
PcdGet32 (PcdIpsecUefiCertificateKeySize),
|
||||||
ChildSaSession->IkeSaSession->Pad->Data->AuthData,
|
ChildSaSession->IkeSaSession->Pad->Data->AuthData,
|
||||||
ChildSaSession->IkeSaSession->Pad->Data->AuthDataSize
|
ChildSaSession->IkeSaSession->Pad->Data->AuthDataSize
|
||||||
);
|
);
|
||||||
|
@ -1010,8 +1010,8 @@ Ikev2AuthCertGenerator (
|
||||||
IdPayload,
|
IdPayload,
|
||||||
IKEV2_PAYLOAD_TYPE_CP,
|
IKEV2_PAYLOAD_TYPE_CP,
|
||||||
FALSE,
|
FALSE,
|
||||||
(UINT8 *)PcdGetPtr (UefiCertificateKey),
|
(UINT8 *)PcdGetPtr (PcdIpsecUefiCertificateKey),
|
||||||
PcdGet32 (UefiCertificateKeySize),
|
PcdGet32 (PcdIpsecUefiCertificateKeySize),
|
||||||
ChildSaSession->IkeSaSession->Pad->Data->AuthData,
|
ChildSaSession->IkeSaSession->Pad->Data->AuthData,
|
||||||
ChildSaSession->IkeSaSession->Pad->Data->AuthDataSize
|
ChildSaSession->IkeSaSession->Pad->Data->AuthDataSize
|
||||||
);
|
);
|
||||||
|
@ -1137,7 +1137,7 @@ Ikev2AuthCertParser (
|
||||||
LIST_ENTRY *Entry;
|
LIST_ENTRY *Entry;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
if (!FeaturePcdGet (PcdIpsecCertiifcateEnabled)) {
|
if (!FeaturePcdGet (PcdIpsecCertificateEnabled)) {
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1236,8 +1236,8 @@ Ikev2AuthCertParser (
|
||||||
(!IpSecCryptoIoVerifySignDataByCertificate (
|
(!IpSecCryptoIoVerifySignDataByCertificate (
|
||||||
CertPayload->PayloadBuf + sizeof (IKEV2_CERT),
|
CertPayload->PayloadBuf + sizeof (IKEV2_CERT),
|
||||||
CertPayload->PayloadSize - sizeof (IKEV2_CERT),
|
CertPayload->PayloadSize - sizeof (IKEV2_CERT),
|
||||||
(UINT8 *)PcdGetPtr (UefiCaFile),
|
(UINT8 *)PcdGetPtr (PcdIpsecUefiCaFile),
|
||||||
PcdGet32 (UefiCaFileSize),
|
PcdGet32 (PcdIpsecUefiCaFileSize),
|
||||||
VerifiedAuthPayload->PayloadBuf + sizeof (IKEV2_AUTH),
|
VerifiedAuthPayload->PayloadBuf + sizeof (IKEV2_AUTH),
|
||||||
VerifiedAuthPayload->PayloadSize - sizeof (IKEV2_AUTH),
|
VerifiedAuthPayload->PayloadSize - sizeof (IKEV2_AUTH),
|
||||||
AuthPayload->PayloadBuf + sizeof (IKEV2_AUTH),
|
AuthPayload->PayloadBuf + sizeof (IKEV2_AUTH),
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
## @file
|
## @file
|
||||||
# Component description file for IpSec module.
|
# Component description file for IpSec module.
|
||||||
#
|
#
|
||||||
# Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
|
# Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||||
#
|
#
|
||||||
# This program and the accompanying materials
|
# This program and the accompanying materials
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
# are licensed and made available under the terms and conditions of the BSD License
|
||||||
|
@ -92,10 +92,10 @@
|
||||||
gEfiIpSecProtocolGuid # PROTOCOL ALWAYS_PRODUCED
|
gEfiIpSecProtocolGuid # PROTOCOL ALWAYS_PRODUCED
|
||||||
|
|
||||||
[Pcd]
|
[Pcd]
|
||||||
gEfiNetworkPkgTokenSpaceGuid.PcdIpsecCertiifcateEnabled
|
gEfiNetworkPkgTokenSpaceGuid.PcdIpsecCertificateEnabled
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.UefiCaFile
|
gEfiNetworkPkgTokenSpaceGuid.PcdIpsecUefiCaFile
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.UefiCaFileSize
|
gEfiNetworkPkgTokenSpaceGuid.PcdIpsecUefiCaFileSize
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.UefiCertificate
|
gEfiNetworkPkgTokenSpaceGuid.PcdIpsecUefiCertificate
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.UefiCertificateSize
|
gEfiNetworkPkgTokenSpaceGuid.PcdIpsecUefiCertificateSize
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.UefiCertificateKey
|
gEfiNetworkPkgTokenSpaceGuid.PcdIpsecUefiCertificateKey
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.UefiCertificateKeySize
|
gEfiNetworkPkgTokenSpaceGuid.PcdIpsecUefiCertificateKeySize
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue