Skip to content

Commit

Permalink
fix the TPM_E_COMMAND_BLOCKED macro to have the correct value accordi…
Browse files Browse the repository at this point in the history
…ng to the microsoft documentation
  • Loading branch information
jpbland1 committed Feb 10, 2023
1 parent 8181987 commit 48ba4b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wolftpm/tpm2.h
Original file line number Diff line number Diff line change
Expand Up @@ -1667,7 +1667,7 @@ struct wolfTPM_winContext {
};
/* may be needed with msys */
#ifndef TPM_E_COMMAND_BLOCKED
#define TPM_E_COMMAND_BLOCKED (0x80284000)
#define TPM_E_COMMAND_BLOCKED (0x80280400)
#endif

#define WOLFTPM_IS_COMMAND_UNAVAILABLE(code) ((code) == (int)TPM_RC_COMMAND_CODE || (code) == (int)TPM_E_COMMAND_BLOCKED)
Expand Down

0 comments on commit 48ba4b6

Please sign in to comment.