15#define AUTH_SUBJECT_MAX 1024
16#define AUTH_TYPE_MAX 1024
17#define AUTH_LINE_MAX (AUTH_SUBJECT_MAX+AUTH_TYPE_MAX)
19typedef int (*auth_assert_t) (
struct link * l, time_t stoptime);
20typedef int (*auth_accept_t) (
struct link * l,
char **subject, time_t stoptime);
22int auth_assert(
struct link *l,
char **type,
char **subject, time_t stoptime);
23int auth_accept(
struct link *l,
char **type,
char **subject, time_t stoptime);
25int auth_barrier(
struct link *l,
const char *response, time_t stoptime);
26int auth_register(
char *type, auth_assert_t assert, auth_accept_t accept);
30struct auth_state *auth_clone(
void);
31void auth_replace(
struct auth_state *);
32void auth_free(
struct auth_state *);
A high level TCP connection library.