64 |
|
|
65 |
extern SQL_cfg sql_cfg; |
extern SQL_cfg sql_cfg; |
66 |
|
|
67 |
|
void radiusd_sql_shutdown(); |
68 |
|
|
69 |
int rad_sql_init(); |
int rad_sql_init(); |
70 |
void rad_sql_acct(RADIUS_REQ *req); |
void rad_sql_acct(RADIUS_REQ *req); |
71 |
char *rad_sql_pass(RADIUS_REQ *req, char *data); |
char *rad_sql_pass(RADIUS_REQ *req, char *data); |
|
void rad_sql_check_connect(int type); |
|
72 |
void rad_sql_cleanup(int type, void *req); |
void rad_sql_cleanup(int type, void *req); |
73 |
int rad_sql_checkgroup(RADIUS_REQ *req, char *groupname); |
int rad_sql_checkgroup(RADIUS_REQ *req, char *groupname); |
74 |
int rad_sql_check_attr_query(RADIUS_REQ *req, VALUE_PAIR **check_pairs); |
int rad_sql_check_attr_query(RADIUS_REQ *req, VALUE_PAIR **check_pairs); |
75 |
int rad_sql_reply_attr_query(RADIUS_REQ *req, VALUE_PAIR **reply_pairs); |
int rad_sql_reply_attr_query(RADIUS_REQ *req, VALUE_PAIR **reply_pairs); |
|
void rad_sql_shutdown(); |
|
|
int disp_sql_interface_index(char *name); |
|
76 |
|
|
77 |
#ifdef RADIUS_SERVER_GUILE |
#ifdef RADIUS_SERVER_GUILE |
78 |
SCM sql_exec_query(int type, char *query); |
SCM sql_exec_query(int type, char *query); |
79 |
#endif |
#endif |
80 |
|
|
81 |
/* Dispatcher routines */ |
/* Dispatcher routines */ |
82 |
|
int disp_sql_interface_index(char *name); |
83 |
int disp_sql_reconnect(int interface, int conn_type, struct sql_connection *conn); |
int disp_sql_reconnect(int interface, int conn_type, struct sql_connection *conn); |
84 |
void disp_sql_disconnect(struct sql_connection *conn); |
void disp_sql_disconnect(struct sql_connection *conn); |
85 |
int disp_sql_query(struct sql_connection *conn, char *query, int *report_cnt); |
int disp_sql_query(struct sql_connection *conn, char *query, int *report_cnt); |