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