summaryrefslogtreecommitdiff
path: root/radsecproxy.h
diff options
context:
space:
mode:
authorvenaas <venaas>2007-01-04 14:43:53 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-01-04 14:43:53 +0000
commit5ff81d97c9f3c3cd189c5e387a252bcf5fbd38a7 (patch)
tree5adc53e74f52aac376b0aee3ac93516723a6b129 /radsecproxy.h
parent28699bc5e546f880b466e392659c927456e40820 (diff)
fixed minor bugs
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@27 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.h')
-rw-r--r--radsecproxy.h13
1 files changed, 6 insertions, 7 deletions
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;