From 6d5e3bd8d51d1bfa0350ad0c9e2cea97e9fb4f29 Mon Sep 17 00:00:00 2001 From: venaas Date: Sat, 16 Jun 2007 12:31:24 +0000 Subject: restructuring peer and client/server git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@135 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'radsecproxy.h') 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; -- cgit v1.2.3