From c36b0869b9c0092d7bb06a3267364f675a657ae0 Mon Sep 17 00:00:00 2001 From: venaas Date: Sun, 17 Jun 2007 21:01:56 +0000 Subject: restructuring peer and client/server git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@136 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'radsecproxy.h') diff --git a/radsecproxy.h b/radsecproxy.h index d89b1c9..3733a18 100644 --- a/radsecproxy.h +++ b/radsecproxy.h @@ -74,7 +74,7 @@ struct replyq { pthread_cond_t count_cond; }; -struct peer { +struct clsrvconf { char type; /* U for UDP, T for TLS */ char *host; char *port; @@ -82,16 +82,18 @@ struct peer { uint8_t statusserver; SSL_CTX *ssl_ctx; struct addrinfo *addrinfo; + struct client *clients; + struct server *servers; }; struct client { - struct peer *peer; + struct clsrvconf *conf; SSL *ssl; struct replyq *replyq; }; struct server { - struct peer *peer; + struct clsrvconf *conf; int sock; SSL *ssl; pthread_mutex_t lock; @@ -109,7 +111,7 @@ struct realm { char *name; char *message; regex_t regex; - struct server *server; + struct clsrvconf *srvconf; }; struct tls { -- cgit v1.2.3