diff options
author | venaas <venaas> | 2007-06-05 09:48:01 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2007-06-05 09:48:01 +0000 |
commit | b93d5015118ebcc16a0869ff924369f404593ca9 (patch) | |
tree | f3aa85ed2c9d75940d29af8a727768d47f9e021c /radsecproxy.h | |
parent | 92938fa2d2416998df899406e19aaa074bc22dbb (diff) |
This branch will be for 1.0 alpha, beta, 1.0, 1.0.1 etc...
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.0@124 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.h')
-rw-r--r-- | radsecproxy.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/radsecproxy.h b/radsecproxy.h index b4dcfe6..c6b2b19 100644 --- a/radsecproxy.h +++ b/radsecproxy.h @@ -8,9 +8,7 @@ #define DEBUG_LEVEL 3 -#define CONFIG_MAIN "/etc/radsecproxy/radsecproxy.conf" -#define CONFIG_SERVERS "/etc/radsecproxy/servers.conf" -#define CONFIG_CLIENTS "/etc/radsecproxy/clients.conf" +#define CONFIG_MAIN "/etc/radsecproxy.conf" /* MAX_REQUESTS must be 256 due to Radius' 8 bit ID field */ #define MAX_REQUESTS 256 @@ -32,6 +30,7 @@ #define RAD_Attr_User_Name 1 #define RAD_Attr_User_Password 2 +#define RAD_Attr_Reply_Message 18 #define RAD_Attr_Vendor_Specific 26 #define RAD_Attr_Tunnel_Password 69 #define RAD_Attr_Message_Authenticator 80 @@ -43,11 +42,6 @@ #define CONF_CBK 2 struct options { - char *tlscacertificatefile; - char *tlscacertificatepath; - char *tlscertificatefile; - char *tlscertificatekeyfile; - char *tlscertificatekeypassword; char *listenudp; char *listentcp; char *logdestination; @@ -86,6 +80,7 @@ struct peer { char *port; char *secret; SSL *ssl; + SSL_CTX *ssl_ctx; struct addrinfo *addrinfo; }; @@ -111,10 +106,17 @@ struct server { struct realm { char *name; + char *message; regex_t regex; struct server *server; }; +struct tls { + char *name; + SSL_CTX *ctx; + int count; +}; + #define RADLEN(x) ntohs(((uint16_t *)(x))[1]) #define ATTRTYPE(x) ((x)[0]) |