diff options
author | Linus Nordberg <linus@nordberg.se> | 2013-05-17 10:50:11 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2013-05-17 10:50:11 +0200 |
commit | bc7b85e8e4fa2e0e8d31bca161b2ad1a01ccafc5 (patch) | |
tree | 8b0808a9b8b72608134ae505d997ddb73dfdfaff /lib/include/radsec | |
parent | b920acc2f69c099e8b9f1e97001f03b42d4c97c7 (diff) | |
parent | 9ac979d07ab5ddbc283daf3e469f7ae756c2a351 (diff) |
Merge branch 'libradsec-add-avp-2' into libradsec
Conflicts:
lib/Makefile.am
Diffstat (limited to 'lib/include/radsec')
-rw-r--r-- | lib/include/radsec/radsec.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/include/radsec/radsec.h b/lib/include/radsec/radsec.h index d6150bf..bc061e0 100644 --- a/lib/include/radsec/radsec.h +++ b/lib/include/radsec/radsec.h @@ -322,7 +322,17 @@ int rs_packet_create_authn_request(struct rs_connection *conn, const char *user_name, const char *user_pw); -/*** Append \a tail to packet \a pkt. */ +/** Add a new attribute-value pair to \a pkt. */ +int rs_packet_add_avp(struct rs_packet *pkt, + unsigned int attr, unsigned int vendor, + const void *data, size_t data_len); + +/** Append a new attribute to packet \a pkt. Note that this function + encodes the attribute and therefore might require the secret + shared with the thought recipient to be set in pkt->rpkt. Note + also that this function marks \a pkt as already encoded and can + not be used on packets with non-encoded value-pairs already + added. */ int rs_packet_append_avp(struct rs_packet *pkt, unsigned int attribute, unsigned int vendor, |