Topic: Windows TBS Error
Hello,
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[1]: 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[1]: *** [Makefile:1883: examples/keygen/keygen.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1883: examples/keygen/keyimport.o] Error 1
make[1]: 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.