Commit 6d5e3bd8 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@135 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent f554048e
This diff is collapsed.
......@@ -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;
......
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