summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-11-26 01:31:48 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2009-11-26 01:31:48 +0000
commitcd98f3050246e64f149d9a13032bc1608421811e (patch)
tree69226aa245cbd429fd94559ce6862b0d22d38301 /MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c
parent7748df3da985214b8c6e39ea983018c212198d54 (diff)
downloadedk2-platforms-cd98f3050246e64f149d9a13032bc1608421811e.tar.xz
Add new SecurityManagementLib, and update SecurityStub driver to use this lib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9488 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c')
-rw-r--r--MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c b/MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c
index ac3ab297ab..1660828db8 100644
--- a/MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c
+++ b/MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c
@@ -1,8 +1,7 @@
/** @file
- This driver implements a sample platform security service, which does
- nothing and always return EFI_SUCCESS.
-
- Copyright (c) 2006 - 2008, Intel Corporation
+ This driver produces security architectural protocol based on SecurityManagementLib.
+
+ Copyright (c) 2006 - 2009, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -19,6 +18,7 @@
#include <Library/DebugLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiDriverEntryPoint.h>
+#include <Library/SecurityManagementLib.h>
//
// Handle for the Security Architectural Protocol instance produced by this driver
@@ -68,11 +68,7 @@ SecurityStubAuthenticateState (
IN CONST EFI_DEVICE_PATH_PROTOCOL *File
)
{
- if (File == NULL) {
- return EFI_INVALID_PARAMETER;
- }
-
- return EFI_SUCCESS;
+ return ExecuteSecurityHandlers (AuthenticationStatus, File);
}
//