]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.c
When transfer from Unicode to hex number, current code only consider the 0-9 case...
[mirror_edk2.git] / OvmfPkg / Library / PlatformSecureLib / PlatformSecureLib.c
CommitLineData
6a52c7a1 1/** @file\r
2 Provides a platform-specific method to enable Secure Boot Custom Mode setup.\r
3\r
4 Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14#include <Library/PcdLib.h>\r
15\r
16/**\r
17\r
18 This function detects whether a secure platform-specific method to clear PK(Platform Key)\r
19 is configured by platform owner. This method is provided for users force to clear PK\r
20 in case incorrect enrollment mis-haps.\r
21\r
22 UEFI231 spec chapter 27.5.2 stipulates: The platform key may also be cleared using\r
23 a secure platform-specific method. In this case, the global variable SetupMode\r
24 must also be updated to 1.\r
25\r
26 NOTE THAT: This function cannot depend on any EFI Variable Service since they are\r
27 not available when this function is called in AuthenticateVariable driver.\r
28\r
29 @retval TRUE The Platform owner wants to force clear PK.\r
30 @retval FALSE The Platform owner doesn't want to force clear PK.\r
31\r
32**/\r
33BOOLEAN\r
34EFIAPI\r
35ForceClearPK (\r
36 VOID\r
37 )\r
38{\r
39 return TRUE;\r
40}\r
41\r
42/**\r
43\r
44 This function detects whether current platform is operated by a physical present user.\r
45\r
46 @retval TRUE The Platform is operated by a physical present user.\r
47 @retval FALSE The Platform is NOT operated by a physical persent user.\r
48\r
49**/\r
50BOOLEAN\r
51EFIAPI\r
52UserPhysicalPresent (\r
53 VOID\r
54 )\r
55{\r
56 return TRUE;\r
57}\r