From: Alan T. DeKok Date: Fri, 26 Feb 2021 16:57:34 +0000 (-0500) Subject: expose fr_pair_alloc() X-Git-Tag: release_3_0_22~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6314be64f6eaee7ab2f75d47ffc9ccb36d29e626;p=thirdparty%2Ffreeradius-server.git expose fr_pair_alloc() --- diff --git a/src/include/libradius.h b/src/include/libradius.h index 074005d401..48844be4ac 100644 --- a/src/include/libradius.h +++ b/src/include/libradius.h @@ -594,6 +594,7 @@ int rad_vp2attr(RADIUS_PACKET const *packet, VALUE_PAIR const **pvp, uint8_t *ptr, size_t room); /* pair.c */ +VALUE_PAIR *fr_pair_alloc(TALLOC_CTX *ctx); VALUE_PAIR *fr_pair_afrom_da(TALLOC_CTX *ctx, DICT_ATTR const *da); VALUE_PAIR *fr_pair_afrom_num(TALLOC_CTX *ctx, unsigned int attr, unsigned int vendor); int fr_pair_to_unknown(VALUE_PAIR *vp); diff --git a/src/lib/pair.c b/src/lib/pair.c index 65a1547a83..377ab22d41 100644 --- a/src/lib/pair.c +++ b/src/lib/pair.c @@ -45,7 +45,7 @@ static int _fr_pair_free(VALUE_PAIR *vp) { return 0; } -static VALUE_PAIR *fr_pair_alloc(TALLOC_CTX *ctx) +VALUE_PAIR *fr_pair_alloc(TALLOC_CTX *ctx) { VALUE_PAIR *vp;