diff options
author | Simo Sorce <ssorce@redhat.com> | 2011-12-16 16:08:16 -0500 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2012-01-04 19:19:54 -0500 |
commit | 97dae9852f4483156175425155abb051b0682283 (patch) | |
tree | 839d4bf9ecb44769210b0cb7762ec93ea8bb2d94 /proxy/src/gssproxy.c | |
parent | 0d39e7a43a585a46e9cb6c755d97003470c5bd54 (diff) | |
download | gss-proxy-97dae9852f4483156175425155abb051b0682283.tar.gz gss-proxy-97dae9852f4483156175425155abb051b0682283.tar.xz gss-proxy-97dae9852f4483156175425155abb051b0682283.zip |
Server initialization helpers
Diffstat (limited to 'proxy/src/gssproxy.c')
-rw-r--r-- | proxy/src/gssproxy.c | 24 |
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; } |