X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=tid%2Fexample%2Ftidc_main.c;h=02cd1db58faf5fbb08c2fbbbd3834b785cbb702e;hb=6491f2a660c3183b210b968a939eaa18f1b44a09;hp=26fb994e3736b7d133a7e7db13077e5678b4ede0;hpb=addf9ce1e66625015db09de61c39061c4ac9b8e0;p=trust_router.git diff --git a/tid/example/tidc_main.c b/tid/example/tidc_main.c index 26fb994..02cd1db 100644 --- a/tid/example/tidc_main.c +++ b/tid/example/tidc_main.c @@ -210,7 +210,8 @@ int main (int argc, /* Create a TID client instance & the client DH */ tidc = tidc_create(); - if (NULL == (tidc->client_dh = tr_create_dh_params(NULL, 0))) { + tidc_set_dh(tidc, tr_create_dh_params(NULL, 0)); + if (tidc_get_dh(tidc) == NULL) { printf("Error creating client DH params.\n"); return 1; }