Skip to content

Commit b33e6b3

Browse files
committed
Fix issue with Doxygen generation of wolfTPM due to doxybook2 crashing on unnamed enum.
1 parent d01a46f commit b33e6b3

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/tpm2_wrap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2976,6 +2976,7 @@ int wolfTPM2_ExportPublicKeyBuffer(WOLFTPM2_DEV* dev, WOLFTPM2_KEY* tpmKey,
29762976
}
29772977
}
29782978
#else
2979+
(void)out;
29792980
rc = NOT_COMPILED_IN;
29802981
#endif
29812982
}
@@ -3008,6 +3009,7 @@ int wolfTPM2_ExportPublicKeyBuffer(WOLFTPM2_DEV* dev, WOLFTPM2_KEY* tpmKey,
30083009
}
30093010
}
30103011
#else
3012+
(void)out;
30113013
rc = NOT_COMPILED_IN;
30123014
#endif
30133015
}

wolftpm/tpm2.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2802,7 +2802,8 @@ WOLFTPM_API TPM_RC TPM2_NV_Certify(NV_Certify_In* in, NV_Certify_Out* out);
28022802
} SetCommandSet_In;
28032803
WOLFTPM_API int TPM2_SetCommandSet(SetCommandSet_In* in);
28042804

2805-
enum {
2805+
/* Mode bit-masks for STMicro ST33 */
2806+
enum TPM_MODE_Vendor_Mask{
28062807
TPMLib_2 = 0x01,
28072808
TPMFips = 0x02,
28082809
TPMLowPowerOff = 0x00,

0 commit comments

Comments
 (0)