Coverage Report

Created: 2025-10-12 06:32

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/tpm2/Cancel.c
Line
Count
Source
1
// This file was extracted from the TCG Published
2
// Trusted Platform Module Library
3
// Part 4: Supporting Routines
4
// Family "2.0"
5
// Level 00 Revision 01.16
6
// October 30, 2014
7
8
#include "PlatformData.h"
9
//
10
//
11
//          Functions
12
//
13
//          _plat__IsCanceled()
14
//
15
//     Check if the cancel flag is set
16
//
17
//     Return Value                      Meaning
18
//
19
//     TRUE                              if cancel flag is set
20
//     FALSE                             if cancel flag is not set
21
//
22
LIB_EXPORT BOOL
23
_plat__IsCanceled(
24
     void
25
     )
26
1.19k
{
27
     // return cancel flag
28
1.19k
     return s_isCanceled;
29
1.19k
}
30
//
31
//
32
//          _plat__SetCancel()
33
//
34
//     Set cancel flag.
35
//
36
LIB_EXPORT void
37
_plat__SetCancel(
38
     void
39
     )
40
0
{
41
0
     s_isCanceled = TRUE;
42
0
     return;
43
0
}
44
//
45
//
46
//
47
//        _plat__ClearCancel()
48
//
49
//     Clear cancel flag
50
//
51
LIB_EXPORT void
52
_plat__ClearCancel(
53
   void
54
   )
55
0
{
56
0
   s_isCanceled = FALSE;
57
0
   return;
58
0
}