summaryrefslogtreecommitdiff
path: root/radsecproxy.h
diff options
context:
space:
mode:
authorvenaas <venaas>2007-06-16 12:31:24 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-06-16 12:31:24 +0000
commit6d5e3bd8d51d1bfa0350ad0c9e2cea97e9fb4f29 (patch)
tree4c46d5a56d8014cd3a072b6e17c5c6ca1de71ce0 /radsecproxy.h
parentf554048e8ede93d1e98d1466403a78c60ab5c139 (diff)
restructuring peer and client/server
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@135 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.h')
-rw-r--r--radsecproxy.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/radsecproxy.h b/radsecproxy.h
index c6b2b19..d89b1c9 100644
--- a/radsecproxy.h
+++ b/radsecproxy.h
@@ -79,25 +79,26 @@ struct peer {
char *host;
char *port;
char *secret;
- SSL *ssl;
+ uint8_t statusserver;
SSL_CTX *ssl_ctx;
struct addrinfo *addrinfo;
};
struct client {
- struct peer peer;
+ struct peer *peer;
+ SSL *ssl;
struct replyq *replyq;
};
struct server {
- struct peer peer;
+ struct peer *peer;
int sock;
+ SSL *ssl;
pthread_mutex_t lock;
pthread_t clientth;
struct timeval lastconnecttry;
uint8_t connectionok;
int nextid;
- uint8_t statusserver;
struct request *requests;
uint8_t newrq;
pthread_mutex_t newrq_mutex;