From cd98f3050246e64f149d9a13032bc1608421811e Mon Sep 17 00:00:00 2001 From: lgao4 Date: Thu, 26 Nov 2009 01:31:48 +0000 Subject: 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 --- MdeModulePkg/Universal/SecurityStubDxe/SecurityStub.c | 14 +++++--------- MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf | 7 ++++--- 2 files changed, 9 insertions(+), 12 deletions(-) (limited to 'MdeModulePkg/Universal/SecurityStubDxe') 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 #include #include +#include // // 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 -- cgit v1.1