Hi Daniel,
I ran the configure command you suggested though it ends up with the same error as
before.
ERROR:tcti:src/util/key-value-parse.c:94:parse_key_value_string() kv_str:
""host=10.139.90.53,port=2321"", callback: 0x7fafe555a590, user_data:
0x7ffdcc9928c0
ERROR:tcti:src/util/key-value-parse.c:102:parse_key_value_string() parsing key/value:
"host=10.139.90.53
ERROR:tcti:src/util/key-value-parse.c:53:parse_key_value() key_value_str:
""host=10.139.90.53" and key_value_t: 0x7ffdcc992870
Anyway, I was able to communicate with the simulator using Tss2_Tcti_Mssim_Init. I've
included the code snippet below for posterity:
size_t size = 0;
TSS2_TCTI_CONTEXT* tcti_context = NULL;
Tss2_Tcti_Mssim_Init(NULL, &size, NULL);
tcti_context = (TSS2_TCTI_CONTEXT*) calloc(1, size);
Tss2_Tcti_Mssim_Init(tcti_context, &size, "host=localhost,port=2321");
________________________________________
From: Anderson, Daniel [daniel.anderson(a)intel.com]
Sent: Friday, May 18, 2018 3:57 PM
To: Tony Yip; tpm2(a)lists.01.org
Subject: RE: Documentation for configure
I had to wrap the tctidefaultmodule value in quotes so I did the same
for > tctidefaultconfig. However, I ran into some errors:
./configure --with-tctidefaultmodule=\"libtss2-tcti-mssim.so\" --enable-unit
--with-> tctidefaultconfig=\"host=10.139.90.53,port=2321\"
Tony,
This might work (among other possibilities):
./configure --with-tctidefaultmodule='"libtss2-tcti-mssim.so"'
--enable-unit --with-tctidefaultconfig='"host=10.139.90.53,port=2321"'
That is try enclosing the double quotes "" in single quotes ''