mirror of https://github.com/acidanthera/audk.git
NetworkPkg/IpSecDxe: Add missing EFIAPI for callback functions
Callback functions must always use EFIAPI. GCC 4.4 X64 flagged these mismatches in EFIAPI usage. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11221 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
911302d531
commit
1d8fa5e94f
|
@ -99,6 +99,7 @@ IkePacketFree (
|
|||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
IkePacketNetbufFree (
|
||||
IN VOID *Arg
|
||||
)
|
||||
|
|
|
@ -116,6 +116,7 @@ IkeLookupUdp (
|
|||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
IkeConfigUdp4 (
|
||||
IN UDP_IO *UdpIo,
|
||||
IN VOID *Context
|
||||
|
@ -157,6 +158,7 @@ IkeConfigUdp4 (
|
|||
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
IkeConfigUdp6 (
|
||||
IN UDP_IO *UdpIo,
|
||||
IN VOID *Context
|
||||
|
@ -573,6 +575,7 @@ IkeNegotiate (
|
|||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
IkeDispatch (
|
||||
IN NET_BUF *Packet,
|
||||
IN UDP_END_POINT *EndPoint,
|
||||
|
|
|
@ -207,6 +207,7 @@ IkeNegotiate (
|
|||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
IkeDispatch (
|
||||
IN NET_BUF *Packet,
|
||||
IN UDP_END_POINT *EndPoint,
|
||||
|
|
|
@ -3015,6 +3015,7 @@ Ikev2OnPacketAccepted (
|
|||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
Ikev2OnPacketSent (
|
||||
IN NET_BUF *Packet,
|
||||
IN UDP_END_POINT *EndPoint,
|
||||
|
@ -3050,7 +3051,7 @@ Ikev2OnPacketSent (
|
|||
IkePacketFree (IkePacket);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Private = IkePacket->Private;
|
||||
if (IkePacket->Spi != 0 ) {
|
||||
//
|
||||
|
@ -3088,7 +3089,7 @@ Ikev2OnPacketSent (
|
|||
IkeSaSession->InitiatorCookie,
|
||||
IkeSaSession->ResponderCookie)
|
||||
);
|
||||
|
||||
|
||||
RemoveEntryList (&IkeSaSession->BySessionTable);
|
||||
Ikev2SaSessionFree (IkeSaSession);
|
||||
}
|
||||
|
@ -3100,27 +3101,27 @@ Ikev2OnPacketSent (
|
|||
// should be changed.
|
||||
//
|
||||
if (Private != NULL && Private->IsIPsecDisabling) {
|
||||
//
|
||||
// After all IKE SAs were deleted, set the IPSEC_STATUS_DISABLED value in
|
||||
// IPsec status variable.
|
||||
//
|
||||
//
|
||||
// After all IKE SAs were deleted, set the IPSEC_STATUS_DISABLED value in
|
||||
// IPsec status variable.
|
||||
//
|
||||
if (IsListEmpty (&Private->Ikev1EstablishedList) && IsListEmpty (&Private->Ikev2EstablishedList)) {
|
||||
Value = IPSEC_STATUS_DISABLED;
|
||||
Status = gRT->SetVariable (
|
||||
IPSECCONFIG_STATUS_NAME,
|
||||
&gEfiIpSecConfigProtocolGuid,
|
||||
EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE,
|
||||
sizeof (Value),
|
||||
&Value
|
||||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
//
|
||||
// Set the DisabledFlag in Private data.
|
||||
//
|
||||
Private->IpSec.DisabledFlag = TRUE;
|
||||
Private->IsIPsecDisabling = FALSE;
|
||||
}
|
||||
}
|
||||
Value = IPSEC_STATUS_DISABLED;
|
||||
Status = gRT->SetVariable (
|
||||
IPSECCONFIG_STATUS_NAME,
|
||||
&gEfiIpSecConfigProtocolGuid,
|
||||
EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE,
|
||||
sizeof (Value),
|
||||
&Value
|
||||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
//
|
||||
// Set the DisabledFlag in Private data.
|
||||
//
|
||||
Private->IpSec.DisabledFlag = TRUE;
|
||||
Private->IsIPsecDisabling = FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue