summaryrefslogtreecommitdiffstats
path: root/proxy/src/gssproxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'proxy/src/gssproxy.c')
-rw-r--r--proxy/src/gssproxy.c24
1 files changed, 21 insertions, 3 deletions
diff --git a/proxy/src/gssproxy.c b/proxy/src/gssproxy.c
index ca9d533..d128d2b 100644
--- a/proxy/src/gssproxy.c
+++ b/proxy/src/gssproxy.c
@@ -24,10 +24,8 @@
*/
#include "config.h"
-#include <libintl.h>
#include "popt.h"
-
-#define _(STRING) gettext(STRING)
+#include "gp_utils.h"
int main(int argc, const char *argv[])
{
@@ -38,6 +36,10 @@ int main(int argc, const char *argv[])
int opt_version = 0;
char *opt_config_file = NULL;
char *config_file = NULL;
+ verto_ctx *vctx;
+ verto_ev *ev;
+ int vflags;
+ int fd;
struct poptOption long_options[] = {
POPT_AUTOHELP
@@ -87,5 +89,21 @@ int main(int argc, const char *argv[])
* 5. Profit
*/
+ init_server();
+
+ fd = init_unix_socket(GSS_PROXY_SOCKET_NAME);
+ if (fd == -1) {
+ return 1;
+ }
+
+ vctx = init_event_loop();
+ if (!vctx) {
+ return 1;
+ }
+
+ verto_run(vctx);
+
+ fini_server();
+
return 0;
}