summaryrefslogtreecommitdiff
path: root/lib/include/radsec/radsec.h
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2010-10-11 19:06:06 +0200
committerLinus Nordberg <linus@nordu.net>2010-10-11 19:06:06 +0200
commite06796fe52596f417d74b3c3758ff0a321f67274 (patch)
treee79094450d53fe48de78f3f6efe7e3a9a9f6add2 /lib/include/radsec/radsec.h
parent887a170a35bb083fbe4cc6b7315bb15676b99e9f (diff)
parent06936d1f263c456017e20ea6c74d2756e1e30fcc (diff)
Merge branch 'merge-luke' into libradsec
8a676ab Robustness fixes (and some callback invocation) by Luke Howard. ff55882 Request object implementation and bug fixes by Luke Howard. 06936d1 Have rad_decode() verify responses.
Diffstat (limited to 'lib/include/radsec/radsec.h')
-rw-r--r--lib/include/radsec/radsec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/include/radsec/radsec.h b/lib/include/radsec/radsec.h
index 1d12787..8e97072 100644
--- a/lib/include/radsec/radsec.h
+++ b/lib/include/radsec/radsec.h
@@ -17,6 +17,7 @@ enum rs_err_code {
RSE_EVENT = 9,
RSE_CONNERR = 10,
RSE_CONFIG = 11,
+ RSE_BADAUTH = 12,
RSE_SOME_ERROR = 21,
};
@@ -96,6 +97,7 @@ int rs_conn_select_server(struct rs_connection *conn, const char *name);
int rs_conn_get_current_server(struct rs_connection *conn,
const char *name, size_t buflen);
int rs_conn_receive_packet(struct rs_connection *conn,
+ struct rs_packet *request,
struct rs_packet **pkt_out);
int rs_conn_fd(struct rs_connection *conn);
@@ -118,6 +120,7 @@ int rs_packet_send(struct rs_packet *pkt, void *data);
struct radius_packet *rs_packet_frpkt(struct rs_packet *pkt);
/* Attribute. */
+/* FIXME: Replace (or complement) with a wrapper for paircreate(). */
int rs_attr_create(struct rs_connection *conn, struct rs_attr **attr,
const char *type, const char *val);
void rs_attr_destroy(struct rs_attr *attr);