2015-08-13 10:24:17 +02:00
|
|
|
/** @file
|
|
|
|
Handle TPM 2.0 physical presence requests from OS.
|
2018-06-27 15:13:09 +02:00
|
|
|
|
2015-08-13 10:24:17 +02:00
|
|
|
This library will handle TPM 2.0 physical presence request from OS.
|
|
|
|
|
|
|
|
Caution: This module requires additional review when modified.
|
|
|
|
This driver will have external input - variable.
|
|
|
|
This external input must be validated carefully to avoid security issue.
|
|
|
|
|
|
|
|
Tcg2PhysicalPresenceLibSubmitRequestToPreOSFunction() and Tcg2PhysicalPresenceLibGetUserConfirmationStatusFunction()
|
|
|
|
will receive untrusted input and do validation.
|
|
|
|
|
2020-05-18 13:41:50 +02:00
|
|
|
Copyright (c) 2015 - 2020, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:06:56 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2015-08-13 10:24:17 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#include <PiSmm.h>
|
|
|
|
|
2020-12-18 00:24:08 +01:00
|
|
|
#include "MmTcg2PhysicalPresenceLibCommon.h"
|
2015-08-13 10:24:17 +02:00
|
|
|
|
|
|
|
/**
|
2016-11-23 09:38:33 +01:00
|
|
|
The constructor function locates SmmVariable protocol.
|
2018-06-27 15:13:09 +02:00
|
|
|
|
|
|
|
It will ASSERT() if that operation fails and it will always return EFI_SUCCESS.
|
2015-08-13 10:24:17 +02:00
|
|
|
|
|
|
|
@param ImageHandle The firmware allocated handle for the EFI image.
|
|
|
|
@param SystemTable A pointer to the EFI System Table.
|
2018-06-27 15:13:09 +02:00
|
|
|
|
2015-08-13 10:24:17 +02:00
|
|
|
@retval EFI_SUCCESS The constructor successfully added string package.
|
|
|
|
@retval Other value The constructor can't add string package.
|
|
|
|
**/
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
2020-12-18 00:24:08 +01:00
|
|
|
Tcg2PhysicalPresenceLibTraditionalConstructor (
|
2015-08-13 10:24:17 +02:00
|
|
|
IN EFI_HANDLE ImageHandle,
|
|
|
|
IN EFI_SYSTEM_TABLE *SystemTable
|
|
|
|
)
|
|
|
|
{
|
2020-12-18 00:24:08 +01:00
|
|
|
return Tcg2PhysicalPresenceLibCommonConstructor ();
|
2015-08-13 10:24:17 +02:00
|
|
|
}
|