#include <mon_internal.h>
#include <tr_socket.h>
#include <sys/wait.h>
+#include <tr_gss.h>
/**
* Allocate a new MONS_INSTANCE
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 {