From 5ff81d97c9f3c3cd189c5e387a252bcf5fbd38a7 Mon Sep 17 00:00:00 2001 From: venaas Date: Thu, 4 Jan 2007 14:43:53 +0000 Subject: fixed minor bugs git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@27 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'radsecproxy.h') diff --git a/radsecproxy.h b/radsecproxy.h index 7ce9a50..111f39c 100644 --- a/radsecproxy.h +++ b/radsecproxy.h @@ -61,13 +61,17 @@ struct replyq { pthread_cond_t count_cond; }; -struct client { +struct peer { char type; /* U for UDP, T for TLS */ char *host; char *port; char *secret; SSL *ssl; struct addrinfo *addrinfo; +}; + +struct client { + struct peer peer; struct replyq *replyq; int replycount; pthread_mutex_t replycount_mutex; @@ -75,12 +79,7 @@ struct client { }; struct server { - char type; /* U for UDP, T for TLS */ - char *host; - char *port; - char *secret; - SSL *ssl; - struct addrinfo *addrinfo; + struct peer peer; char *realmdata; char **realms; int sock; -- cgit v1.2.3