]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c
Add new SecurityManagementLib, and update SecurityStub driver to use this lib.
[mirror_edk2.git] / MdeModulePkg / Universal / SecurityStubDxe / SecurityStub.c
index ac3ab297abd44879212b9eb8f0bcd6ce1c8e3c73..1660828db83362eae4d51accb9a4d05f53c0e838 100644 (file)
@@ -1,8 +1,7 @@
 /** @file\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
+  This driver produces security architectural protocol based on SecurityManagementLib.\r
\r
+  Copyright (c) 2006 - 2009, Intel Corporation                                              \r
   All rights reserved. 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
@@ -19,6 +18,7 @@
 #include <Library/DebugLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/UefiDriverEntryPoint.h>\r
+#include <Library/SecurityManagementLib.h>\r
 \r
 //\r
 // Handle for the Security Architectural Protocol instance produced by this driver\r
@@ -68,11 +68,7 @@ SecurityStubAuthenticateState (
   IN CONST EFI_DEVICE_PATH_PROTOCOL    *File\r
   )\r
 {\r
-  if (File == NULL) {\r
-    return EFI_INVALID_PARAMETER;\r
-  }\r
-\r
-  return EFI_SUCCESS;\r
+  return ExecuteSecurityHandlers (AuthenticationStatus, File);\r
 }\r
 \r
 //\r