• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stefanberger / libtpms / #2048

02 Jan 2026 05:06PM UTC coverage: 76.781% (-0.4%) from 77.211%
#2048

push

travis-ci

web-flow
Merge 4e0af8f40 into d76fbbdbd

1 of 1 new or added line in 1 file covered. (100.0%)

2484 existing lines in 73 files now uncovered.

33894 of 44144 relevant lines covered (76.78%)

93715.02 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/disabled_interface.c
1
#include <stddef.h>
2
#include "tpm_error.h"
3
#include "tpm_library_intern.h"
4

5
static TPM_RESULT Disabled_MainInit(void)
6
{
7
    return TPM_FAIL;
×
8
}
9

10
static void Disabled_Terminate(void)
11
{
12
}
13

14
static TPM_RESULT Disabled_Process(unsigned char **respbuffer, uint32_t *resp_size,
15
                               uint32_t *respbufsize,
16
                               unsigned char *command, uint32_t command_size)
17
{
UNCOV
18
    return TPM_FAIL;
×
19
}
20

21
static TPM_RESULT Disabled_VolatileAllStore(unsigned char **buffer,
22
                                        uint32_t *buflen)
23
{
UNCOV
24
    return TPM_FAIL;
×
25
}
26

27
static TPM_RESULT Disabled_CancelCommand(void)
28
{
UNCOV
29
    return TPM_FAIL;
×
30
}
31

32
static TPM_RESULT Disabled_GetTPMProperty(enum TPMLIB_TPMProperty prop,
33
                                      int *result)
34
{
UNCOV
35
    return TPM_FAIL;
×
36
}
37

38
static char *Disabled_GetInfo(enum TPMLIB_InfoFlags flags)
39
{
40
    return NULL;
×
41
}
42

43
static uint32_t Disabled_SetBufferSize(uint32_t wanted_size,
44
                                   uint32_t *min_size,
45
                                   uint32_t *max_size)
46
{
UNCOV
47
    return 0;
×
48
}
49

50
static TPM_RESULT Disabled_ValidateState(enum TPMLIB_StateType st,
51
                                     unsigned int flags)
52
{
UNCOV
53
    return TPM_FAIL;
×
54
}
55

56
static TPM_RESULT Disabled_GetState(enum TPMLIB_StateType st,
57
                                unsigned char **buffer, uint32_t *buflen)
58
{
UNCOV
59
    return TPM_FAIL;
×
60
}
61

62
static TPM_RESULT Disabled_SetState(enum TPMLIB_StateType st,
63
                                const unsigned char *buffer, uint32_t buflen)
64
{
65
    return TPM_FAIL;
×
66
}
67

68
static TPM_RESULT Disabled_IO_Hash_Start(void)
69
{
UNCOV
70
    return TPM_FAIL;
×
71
}
72

73
static TPM_RESULT Disabled_IO_Hash_Data(const unsigned char *data,
74
                                        uint32_t data_length)
75
{
UNCOV
76
    return TPM_FAIL;
×
77
}
78

79
static TPM_RESULT Disabled_IO_Hash_End(void)
80
{
UNCOV
81
    return TPM_FAIL;
×
82
}
83

84
static TPM_RESULT Disabled_IO_TpmEstablished_Get(TPM_BOOL *tpmEstablished)
85
{
86
    return TPM_FAIL;
×
87
}
88

89
static TPM_RESULT Disabled_IO_TpmEstablished_Reset(void)
90
{
UNCOV
91
    return TPM_FAIL;
×
92
}
93

94
const struct tpm_interface DisabledInterface = {
95
    .MainInit = Disabled_MainInit,
96
    .Terminate = Disabled_Terminate,
97
    .Process = Disabled_Process,
98
    .VolatileAllStore = Disabled_VolatileAllStore,
99
    .CancelCommand = Disabled_CancelCommand,
100
    .GetTPMProperty = Disabled_GetTPMProperty,
101
    .GetInfo = Disabled_GetInfo,
102
    .TpmEstablishedGet = Disabled_IO_TpmEstablished_Get,
103
    .TpmEstablishedReset = Disabled_IO_TpmEstablished_Reset,
104
    .HashStart = Disabled_IO_Hash_Start,
105
    .HashData = Disabled_IO_Hash_Data,
106
    .HashEnd = Disabled_IO_Hash_End,
107
    .SetBufferSize = Disabled_SetBufferSize,
108
    .ValidateState = Disabled_ValidateState,
109
    .SetState = Disabled_SetState,
110
    .GetState = Disabled_GetState,
111
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc