132 |
#define PORT_ACCT 1 |
#define PORT_ACCT 1 |
133 |
#define PORT_MAX 2 |
#define PORT_MAX 2 |
134 |
|
|
135 |
|
typedef struct { |
136 |
|
char *file; /* File name */ |
137 |
|
size_t line; /* Line number */ |
138 |
|
} LOCUS; |
139 |
|
|
140 |
typedef struct { |
typedef struct { |
141 |
UINT4 addr; /* Server IP address */ |
UINT4 addr; /* Server IP address */ |
142 |
u_char id; /* Current id */ |
u_char id; /* Current id */ |
369 |
RADIUS_REQ *radreq_alloc(); |
RADIUS_REQ *radreq_alloc(); |
370 |
|
|
371 |
/* raddb.c */ |
/* raddb.c */ |
372 |
int read_raddb_file(char *name, int vital, int (*fun)(), void *closure); |
int read_raddb_file(char *name, int vital, int (*fun)(void*,int,char**,LOCUS*), void *closure); |
373 |
|
|
374 |
/* mem.c */ |
/* mem.c */ |
375 |
void *emalloc(size_t); |
void *emalloc(size_t); |
380 |
void radpath_init(); |
void radpath_init(); |
381 |
|
|
382 |
/* users.y */ |
/* users.y */ |
383 |
int parse_file(char *file, void *c, int (*f)()); |
typedef int (*register_rule_fp) (void *, LOCUS *, char *, |
384 |
|
VALUE_PAIR *, VALUE_PAIR *); |
385 |
|
int parse_file(char *file, void *c, register_rule_fp f); |
386 |
int user_gettime(char *valstr, struct tm *tm); |
int user_gettime(char *valstr, struct tm *tm); |
387 |
VALUE_PAIR *install_pair(char *file, int line, |
VALUE_PAIR *install_pair(LOCUS *loc, char *name, int op, char *valstr); |
|
char *name, int op, char *valstr); |
|
388 |
|
|
389 |
|
|
390 |
/* util.c */ |
/* util.c */ |
531 |
void initlog(char*); |
void initlog(char*); |
532 |
void radlog_open(int category); |
void radlog_open(int category); |
533 |
void radlog_close(); |
void radlog_close(); |
534 |
void vlog(int lvl, const char *file, int line, const char *func_name, int en, |
void vlog(int lvl, const char *file, size_t line, const char *func_name, |
535 |
const char *fmt, va_list ap); |
int en, const char *fmt, va_list ap); |
536 |
void radlog __PVAR((int level, const char *fmt, ...)); |
void radlog __PVAR((int level, const char *fmt, ...)); |
537 |
int __insist_failure(const char *, const char *, int); |
int __insist_failure(const char *, const char *, int); |
538 |
void radlog_req __PVAR((int level, RADIUS_REQ *req, const char *fmt, ...)); |
void radlog_req __PVAR((int level, RADIUS_REQ *req, const char *fmt, ...)); |
539 |
|
void radlog_loc __PVAR((int lvl, LOCUS *loc, const char *msg, ...)); |
540 |
|
|
541 |
#define MAXIDBUFSIZE \ |
#define MAXIDBUFSIZE \ |
542 |
4+1+MAX_LONGNAME+1+4+2*AUTH_STRING_LEN+3+1+AUTH_STRING_LEN+1+1 |
4+1+MAX_LONGNAME+1+4+2*AUTH_STRING_LEN+3+1+AUTH_STRING_LEN+1+1 |
563 |
# define debug(mode,vlist) |
# define debug(mode,vlist) |
564 |
#endif |
#endif |
565 |
|
|
566 |
void _debug_print(char *file, int line, char *func_name, char *str); |
void _debug_print(char *file, size_t line, char *func_name, char *str); |
567 |
char *_debug_format_string __PVAR((char *fmt, ...)); |
char *_debug_format_string __PVAR((char *fmt, ...)); |
568 |
const char *auth_code_str(int code); |
const char *auth_code_str(int code); |
569 |
const char *auth_code_abbr(int code); |
const char *auth_code_abbr(int code); |