X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=mon%2Fmons.c;h=31ecb15ed1be270b9789922600e3d87c60b7a90f;hp=29f405b5ba4c9a50be85a5b117dc86ac829da96d;hb=605ee6f071ad51755ba07b4e1a712814bbf4f780;hpb=d253bd9f9c36c1555d02bbfe25eefe6b25ef957e diff --git a/mon/mons.c b/mon/mons.c index 29f405b..31ecb15 100644 --- a/mon/mons.c +++ b/mon/mons.c @@ -42,6 +42,7 @@ #include #include #include +#include /** * Allocate a new MONS_INSTANCE @@ -149,7 +150,11 @@ int mons_accept(MONS_INSTANCE *mons, int listen) if (pid == 0) { close(listen); - mons_handle_connection(mons, conn); + tr_gss_handle_connection(conn, + "trustmonitor", mons->hostname, /* acceptor name */ + mons->auth_handler, mons->cookie, /* auth callback and cookie */ + mons_req_cb, mons /* req callback and cookie */ + ); close(conn); exit(0); /* exit to kill forked child process */ } else {