X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=tid%2Fexample%2Ftidc_main.c;fp=tid%2Fexample%2Ftidc_main.c;h=02cd1db58faf5fbb08c2fbbbd3834b785cbb702e;hb=3c5fb17459ff56d5e23cea059503f46a42150a1e;hp=26fb994e3736b7d133a7e7db13077e5678b4ede0;hpb=6e1647f2f4714d8c0c4c27ef376302bab1ae4bb3;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; }