]> jfr.im git - solanum.git/blobdiff - include/authd.h
authd: add API for setting OPM listeners
[solanum.git] / include / authd.h
index 276d6fa8db0e3852e8fba7ade0057ac91376e5ad..ce762b75af2d9f220b08ca7f29680fab23f707e6 100644 (file)
 #ifndef CHARYBDIS_AUTHD_H
 #define CHARYBDIS_AUTHD_H
 
+#include "stdinc.h"
+#include "rb_dictionary.h"
+#include "client.h"
+
+struct blacklist_stats
+{
+       uint8_t iptype;
+       unsigned int hits;
+};
+
 extern rb_helper *authd_helper;
 
+extern rb_dictionary *bl_stats;
+
 void init_authd(void);
+void configure_authd(void);
 void restart_authd(void);
 void rehash_authd(void);
 void check_authd(void);
 
+void authd_initiate_client(struct Client *);
+void authd_decide_client(struct Client *client_p, const char *ident, const char *host, bool accept, char cause, const char *data, const char *reason);
+void authd_abort_client(struct Client *);
+const char *get_provider_string(char cause);
+
+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);
+bool create_opm_listener(struct rb_sockaddr_storage *addr);
+
 #endif