diff options
author | Linus Nordberg <linus@nordu.net> | 2011-03-14 13:27:39 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2011-03-14 13:27:39 +0100 |
commit | cef9bf7b7340b7270eb979294aeb186d741e6318 (patch) | |
tree | d4ada741c1f3cafd679f7147ffa5ca5406d18ebe /lib/include/radsec/radsec.h | |
parent | e317a8db7aede1cc9918db51c06de469686c9fa8 (diff) |
Remove struct rs_attr and all use of it.
A new API for attributes will be added once we've decided how to deal
with RADIUS packets internally. For now, removing the half baked
wrapping seems more sensible than trying to free rs_attr objects and
their VALUE_PAIR's.
Diffstat (limited to 'lib/include/radsec/radsec.h')
-rw-r--r-- | lib/include/radsec/radsec.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/include/radsec/radsec.h b/lib/include/radsec/radsec.h index 66c55f3..6b0a69c 100644 --- a/lib/include/radsec/radsec.h +++ b/lib/include/radsec/radsec.h @@ -49,7 +49,6 @@ struct rs_context; /* radsec-impl.h */ struct rs_connection; /* radsec-impl.h */ struct rs_packet; /* radsec-impl.h */ struct rs_conn; /* radsec-impl.h */ -struct rs_attr; /* radsec-impl.h */ struct rs_error; /* radsec-impl.h */ struct rs_peer; /* radsec-impl.h */ struct radius_packet; /* <freeradius/libradius.h> */ @@ -222,9 +221,6 @@ int rs_packet_create(struct rs_connection *conn, struct rs_packet **pkt_out); /** Free all memory allocated for packet \a pkt. */ void rs_packet_destroy(struct rs_packet *pkt); -/** Add attribute \a attr to packet \a pkt. */ -void rs_packet_add_attr(struct rs_packet *pkt, struct rs_attr *attr); - /** Send packet \a pkt on the connection associated with \a pkt. \a user_data is sent to the \a rs_conn_packet_received_cb callback registered with the connection. If no callback is registered with @@ -249,19 +245,6 @@ int rs_packet_create_authn_request(struct rs_connection *conn, const char *user_name, const char *user_pw); -/***************/ -/* Attribute. */ -/***************/ -/* FIXME: Replace (or complement) with a wrapper for paircreate(). */ -/** Create a RADIUS attribute of type \a type and with the value \a - val. */ -int rs_attr_create(struct rs_connection *conn, - struct rs_attr **attr, - const char *type, - const char *val); -/** Free memory for RADIUS attribute \a attr. */ -void rs_attr_destroy(struct rs_attr *attr); - /************/ /* Config. */ /************/ |