summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/C/FCE/VariableCommon.h
blob: 738990207605e32759e9fc66ea6fcf3f3a35ac85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/** @file

 The header of common Variable.c TimeBasedVariable.c and MonotonicBasedVariable.c.

 Copyright (c) 2011-2019, Intel Corporation. All rights reserved.<BR>
 SPDX-License-Identifier: BSD-2-Clause-Patent

**/

#ifndef __VARIABLE_COMMON_H__
#define __VARIABLE_COMMON_H__

/**
  Check the store variable is no-authenticated or not

  @param VarToList     The pointer to the header of Variable Store.

  @retval TRUE         If no-authenticated, return TRUE.
  @retval FALSE        Otherwise, return FALSE.
**/

BOOLEAN
CheckNormalVarStoreOrNot (
  IN VOID  *VariableStoreHeader
  );
/**
  Check the store variable is Monotonic based authenticated or not

  @param VarToList     The pointer to the header of Variable Store.

  @retval TRUE         If authenticated, return TRUE.
  @retval FALSE        Otherwise, return FALSE.
**/

BOOLEAN
CheckMonotonicBasedVarStore (
  IN VOID  *VariableStoreHeader
  );

/**
  Check the store variable is Time stamp authenticated or not

  @param VarToList     The pointer to the header of Variable Store.

  @retval TRUE         If authenticated, return TRUE.
  @retval FALSE        Otherwise, return FALSE.
**/
BOOLEAN
CheckTimeBasedVarStoreOrNot (
  IN VOID  *VariableStoreHeader
  );



#endif // _EFI_VARIABLE_COMMON_H_