]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
expose fr_pair_alloc()
authorAlan T. DeKok <aland@freeradius.org>
Fri, 26 Feb 2021 16:57:34 +0000 (11:57 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 26 Feb 2021 16:57:34 +0000 (11:57 -0500)
src/include/libradius.h
src/lib/pair.c

index 074005d40112033fd672b60cf16bd2bf28f690c3..48844be4acd24efca40823cdd66102c6b65743bf 100644 (file)
@@ -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);
index 65a1547a83e3c14c18a6080319f9f940c05d06b4..377ab22d41b728287abd0d5ab415b40f8f40b076 100644 (file)
@@ -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;