projects
/
trust_router.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Further cleanup of tr_gss and usage for tids handling
[trust_router.git]
/
mon
/
mons.c
diff --git
a/mon/mons.c
b/mon/mons.c
index
29f405b
..
31ecb15
100644
(file)
--- a/
mon/mons.c
+++ b/
mon/mons.c
@@
-42,6
+42,7
@@
#include <mon_internal.h>
#include <tr_socket.h>
#include <sys/wait.h>
#include <mon_internal.h>
#include <tr_socket.h>
#include <sys/wait.h>
+#include <tr_gss.h>
/**
* Allocate a new MONS_INSTANCE
/**
* Allocate a new MONS_INSTANCE
@@
-149,7
+150,11
@@
int mons_accept(MONS_INSTANCE *mons, int listen)
if (pid == 0) {
close(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 {
close(conn);
exit(0); /* exit to kill forked child process */
} else {