summaryrefslogtreecommitdiff
path: root/lib/include/radsec/radsec-impl.h
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2010-10-03 22:51:29 +0200
committerLinus Nordberg <linus@nordu.net>2010-10-03 22:51:29 +0200
commit4d99bb55ec1368b42daccb29f0440bc166297a17 (patch)
treedff2f47b6555583c71ff38207e7efaedb9dd459e /lib/include/radsec/radsec-impl.h
parent63a5bc0182881d8f806a9acdf47b708492b8a41b (diff)
WIP
Diffstat (limited to 'lib/include/radsec/radsec-impl.h')
-rw-r--r--lib/include/radsec/radsec-impl.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/lib/include/radsec/radsec-impl.h b/lib/include/radsec/radsec-impl.h
index c92d9e9..4f7fa2c 100644
--- a/lib/include/radsec/radsec-impl.h
+++ b/lib/include/radsec/radsec-impl.h
@@ -30,25 +30,30 @@ struct rs_error {
char buf[1024];
};
-struct rs_handle {
- struct rs_alloc_scheme alloc_scheme;
- struct rs_error *err;
- fr_randctx fr_randctx;
- /* TODO: dictionary? */
-};
-
struct rs_peer {
struct rs_connection *conn;
struct evutil_addrinfo *addr;
int fd; /* Socket. */
char is_connecting; /* FIXME: replace with a single state member */
- char is_connected; /* FIXME: replace */
+ char is_connected; /* FIXME: replace with a single state member */
char *secret;
int timeout; /* client only */
int tries; /* client only */
struct rs_peer *next;
};
+struct rs_realm {
+ char *name;
+ struct rs_peer *peers;
+};
+
+struct rs_handle {
+ struct rs_realm *realms;
+ struct rs_alloc_scheme alloc_scheme;
+ struct rs_error *err;
+ fr_randctx fr_randctx;
+};
+
struct rs_connection {
struct rs_handle *ctx;
struct event_base *evb;