0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-30 17:34:04 +01:00

Import this from authd-framework branch

This commit is contained in:
Elizabeth Myers 2016-03-17 16:25:58 -05:00
parent 2b0cc3d36a
commit a16b484f27

View file

@ -20,6 +20,7 @@
#include "authd.h"
#include "dns.h"
#include "provider.h"
#define MAXPARA 10
@ -28,8 +29,9 @@ static void handle_stat(int parc, char *parv[]);
rb_helper *authd_helper = NULL;
authd_cmd_handler authd_cmd_handlers[256] = {
['H'] = handle_reload,
['C'] = handle_new_connection,
['D'] = resolve_dns,
['H'] = handle_reload,
['S'] = handle_stat,
};
@ -151,6 +153,7 @@ main(int argc, char *argv[])
rb_set_time();
setup_signals();
init_resolver();
init_providers();
rb_init_prng(NULL, RB_PRNG_DEFAULT);
rb_helper_loop(authd_helper, 0);