Lines Matching defs:module_file
50 struct module_file {
79 static void auth_pap(struct module_file *, u_int, RADIUS_PACKET *, char *,
81 static void auth_md5chap(struct module_file *, u_int, RADIUS_PACKET *,
83 static void auth_mschapv2(struct module_file *, u_int, RADIUS_PACKET *,
85 static void auth_reject(struct module_file *, u_int, RADIUS_PACKET *,
236 struct module_file module_file;
240 memset(&module_file, 0, sizeof(module_file));
241 if ((module_file.base = module_create(STDIN_FILENO, &module_file,
245 module_drop_privilege(module_file.base, 0);
247 module_load(module_file.base);
248 if (imsgbuf_init(&module_file.ibuf, 3) == -1)
253 while (module_run(module_file.base) == 0)
256 module_destroy(module_file.base);
295 struct module_file *module = ctx;
326 struct module_file *module = ctx;
346 struct module_file *self = ctx;
402 auth_pap(struct module_file *self, u_int q_id, RADIUS_PACKET *radpkt,
430 auth_md5chap(struct module_file *self, u_int q_id, RADIUS_PACKET *radpkt,
472 auth_mschapv2(struct module_file *self, u_int q_id, RADIUS_PACKET *radpkt,
597 auth_reject(struct module_file *self, u_int q_id, RADIUS_PACKET *radpkt,