/** @file\r
The mian interface of IPsec Protocol.\r
\r
- Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
UINT8 OldLastHead;\r
BOOLEAN IsOutbound;\r
\r
+ if (OptionsBuffer == NULL || \r
+ OptionsLength == NULL || \r
+ FragmentTable == NULL || \r
+ FragmentCount == NULL\r
+ ) {\r
+ return EFI_INVALID_PARAMETER;\r
+ }\r
Private = IPSEC_PRIVATE_DATA_FROM_IPSEC (This);\r
IpPayload = (*FragmentTable)[0].FragmentBuffer;\r
IsOutbound = (BOOLEAN) ((TrafficDirection == EfiIPsecOutBound) ? TRUE : FALSE);\r