summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/SecurityStubDxe
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Universal/SecurityStubDxe')
-rw-r--r--MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c14
-rw-r--r--MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf7
2 files changed, 9 insertions, 12 deletions
diff --git a/MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c b/MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c
index ac3ab29..1660828 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);
}
//
diff --git a/MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf b/MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
index 2d02248..4830a82 100644
--- a/MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
+++ b/MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
@@ -1,8 +1,7 @@
#/** @file
-# Sample SecurityStub driver implements the dummy platform security service.
-# It always return success without any authentication check.
+# This driver produces security architectural protocol based on SecurityManagementLib.
#
-# Copyright (c) 2006 - 2008, Intel Corporation
+# 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
@@ -32,11 +31,13 @@
[Packages]
MdePkg/MdePkg.dec
+ MdeModulePkg/MdeModulePkg.dec
[LibraryClasses]
UefiDriverEntryPoint
UefiBootServicesTableLib
DebugLib
+ SecurityManagementLib
[Protocols]
gEfiSecurityArchProtocolGuid ## PRODUCED