10 int __plugin_api_version
= 1;
13 int plugin_radius_response(struct param_radius_response
*data
)
15 if (strcmp(data
->key
, "intercept") == 0)
17 if (strcmp(data
->value
, "yes") == 0)
19 p
.log(3, 0, 0, 0, " Intercepting user\n");
22 else if (strcmp(data
->value
, "no") == 0)
24 p
.log(3, 0, 0, 0, " Not intercepting user\n");
31 int plugin_init(struct pluginfuncs
*funcs
)
34 memcpy(&p
, funcs
, sizeof(p
));