From 0065f2622cc3bdf1e5cfd322fbb890a25afef8d8 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Mon, 4 Oct 2010 01:31:01 +0200 Subject: WIP -- reading configuration. --- lib/include/radsec/radsec-impl.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/include/radsec/radsec-impl.h') diff --git a/lib/include/radsec/radsec-impl.h b/lib/include/radsec/radsec-impl.h index 503b2e5..9421fd6 100644 --- a/lib/include/radsec/radsec-impl.h +++ b/lib/include/radsec/radsec-impl.h @@ -46,6 +46,7 @@ struct rs_realm { char *name; enum rs_conn_type type; struct rs_peer *peers; + struct rs_realm *next; }; struct rs_handle { @@ -79,6 +80,13 @@ struct rs_attr { VALUE_PAIR *vp; }; +/* Nonpublic functions. */ +struct rs_error *_rs_resolv (struct evutil_addrinfo **addr, rs_conn_type_t type, const char *hostname, const char *service); +struct rs_peer *_rs_peer_create (struct rs_handle *ctx, struct rs_peer **rootp); +struct rs_error *_rs_err_create (unsigned int code, const char *file, int line, const char *fmt, ...); +int _rs_err_conn_push_err (struct rs_connection *conn, struct rs_error *err); + + /* Convenience macros. */ #define rs_calloc(h, nmemb, size) \ (h->alloc_scheme.calloc ? h->alloc_scheme.calloc : calloc)(nmemb, size) -- cgit v1.1