From 0821c152301b03565125e823f580deef4812d554 Mon Sep 17 00:00:00 2001 From: venaas Date: Thu, 21 Aug 2008 09:55:13 +0000 Subject: restructuring code git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@351 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'radsecproxy.h') diff --git a/radsecproxy.h b/radsecproxy.h index c2e9425..f3c0742 100644 --- a/radsecproxy.h +++ b/radsecproxy.h @@ -187,8 +187,11 @@ struct protodefs { void *(*listener)(void*); char **srcaddrport; int (*connecter)(struct server *, struct timeval *, int, char *); - void *(*clientreader)(void*); + void *(*clientconnreader)(void*); int (*clientradput)(struct server *, unsigned char *); + void (*addclient)(struct client *); + void (*addserverextra)(struct clsrvconf *); + void (*initextra)(); }; #define RADLEN(x) ntohs(((uint16_t *)(x))[1]) @@ -205,9 +208,11 @@ struct protodefs { struct addrinfo *getsrcprotores(uint8_t type); struct clsrvconf *find_clconf(uint8_t type, struct sockaddr *addr, struct list_node **cur); struct clsrvconf *find_srvconf(uint8_t type, struct sockaddr *addr, struct list_node **cur); +struct clsrvconf *find_clconf_type(uint8_t type, struct list_node **cur); struct client *addclient(struct clsrvconf *conf); void removeclient(struct client *client); void removeclientrqs(struct client *client); +struct queue *newqueue(); int radsrv(struct request *rq); X509 *verifytlscert(SSL *ssl); int verifyconfcert(X509 *cert, struct clsrvconf *conf); -- cgit v1.2.3