/** @file\r
Implement image authentication status check in UEFI2.3.1.\r
\r
-Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution. The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
\r
/**\r
Check image authentication status returned from Section Extraction Protocol\r
- \r
- @param[in] AuthenticationStatus This is the authentication status returned from \r
+\r
+ @param[in] AuthenticationStatus This is the authentication status returned from\r
the Section Extraction Protocol when reading the input file.\r
@param[in] File This is a pointer to the device path of the file that is\r
being dispatched. This will optionally be used for logging.\r
IN BOOLEAN BootPolicy\r
)\r
{\r
- if (AuthenticationStatus & EFI_AUTH_STATUS_IMAGE_SIGNED) {\r
- if (AuthenticationStatus & (EFI_AUTH_STATUS_TEST_FAILED | EFI_AUTH_STATUS_NOT_TESTED)) {\r
+ if ((AuthenticationStatus & EFI_AUTH_STATUS_IMAGE_SIGNED) != 0) {\r
+ if ((AuthenticationStatus & (EFI_AUTH_STATUS_TEST_FAILED | EFI_AUTH_STATUS_NOT_TESTED)) != 0) {\r
return EFI_ACCESS_DENIED;\r
}\r
}\r
\r
\r
/**\r
- Register image authenticaion status check handler.\r
+ Register image authentication status check handler.\r
\r
@param ImageHandle ImageHandle of the loaded driver.\r
@param SystemTable Pointer to the EFI System Table.\r