summaryrefslogtreecommitdiff
path: root/radsecproxy.h
diff options
context:
space:
mode:
authorvenaas <venaas>2007-06-17 21:01:56 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-06-17 21:01:56 +0000
commitc36b0869b9c0092d7bb06a3267364f675a657ae0 (patch)
treef845dc1c6ae6e1afab7e3eae749446472f9b5002 /radsecproxy.h
parent6d5e3bd8d51d1bfa0350ad0c9e2cea97e9fb4f29 (diff)
restructuring peer and client/server
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@136 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.h')
-rw-r--r--radsecproxy.h10
1 files changed, 6 insertions, 4 deletions
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 {