Skip to content

Commit 0bbf59f

Browse files
committed
F-9211 - Report v1.85 revision and errata semantics in GetCapability
1 parent b454e26 commit 0bbf59f

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/fwtpm/fwtpm_command.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,8 +1349,15 @@ static TPM_RC FwCmd_GetCapability(FWTPM_CTX* ctx, TPM2_Packet* cmd,
13491349
{ TPM_PT_FAMILY_INDICATOR, 0x322E3000 },
13501350
{ TPM_PT_LEVEL, 0 },
13511351
{ TPM_PT_REVISION, FWTPM_REVISION },
1352+
#ifdef WOLFTPM_V185
1353+
/* v1.85 Part 2 renames PT_FIXED+3 to TPM_PT_ERRATA (base value
1354+
* 0) and no longer reports a build date at PT_FIXED+3/+4. */
1355+
{ TPM_PT_DAY_OF_YEAR, 0 },
1356+
{ TPM_PT_YEAR, 0 },
1357+
#else
13521358
{ TPM_PT_DAY_OF_YEAR, FWTPM_BUILD_DAY_OF_YEAR },
13531359
{ TPM_PT_YEAR, FWTPM_BUILD_YEAR },
1360+
#endif
13541361
{ TPM_PT_MANUFACTURER,
13551362
((UINT32)'W' << 24) | ((UINT32)'O' << 16) |
13561363
((UINT32)'L' << 8) | (UINT32)'F' },

wolftpm/fwtpm/fwtpm.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,12 @@
295295

296296
/* fwTPM firmware revision (TPM_PT_REVISION hundredths) */
297297
#ifndef FWTPM_REVISION
298+
#ifdef WOLFTPM_V185
299+
#define FWTPM_REVISION 185
300+
#else
298301
#define FWTPM_REVISION 159
299302
#endif
303+
#endif
300304

301305
/* Compile-time build date parsed from __DATE__ ("Mmm DD YYYY") */
302306
#define FWTPM_BUILD_YEAR \

0 commit comments

Comments
 (0)