summaryrefslogtreecommitdiff
path: root/radsecproxy.h
diff options
context:
space:
mode:
authorvenaas <venaas>2008-07-22 12:36:57 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-07-22 12:36:57 +0000
commitceac2d9d64b6cf9735cee2689af2500731a61535 (patch)
treea337a04156f8712000a4d5ab34e9157531974d66 /radsecproxy.h
parent707854bdbc031ab4cf3ba981ce3bfe8f84fb392f (diff)
added configuration of tcp transport
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@318 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.h')
-rw-r--r--radsecproxy.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/radsecproxy.h b/radsecproxy.h
index aaa49c6..d371bb7 100644
--- a/radsecproxy.h
+++ b/radsecproxy.h
@@ -12,7 +12,6 @@
/* MAX_REQUESTS must be 256 due to Radius' 8 bit ID field */
#define MAX_REQUESTS 256
-#define DEFAULT_TLS_SECRET "mysecret"
#define DEFAULT_UDP_PORT "1812"
#define DEFAULT_TLS_PORT "2083"
#define REQUEST_RETRY_INTERVAL 5
@@ -31,6 +30,7 @@
#define RAD_UDP 0
#define RAD_TLS 1
+#define RAD_TCP 2
#define RAD_Attr_User_Name 1
#define RAD_Attr_User_Password 2
@@ -46,6 +46,7 @@
struct options {
char **listenudp;
char **listentcp;
+ char **listentls;
char **listenaccudp;
char *sourceudp;
char *sourcetcp;
@@ -88,8 +89,8 @@ struct listenerarg {
struct clsrvconf {
char *name;
- char *conftype;
- uint8_t type; /* RAD_UDP/RAD_TLS */
+ uint8_t type; /* RAD_UDP/RAD_TLS/RAD_TCP */
+ const struct protodefs *pdef;
char *host;
char *port;
char *secret;
@@ -166,6 +167,8 @@ struct rewriteconf {
};
struct protodefs {
+ char *name;
+ char *secretdefault;
uint8_t retrycountdefault;
uint8_t retrycountmax;
uint8_t retryintervaldefault;