]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.c
SecurityPkg: Fix spelling errors
[mirror_edk2.git] / SecurityPkg / Library / DxeImageAuthenticationStatusLib / DxeImageAuthenticationStatusLib.c
index 9d3103639ca9bb1e50f4891298555fdf46472fd1..e4ddff21b54fb8deed0884d992b83c30d6047ead 100644 (file)
@@ -1,14 +1,8 @@
 /** @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
@@ -18,8 +12,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \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
@@ -44,8 +38,8 @@ DxeImageAuthenticationStatusHandler (
   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
@@ -55,7 +49,7 @@ DxeImageAuthenticationStatusHandler (
 \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