]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c
Code scrub for the following drivers and librarys.
[mirror_edk2.git] / MdeModulePkg / Universal / SecurityStubDxe / SecurityStub.c
index aa86fdf3010d88d824a87e7e1aa3df778379a8ab..ac3ab297abd44879212b9eb8f0bcd6ce1c8e3c73 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-  This driver implements one sample platform security service, which does \r
+  This driver implements a sample platform security service, which does \r
   nothing and always return EFI_SUCCESS.\r
   \r
   Copyright (c) 2006 - 2008, Intel Corporation                                              \r
 **/\r
 \r
 \r
-#include "SecurityStub.h"\r
+#include <Uefi.h>\r
+#include <Protocol/Security.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/UefiBootServicesTableLib.h>\r
+#include <Library/UefiDriverEntryPoint.h>\r
 \r
 //\r
 // Handle for the Security Architectural Protocol instance produced by this driver\r
 //\r
 EFI_HANDLE                  mSecurityArchProtocolHandle = NULL;\r
 \r
-//\r
-// Security Architectural Protocol instance produced by this driver\r
-//\r
-EFI_SECURITY_ARCH_PROTOCOL  mSecurityStub = { \r
-  SecurityStubAuthenticateState \r
-};\r
-\r
-\r
 /**\r
   The EFI_SECURITY_ARCH_PROTOCOL (SAP) is used to abstract platform-specific \r
   policy from the DXE core response to an attempt to use a file that returns a \r
@@ -61,7 +57,7 @@ EFI_SECURITY_ARCH_PROTOCOL  mSecurityStub = {
   @param  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
 \r
-  @retval EFI_SUCCESS            Do nothing and return.\r
+  @retval EFI_SUCCESS            Do nothing and return success.\r
   @retval EFI_INVALID_PARAMETER  File is NULL.\r
 **/\r
 EFI_STATUS\r
@@ -79,14 +75,18 @@ SecurityStubAuthenticateState (
   return EFI_SUCCESS;\r
 }\r
 \r
+//\r
+// Security Architectural Protocol instance produced by this driver\r
+//\r
+EFI_SECURITY_ARCH_PROTOCOL  mSecurityStub = { \r
+  SecurityStubAuthenticateState \r
+};\r
 \r
 /**\r
-  The user Entry Point installs SAP. The user code starts with this function\r
-  as the real entry point for the image goes into a library that calls this \r
-  function.\r
+  Installs Security Architectural Protocol.\r
 \r
-  @param ImageHandle    The firmware allocated handle for the EFI image.  \r
-  @param SystemTable    A pointer to the EFI System Table.\r
+  @param  ImageHandle  The image handle of this driver.\r
+  @param  SystemTable  A pointer to the EFI System Table.\r
   \r
   @retval EFI_SUCCESS   Install the sample Security Architectural Protocol successfully.\r
 \r