#include "security.h"
#include "event.h"
-#define auth_debug(i,x) do { \
+#define auth_debug(i, ...) do { \
if ((i) <= debug_auth) { \
- dbprintf(x); \
+ dbprintf(__VA_ARGS__); \
} \
} while (0)
int toclose;
int donotclose;
int auth;
+ char * (*conf_fn)(char *, void *);
+ void * datap;
#ifdef KRB5_SECURITY
gss_ctx_id_t gss_context;
#endif
int sec_stream_auth(void *);
int sec_stream_id(void *);
-void sec_accept(const security_driver_t *, int, int,
- void (*)(security_handle_t *, pkt_t *));
+void sec_accept(const security_driver_t *,
+ char *(*)(char *, void *),
+ int, int,
+ void (*)(security_handle_t *, pkt_t *),
+ void *);
void sec_close(void *);
void sec_connect_callback(void *);
void sec_connect_timeout(void *);
void show_stat_info(char *a, char *b);
int check_name_give_sockaddr(const char *hostname, struct sockaddr *addr,
char **errstr);
-int check_addrinfo_give_name(struct addrinfo *res, const char *hostname,
- char **errstr);
-int try_resolving_hostname(const char *hostname,
- char **cannonname);
#endif /* _SECURITY_INFO_H */