summaryrefslogtreecommitdiff
path: root/radsecproxy.h
diff options
context:
space:
mode:
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;