Topic: Windows TBS Error
I am running wolfTPM along with IBM Simulator through "--enable-swtpm" flag. But, after some tests and advancing, I decided to run wolfTPM along with Windows TBS, enabling the "--enable-winapi" flag. I followd the "WindowTBS.md" instructions on wolfTPM GitHub Repository, but I'm having troubles with this.
I am running the commands in MSYS2 on Windows 10, and everything appears fine, until the "make" command be executed. Here is the output.
$ make make -j5 all-am make: Entering directory '/home/Messias/wolfssl/wolftpm' CC examples/keygen/keygen.o CC examples/keygen/keyimport.o In file included from ./wolftpm/tpm2_wrap.h:25, from examples/keygen/keygen.c:24: ./wolftpm/tpm2.h:1661:3: error: unknown type name ‘TBS_HCONTEXT’ 1661 | TBS_HCONTEXT tbs_context; | ^~~~~~~~~~~~ In file included from ./wolftpm/tpm2_wrap.h:25, from examples/keygen/keyimport.c:24: ./wolftpm/tpm2.h:1661:3: error: unknown type name ‘TBS_HCONTEXT’ 1661 | TBS_HCONTEXT tbs_context; | ^~~~~~~~~~~~ make: *** [Makefile:1883: examples/keygen/keygen.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Makefile:1883: examples/keygen/keyimport.o] Error 1 make: Leaving directory '/home/Messias/wolfssl/wolftpm' make: *** [Makefile:1340: all] Error 2
Apparently some recognition issue with the TBS header. Does anyone know why this problem is happening and how to solve it? Thanks in advance.