authproc: add more API's for opm management
This commit is contained in:
parent
c1f4db3fb7
commit
3d2fc110e3
2 changed files with 17 additions and 1 deletions
|
@ -54,10 +54,14 @@ void authd_abort_client(struct Client *);
|
|||
void add_blacklist(const char *host, const char *reason, uint8_t iptype, rb_dlink_list *filters);
|
||||
void del_blacklist(const char *host);
|
||||
void del_blacklist_all(void);
|
||||
|
||||
bool set_authd_timeout(const char *key, int timeout);
|
||||
void ident_check_enable(bool enabled);
|
||||
|
||||
void create_opm_listener(const char *ip, uint16_t port);
|
||||
void opm_check_enable(bool enabled);
|
||||
void create_opm_proxy_scanner(const char *type, uint16_t port);
|
||||
void delete_opm_proxy_scanner(const char *type, uint16_t port);
|
||||
void delete_opm_proxy_scanner_all(void);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -597,7 +597,7 @@ create_opm_listener(const char *ip, uint16_t port)
|
|||
void
|
||||
opm_check_enable(bool enabled)
|
||||
{
|
||||
rb_helper_write(authd_helper, "O opm_enable %d", enabled ? 1 : 0);
|
||||
rb_helper_write(authd_helper, "O opm_enabled %d", enabled ? 1 : 0);
|
||||
}
|
||||
|
||||
/* Create an OPM proxy scanner */
|
||||
|
@ -606,3 +606,15 @@ create_opm_proxy_scanner(const char *type, uint16_t port)
|
|||
{
|
||||
rb_helper_write(authd_helper, "O opm_scanner %s %hu", type, port);
|
||||
}
|
||||
|
||||
void
|
||||
delete_opm_proxy_scanner(const char *type, uint16_t port)
|
||||
{
|
||||
rb_helper_write(authd_helper, "O opm_scanner_del %s %hu", type, port);
|
||||
}
|
||||
|
||||
void
|
||||
delete_opm_proxy_scanner_all(void)
|
||||
{
|
||||
rb_helper_write(authd_helper, "O opm_scanner_del_all");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue