From: Alan T. DeKok Date: Mon, 15 Jun 2015 19:07:52 +0000 (-0400) Subject: Expose rad_data2vp_tlvs X-Git-Tag: release_3_0_9~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e0b538358aa29ad65ebef45f1700f7395285d65;p=thirdparty%2Ffreeradius-server.git Expose rad_data2vp_tlvs --- diff --git a/src/include/libradius.h b/src/include/libradius.h index e751278f65b..80f7b515d26 100644 --- a/src/include/libradius.h +++ b/src/include/libradius.h @@ -555,6 +555,12 @@ ssize_t rad_attr2vp(TALLOC_CTX *ctx, uint8_t const *data, size_t length, VALUE_PAIR **pvp); +ssize_t rad_data2vp_tlvs(TALLOC_CTX *ctx, + RADIUS_PACKET *packet, RADIUS_PACKET const *original, + char const *secret, DICT_ATTR const *da, + uint8_t const *start, size_t length, + VALUE_PAIR **pvp); + ssize_t rad_vp2data(uint8_t const **out, VALUE_PAIR const *vp); int rad_vp2extended(RADIUS_PACKET const *packet, diff --git a/src/lib/radius.c b/src/lib/radius.c index 0e1b01a56c1..05f2df1c87b 100644 --- a/src/lib/radius.c +++ b/src/lib/radius.c @@ -2902,7 +2902,7 @@ static ssize_t data2vp_concat(TALLOC_CTX *ctx, /** Convert TLVs to one or more VPs * */ -static ssize_t data2vp_tlvs(TALLOC_CTX *ctx, +ssize_t rad_data2vp_tlvs(TALLOC_CTX *ctx, RADIUS_PACKET *packet, RADIUS_PACKET const *original, char const *secret, DICT_ATTR const *da, uint8_t const *start, size_t length, @@ -3688,8 +3688,8 @@ ssize_t data2vp(TALLOC_CTX *ctx, * attribute, OR they've already been grouped * into a contiguous memory buffer. */ - rcode = data2vp_tlvs(ctx, packet, original, secret, da, - data, attrlen, pvp); + rcode = rad_data2vp_tlvs(ctx, packet, original, secret, da, + data, attrlen, pvp); if (rcode < 0) goto raw; return rcode;