X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=tpq%2Fexample%2Ftpqc_main.c;h=773214482fc239370a0214ff4335ec8555309299;hb=71ac3a5746d84701888a7ea4226f9b99e924668b;hp=55fdc641acd41f2c4192ffa945bf244799eb667a;hpb=2e2868a7e2c2643844526fa43a375d6220cb42df;p=trust_router.git diff --git a/tpq/example/tpqc_main.c b/tpq/example/tpqc_main.c index 55fdc64..7732144 100644 --- a/tpq/example/tpqc_main.c +++ b/tpq/example/tpqc_main.c @@ -35,6 +35,7 @@ #include #include +#include #include static int tpqc_response_received = 0; @@ -64,6 +65,7 @@ int main (int argc, void *cookie = NULL; int conn = 0; int rc; + gss_ctx_id_t gssctx; /* Parse command-line arguments */ if (argc != 4) { @@ -80,14 +82,15 @@ int main (int argc, tpqc = tpqc_create(); /* Set-up TPQ connection */ - if (-1 == (conn = tpqc_open_connection(tpqc, server))) { + if (-1 == (conn = tpqc_open_connection(tpqc, server, &gssctx))) { /* Handle error */ printf("Error in tpqc_open_connection.\n"); return 1; }; /* Send a TPQ request */ - if (rc = tpqc_send_request(tpqc, conn, realm, coi, &tpqc_resp_handler, NULL)) { + if (rc = tpqc_send_request(tpqc, conn, gssctx, realm, coi, + &tpqc_resp_handler, NULL)) { /* Handle error */ printf("Error in tpqc_send_request, rc = %d.\n", rc); return 1;