Commit c36b0869 authored by venaas's avatar venaas Committed by venaas
Browse files

restructuring peer and client/server

git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@136 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent 6d5e3bd8
This diff is collapsed.
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment