13 #define AUTH_SUBJECT_MAX 1024
14 #define AUTH_TYPE_MAX 1024
15 #define AUTH_LINE_MAX (AUTH_SUBJECT_MAX+AUTH_TYPE_MAX)
17 typedef int (*auth_assert_t) (
struct link * l, time_t stoptime);
18 typedef int (*auth_accept_t) (
struct link * l,
char **subject, time_t stoptime);
20 int auth_assert(
struct link *l,
char **type,
char **subject, time_t stoptime);
21 int auth_accept(
struct link *l,
char **type,
char **subject, time_t stoptime);
23 int auth_barrier(
struct link *l,
const char *response, time_t stoptime);
24 int auth_register(
char *type, auth_assert_t assert, auth_accept_t accept);
26 void auth_clear(
void);
A high level TCP connection library.