45 |
#include <radiusd.h> |
#include <radiusd.h> |
46 |
#include <radutmp.h> |
#include <radutmp.h> |
47 |
#include <checkrad.h> |
#include <checkrad.h> |
48 |
|
#include <rewrite.h> |
49 |
|
|
50 |
#include <asn1.h> |
#include <asn1.h> |
51 |
#include <snmp.h> |
#include <snmp.h> |
110 |
int |
int |
111 |
compare(struct check_instance *checkp, char *str) |
compare(struct check_instance *checkp, char *str) |
112 |
{ |
{ |
113 |
return rewrite_invoke(checkp->func, NULL, |
UINT4 result; |
114 |
"ssis", |
/* FIXME: what to do if invoke fails? */ |
115 |
str, |
rewrite_invoke(Integer, &result, |
116 |
checkp->name, |
checkp->func, NULL, |
117 |
checkp->port, |
"ssis", |
118 |
checkp->sid); |
str, |
119 |
|
checkp->name, |
120 |
|
checkp->port, |
121 |
|
checkp->sid); |
122 |
|
return result; |
123 |
} |
} |
124 |
|
|
125 |
|
|