]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fixup doxygen headers in src/lib/util
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 19 Jul 2018 01:57:33 +0000 (21:57 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 19 Jul 2018 01:57:33 +0000 (21:57 -0400)
79 files changed:
src/lib/util/README [deleted file]
src/lib/util/base.h
src/lib/util/base64.c
src/lib/util/base64.h
src/lib/util/cursor.c
src/lib/util/cursor.h
src/lib/util/debug.c
src/lib/util/debug.h
src/lib/util/dict.c
src/lib/util/dict.h
src/lib/util/dlist.h
src/lib/util/event.c
src/lib/util/event.h
src/lib/util/fifo.c
src/lib/util/filters.c
src/lib/util/fring.c
src/lib/util/fring.h
src/lib/util/getaddrinfo.c
src/lib/util/hash.c
src/lib/util/hash.h
src/lib/util/heap.c
src/lib/util/heap.h
src/lib/util/hmacmd5.c
src/lib/util/hmacsha1.c
src/lib/util/inet.c
src/lib/util/inet.h
src/lib/util/isaac.c
src/lib/util/log.c
src/lib/util/log.h
src/lib/util/lsan.h
src/lib/util/md4.c
src/lib/util/md4.h
src/lib/util/md5.c
src/lib/util/md5.h
src/lib/util/mem.c
src/lib/util/misc.c
src/lib/util/missing.c
src/lib/util/net.c
src/lib/util/net.h
src/lib/util/packet.h
src/lib/util/pair.c
src/lib/util/pair.h
src/lib/util/pair_cursor.c
src/lib/util/pair_cursor.h
src/lib/util/pcap.c
src/lib/util/pcap.h
src/lib/util/print.c
src/lib/util/proto.c
src/lib/util/proto.h
src/lib/util/rand.c
src/lib/util/rbtree.c
src/lib/util/rbtree.h
src/lib/util/regex.c
src/lib/util/regex.h
src/lib/util/sha1.c
src/lib/util/sha1.h
src/lib/util/snprintf.c
src/lib/util/snprintf.h
src/lib/util/socket.c
src/lib/util/strerror.c
src/lib/util/strlcat.c
src/lib/util/strlcpy.c
src/lib/util/syserror.c
src/lib/util/talloc.c
src/lib/util/talloc.h
src/lib/util/threads.h
src/lib/util/token.c
src/lib/util/token.h
src/lib/util/trie.c
src/lib/util/trie.h
src/lib/util/types.h
src/lib/util/udp.c
src/lib/util/udp.h
src/lib/util/udpfromto.c
src/lib/util/udpfromto.h
src/lib/util/value.c
src/lib/util/value.h
src/lib/util/version.c
src/lib/util/version.h

diff --git a/src/lib/util/README b/src/lib/util/README
deleted file mode 100644 (file)
index 1c1da3a..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-  The files in this directory are placed under the LGPL, as given
-in the LICENSE file in this directory.
index 8de2c1cdf3a91c8c3bfb846e608f54b9ed5da8f3..d303747f3ac95537cd06b9ea012524da4eb5de52 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/*
- * $Id$
+/** Structures and prototypes for this utility library
  *
  * @file src/lib/util/base.h
- * @brief Structures and prototypes for the radius library.
  *
  * @copyright 1999-2014 The FreeRADIUS server project
  */
 
-/*
- *  Compiler hinting macros.  Included here for 3rd party consumers
- *  of libradius.h.
- *
- *  @note Defines RCSIDH.
- */
 #include <freeradius-devel/build.h>
 RCSIDH(libradius_h, "$Id$")
 
index 78b60a4a188cb6a9040b2b0655ecf9014ac369b3..dc783a9b7f633d2900a04cce92332899369271f3 100644 (file)
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
-/**
- * @file lib/util/base64.c
+/** Encode/decode binary data using printable characters
  *
  * @see RFC 3548 <http://www.ietf.org/rfc/rfc3548.txt>.
  *
- * @brief Encode/decode binary data using printable characters.
+ * @file src/lib/util/base64.c
  * @author Simon Josefsson.
  */
 RCSID("$Id$")
index 8ac7c69cdd45ffdd6cf6b45677186e82656464ee..8e0833b8079e03140d875833e5188d01ca1fc5d7 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Encode and decode data in base64 format
  *
- * @file lib/util/base64.h
- * @brief Encode and decode data in base64 format.
+ * @file src/lib/util/base64.h
  *
  * @author Simon Josefsson
  * @copyright 2004, 2005, 2006 Free Software Foundation, Inc.
index 232e51c68c3ad7cae042882b2ee34c90a2ad8e78..6f02378364300db9737e49371e8692550969f5e8 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Functions to iterate over a sets and subsets of items
  *
- * @file lib/util/cursor.c
- * @brief Functions to iterate over a sets and subsets of items.
+ * @file src/lib/util/cursor.c
  *
  * @note Do not modify collections of items pointed to by a cursor
  *      with none fr_cursor_* functions over the lifetime of that cursor.
index b6e085e84b2ccdfcfb040ae111b94240233d5ad7..c6da06a70953826896b20b8348bf9398c3f5fde6 100644 (file)
 #include <stddef.h>
 #include <freeradius-devel/build.h>
 
-/**
- * $Id$
+/** Functions to iterate over a sets and subsets of items
  *
- * @file lib/util/cursor.h
- * @brief Generic linked list cursor.
+ * @file src/lib/util/cursor.h
  *
  * @copyright 2016  The FreeRADIUS server project
  */
index f5280a7c43ca76c9889be4e3bfa11c58ff385930..b458746b6e0dbe56ad8cc3030fd8cd373ce0cb66 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * @file lib/util/debug.c
- * @brief Various functions to aid in debugging
+/** Functions to help with debugging
+ *
+ * @file src/lib/util/debug.c
  *
  * @copyright 2013  The FreeRADIUS server project
  * @copyright 2013  Arran Cudbard-Bell <a.cudbardb@freeradius.org>
  */
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdbool.h>
index 12c2cbef0619fa89eb8c138da0d68c458581e6a2..39897cc9a4ce095d728398d728d5a3e1974304b0 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/*
- * $Id$
+/** Debugging function definitions and structures
  *
- * @file lib/util/debug.h
- * @brief Debugging function definitions and structures.
+ * @file src/lib/util/debug.h
  *
  * @copyright 2015-2017 Arran Cudbard-Bell <a.cudbardb@freeradius.org>
  */
index 565e35159768d61c04b506f000d1909e6c34dd8e..846cee2e38b356fd19c9bb797bd65262297d7550 100644 (file)
@@ -14,9 +14,9 @@
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * @file lib/util/dict.c
- * @brief Functions to parse FreeRADIUS dictionary file(s).
+/** Multi-protocol AVP dictionary API
+ *
+ * @file src/lib/util/dict.c
  *
  * @copyright 2000,2006 The FreeRADIUS server project
  */
index 2b417a1f508db3c0da5fcfea8c337125281bee0f..31f1561023842f6c1fc1c6e66926cf22fddef513 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Multi-protocol AVP dictionary API
  *
- * @file lib/util/dict.h
- * @brief Multi-protocol attribute dictionary API.
+ * @file src/lib/util/dict.h
  *
  * @copyright 2015  The FreeRADIUS server project
  */
index 555d1687f590ed70b51701973ad2f50e49b8cf55..993894cee248eb0949dee8b089a0856c32388df8 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Doubly linked list implementation
  *
- * @file util/dlist.h
- * @brief Doubly linked list implementation
+ * @file src/lib/util/dlist.h
  *
  * @copyright 2016 Alan DeKok <aland@freeradius.org>
  */
index eea4ae26e3078494abb1cc9bd12627845f9ade41..b271bfa473e452c9efec069dc4c190502387b0d5 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * @file lib/util/event.c
- * @brief Non-thread-safe event handling specific to FreeRADIUS
+/**  Wrapper around libkqueue to make managing events easier
  *
- * @note By non-thread-safe we mean multiple threads can't insert/delete events concurrently
- *     into the same event list without synchronization.
+ * Non-thread-safe event handling specific to FreeRADIUS.
+ *
+ * By non-thread-safe we mean multiple threads can't insert/delete
+ * events concurrently into the same event list without synchronization.
+ *
+ * @file src/lib/util/event.c
  *
  * @copyright 2007-2016 The FreeRADIUS server project
  * @copyright 2016 Arran Cudbard-Bell <a.cudbardb@freeradius.org>
index 0d7621c4152a419f7e70aab5b87702873eeb5c76..a08e01e8d2cb8aa247feaa7f18c9a465f7aabed2 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Wrapper around libkqueue to make managing events easier
  *
- * @file lib/util/event.h
- * @brief A simple event queue.
+ * @file src/lib/util/event.h
  *
  * @copyright 2007  The FreeRADIUS server project
  * @copyright 2007  Alan DeKok <aland@deployingradius.com>
index 2889f5aed722e5aee245498749f10dece8205d91..cddc875fa7ce2aa811eafee7cf4d23d72a215794 100644 (file)
@@ -14,9 +14,9 @@
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * @file lib/util/fifo.c
- * @brief Non-thread-safe fifo (FIFO) implementation.
+/** Non-thread-safe fifo (FIFO) implementation
+ *
+ * @file src/lib/util/fifo.c
  *
  * @copyright 2005,2006  The FreeRADIUS server project
  * @copyright 2005  Alan DeKok <aland@ox.org>
index 00990acfeef11dbe93f2c33e5d3b2e70fba65876..f37b7309e6414ba2b2910f33c415a6d943c6aff2 100644 (file)
@@ -14,9 +14,9 @@
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * @file lib/util/filters.c
- * @brief Routines to parse Ascend's filter attributes.
+/** Routines to parse Ascend's filter attributes
+ *
+ * @file src/lib/util/filters.c
  *
  * @copyright 2003,2006  The FreeRADIUS server project
  */
index 1acb640e4ace7585e974f6086f8d89d4742807fb..d5114d2944eda92ae28a9796df17af7ebeb92d03 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * @file lib/util/fring.c
- * @brief Implementation of a circular buffer with fixed element size.
+/** Implementation of a circular buffer with fixed element size
  *
  * This offers similar functionality to ring_buffer.c, but uses a fixed
  * element size, and expects all elements to be talloced.
  *
+ * @file src/lib/util/fring.c
+ *
  * @copyright 2013  The FreeRADIUS server project
  * @copyright 2013  Arran Cudbard-Bell <a.cudbardb@freeradius.org>
  */
index eec2a2e38220c38caea7d92df23b3b2c320c8ea6..569498ad6a7237eb497fc37a780df443a59762c5 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/*
- * $Id$
+/** Simple ring buffer with fixed element sizes
  *
- * @file lib/util/fring_buffer.h
- * @brief Simple ring buffer with fixed element sizes.
+ * @file src/lib/util/fring_buffer.h
  *
  * @copyright 2015-2017 Arran Cudbard-Bell <a.cudbardb@freeradius.org>
  */
index 110b3678aeca92665d6326c03ac3008f13fea44b..c1bc21639885e9015bec2ac5d8b70246624a5da4 100644 (file)
@@ -14,9 +14,7 @@
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * @file lib/util/getaddrinfo.c
- * @brief Replacement getaddrinfo functions.
+/** Replacement getaddrinfo functions
  *
  * These functions are defined and used only if the configure
  * cannot detect the standard getaddrinfo(), freeaddrinfo(),
@@ -25,6 +23,8 @@
  * FIXME: getaddrinfo() & getnameinfo() should
  *     return all IPv4 addresses provided by DNS lookup.
  *
+ * @file src/lib/util/getaddrinfo.c
+ *
  * @copyright 2016  The FreeRADIUS server project
  */
 RCSID("$Id$")
index 3e6fce663338863c4c8c0a3a220b0b2cf3f79fdd..12dda1fc9e5df803802aa6b364e57f39a881b15b 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * @file lib/util/hash.c
- * @brief Resizable hash tables.
+/** Resizable hash tables
  *
- *  The weird "reverse" function is based on an idea from
- *  "Split-Ordered Lists - Lock-free Resizable Hash Tables", with
- *  modifications so that they're not lock-free. :(
+ * The weird "reverse" function is based on an idea from
+ * "Split-Ordered Lists - Lock-free Resizable Hash Tables", with
+ * modifications so that they're not lock-free. :(
  *
- *  However, the split-order idea allows a fast & easy splitting of the
- *  hash bucket chain when the hash table is resized.  Without it, we'd
- *  have to check & update the pointers for every node in the buck chain,
- *  rather than being able to move 1/2 of the entries in the chain with
- *  one update.
+ * However, the split-order idea allows a fast & easy splitting of the
+ * hash bucket chain when the hash table is resized.  Without it, we'd
+ * have to check & update the pointers for every node in the buck chain,
+ * rather than being able to move 1/2 of the entries in the chain with
+ * one update.
+ *
+ * @file src/lib/util/hash.c
  *
  * @copyright 2005,2006  The FreeRADIUS server project
  */
index d29bf945fe4c6eff675ab1028fd1fe6070fa19cf..1ebee159178c52e0fe041eb05f86882018d571c6 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Structures and prototypes for resizable hash tables
  *
- * @file lib/util/hash.h
- * @brief Structures and prototypes for fast hashing.
+ * @file src/lib/util/hash.h
  *
  * @copyright 2005,2006  The FreeRADIUS server project
  */
index 1b85c9345af884185314f0c187acb47503467c62..ce1169cef7189705be06b9871823e827214b57c3 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * @file lib/util/heap.c
- * @brief Basic heap
+/** Functions for a basic binary heaps
+ *
+ * @file src/lib/util/heap.c
+ *
  * @copyright 2005,2006  The FreeRADIUS server project
  */
 RCSID("$Id$")
index f0d48687713a2f05519817679ba8e28de8df6fa7..0239432ba72089ffd308e3b0a2c0190d0c43d145 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Structures and prototypes for binary heaps
  *
- * @file lib/util/heap.h
- * @brief Structures and prototypes for binary heaps.
+ * @file src/lib/util/heap.h
  *
  * @copyright 2007  Alan DeKok
  */
index a52fdeded720a13adb02cd2c00bf342bbab79e17..8c13d31d609d6307c93676019c2bf2721152bb4f 100644 (file)
@@ -14,9 +14,9 @@
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * @file lib/util/hmacmd5.c
- * @brief MD5 HMAC not dependent on OpenSSL.
+/** MD5 HMAC not dependent on OpenSSL
+ *
+ * @file src/lib/util/hmacmd5.c
  *
  * @note New code that needs fast or incremental HMACs should use the OpenSSL EVP_* HMAC
  *     interface instead, as that can take advantage of acceleration instructions provided
index c093fcad9c350e228f012ec67cb9df54f7a64b9a..e57506851c31ef839ddfdb254fe1e5b897fa9799 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * @file lib/util/hmacsha1.c
- * @brief SHA1 HMAC not dependent on OpenSSL.
+/** SHA1 HMAC not dependent on OpenSSL
  *
  * @note New code that needs fast or incremental HMACs should use the OpenSSL EVP_* HMAC
  *     interface instead, as that can take advantage of acceleration instructions provided
  *     by various CPUs (and provides an incremental hashing interface).
  *
- * Adapted from hmacmd5.c (HMAC-MD5).
+ * Adapted from hmacmd5.c (HMAC-MD5).  Test cases from RFC2202.
  *
- * Test cases from RFC2202.
+ * @file src/lib/util/hmacsha1.c
  *
  * @author Michael Richardson <mcr@sandelman.ottawa.on.ca>
  *
index 3899490f7c6bf13b585d9ec9e20eaded56adc090..d10b5b8c4f8e140f51f3e5aa97040402ce489af7 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
- * @file inet.c
- * @brief Functions to parse, print, mask and retrieve IP addresses
+/** Functions for parsing, printing, masking and retrieving IP addresses
+ *
+ * @file src/lib/util/inet.c
  *
  * @author Arran Cudbard-Bell <a.cudbardb@freeradius.org>
  * @copyright 2015 Arran Cudbard-Bell <a.cudbardb@freeradius.org>
index fcff0463ea69384f288911211872062a0d18d3b6..c70f3126a4838f22bf04df335338aa979a21cc5b 100644 (file)
  *  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
-/**
- * $Id$
+/** Structures and functions for parsing, printing, masking and retrieving IP addresses
  *
- * @file lib/util/inet.h
- * @brief Structures and functions for parsing, printing, masking and retrieving IP addresses.
+ * @file src/lib/util/inet.h
  *
  * @author Arran Cudbard-Bell <a.cudbardb@freeradius.org>
  * @copyright 2015 Arran Cudbard-Bell <a.cudbardb@freeradius.org>
index eee08cc808afc284eb2226f9ce7bcae7b51cc671..937b1f73a6fadc47d470abe4e9b9f1d07f9fafbf 100644 (file)
@@ -1,12 +1,11 @@
-/**
- * $Id$
- * @file inet.c
- * @brief Bob Jenkin's random number generator
+/** Bob Jenkin's random number generator
  *
  * Bob's random number generator, ISAAC.  Public Domain.
  *
  *     http://burtleburtle.net/bob/rand/isaac.html
  *
+ * @file src/lib/util/isaac.c
+ *
  * @author Bob Jenkins.
  */
 RCSID("$Id$")
@@ -14,95 +13,98 @@ RCSID("$Id$")
 #include <freeradius-devel/util/base.h>
 
 #define RANDSIZL   (8)  /* I recommend 8 for crypto, 4 for simulations */
-#define RANDSIZ    (1<<RANDSIZL)
+#define RANDSIZ    (1 << RANDSIZL)
 
-#define ind(mm,x)  ((mm)[(x>>2)&(RANDSIZ-1)])
-#define rngstep(mix,a,b,mm,m,m2,r,x) \
+#define ind(mm,x)  ((mm)[(x >> 2) &(RANDSIZ-1)])
+#define rngstep(mix, a, b, mm, m, m2, r, x) \
 { \
-  x = *m;  \
-  a = ((a^(mix)) + *(m2++)) & 0xffffffff; \
-  *(m++) = y = (ind(mm,x) + a + b) & 0xffffffff; \
-  *(r++) = b = (ind(mm,y>>RANDSIZL) + x) & 0xffffffff; \
+       x = *m;  \
+       a = ((a^(mix)) + *(m2++)) & 0xffffffff; \
+       *(m++) = y = (ind(mm, x) + a + b) & 0xffffffff; \
+       *(r++) = b = (ind(mm, y >> RANDSIZL) + x) & 0xffffffff; \
 }
 
 void fr_isaac(fr_randctx *ctx)
 {
-   register uint32_t a,b,x,y,*m,*mm,*m2,*r,*mend;
-   mm=ctx->randmem; r=ctx->randrsl;
-   a = ctx->randa; b = (ctx->randb + (++ctx->randc)) & 0xffffffff;
-   for (m = mm, mend = m2 = m+(RANDSIZ/2); m<mend; )
-   {
-      rngstep( a<<13, a, b, mm, m, m2, r, x);
-      rngstep( a>>6 , a, b, mm, m, m2, r, x);
-      rngstep( a<<2 , a, b, mm, m, m2, r, x);
-      rngstep( a>>16, a, b, mm, m, m2, r, x);
-   }
-   for (m2 = mm; m2<mend; )
-   {
-      rngstep( a<<13, a, b, mm, m, m2, r, x);
-      rngstep( a>>6 , a, b, mm, m, m2, r, x);
-      rngstep( a<<2 , a, b, mm, m, m2, r, x);
-      rngstep( a>>16, a, b, mm, m, m2, r, x);
-   }
-   ctx->randb = b; ctx->randa = a;
+       register uint32_t a, b, x, y, *m, *mm, *m2, *r, *mend;
+
+       mm = ctx->randmem;
+       r = ctx->randrsl;
+       a = ctx->randa;
+       b = (ctx->randb + (++ctx->randc)) & 0xffffffff;
+
+       for (m = mm, mend = m2 = m + (RANDSIZ / 2); m < mend; ) {
+               rngstep(a << 13, a, b, mm, m, m2, r, x);
+               rngstep(a >> 6 , a, b, mm, m, m2, r, x);
+               rngstep(a << 2 , a, b, mm, m, m2, r, x);
+               rngstep(a >> 16, a, b, mm, m, m2, r, x);
+       }
+       for (m2 = mm; m2 < mend; ) {
+               rngstep(a << 13, a, b, mm, m, m2, r, x);
+               rngstep(a >> 6 , a, b, mm, m, m2, r, x);
+               rngstep(a << 2 , a, b, mm, m, m2, r, x);
+               rngstep(a >> 16, a, b, mm, m, m2, r, x);
+       }
+       ctx->randb = b;
+       ctx->randa = a;
 }
 
 
 #define mix(a,b,c,d,e,f,g,h) \
 { \
-   a^=b<<11; d+=a; b+=c; \
-   b^=c>>2;  e+=b; c+=d; \
-   c^=d<<8;  f+=c; d+=e; \
-   d^=e>>16; g+=d; e+=f; \
-   e^=f<<10; h+=e; f+=g; \
-   f^=g>>4;  a+=f; g+=h; \
-   g^=h<<8;  b+=g; h+=a; \
-   h^=a>>9;  c+=h; a+=b; \
+       a ^= b << 11; d += a; b += c; \
+       b ^= c >> 2;  e += b; c += d; \
+       c ^= d << 8;  f += c; d += e; \
+       d ^= e >> 16; g += d; e += f; \
+       e ^= f << 10; h += e; f += g; \
+       f ^= g >> 4;  a += f; g += h; \
+       g ^= h << 8;  b += g; h += a; \
+       h ^= a >> 9;  c += h; a += b; \
 }
 
 /* if (flag==1), then use the contents of randrsl[] to initialize mm[]. */
 void fr_randinit(fr_randctx *ctx, int flag)
 {
-  int i;
-  uint32_t a,b,c,d,e,f,g,h;
-  uint32_t *m,*r;
-  ctx->randa = ctx->randb = ctx->randc = 0;
-  m=ctx->randmem;
-  r=ctx->randrsl;
-  a=b=c=d=e=f=g=h=0x9e3779b9;  /* the golden ratio */
-
-  for (i=0; i<4; ++i) {        /* scramble it */
-    mix(a,b,c,d,e,f,g,h);
-  }
-
-  if (flag) {
-    /* initialize using the contents of r[] as the seed */
-    for (i=0; i<RANDSIZ; i+=8) {
-      a+=r[i  ]; b+=r[i+1]; c+=r[i+2]; d+=r[i+3];
-      e+=r[i+4]; f+=r[i+5]; g+=r[i+6]; h+=r[i+7];
-      mix(a,b,c,d,e,f,g,h);
-      m[i  ]=a; m[i+1]=b; m[i+2]=c; m[i+3]=d;
-      m[i+4]=e; m[i+5]=f; m[i+6]=g; m[i+7]=h;
-    }
-     /* do a second pass to make all of the seed affect all of m */
-    for (i=0; i<RANDSIZ; i+=8) {
-      a+=m[i  ]; b+=m[i+1]; c+=m[i+2]; d+=m[i+3];
-      e+=m[i+4]; f+=m[i+5]; g+=m[i+6]; h+=m[i+7];
-      mix(a,b,c,d,e,f,g,h);
-      m[i  ]=a; m[i+1]=b; m[i+2]=c; m[i+3]=d;
-      m[i+4]=e; m[i+5]=f; m[i+6]=g; m[i+7]=h;
-    }
-  } else {
-    for (i=0; i<RANDSIZ; i+=8) {
-      /* fill in mm[] with messy stuff */
-      mix(a,b,c,d,e,f,g,h);
-      m[i  ]=a; m[i+1]=b; m[i+2]=c; m[i+3]=d;
-      m[i+4]=e; m[i+5]=f; m[i+6]=g; m[i+7]=h;
-    }
-  }
-
-  fr_isaac(ctx);       /* fill in the first set of results */
-  ctx->randcnt=RANDSIZ;  /* prepare to use the first set of results */
+       int             i;
+       uint32_t        a, b, c, d, e, f, g, h;
+       uint32_t        *m, *r;
+
+       ctx->randa = ctx->randb = ctx->randc = 0;
+       m = ctx->randmem;
+       r = ctx->randrsl;
+       a = b = c = d = e = f = g = h = 0x9e3779b9;  /* the golden ratio */
+
+       /* scramble it */
+       for (i = 0; i < 4; ++i) mix(a, b, c, d, e, f, g, h);
+
+       if (flag) {
+               /* initialize using the contents of r[] as the seed */
+               for (i = 0; i < RANDSIZ; i += 8) {
+                       a += r[i    ]; b += r[i + 1]; c +=r [i + 2]; d += r[i + 3];
+                       e += r[i + 4]; f += r[i + 5]; g +=r [i + 6]; h += r[i + 7];
+                       mix(a, b, c, d, e, f, g, h);
+                       m[i    ] = a; m[i + 1] = b; m[i + 2] = c; m[i + 3] = d;
+                       m[i + 4] = e; m[i + 5] = f; m[i + 6] = g; m[i + 7] = h;
+               }
+               /* do a second pass to make all of the seed affect all of m */
+               for (i = 0; i < RANDSIZ; i += 8) {
+                       a += m[i    ]; b += m[i + 1]; c += m[i + 2]; d += m[i + 3];
+                       e += m[i + 4]; f += m[i + 5]; g += m[i + 6]; h += m[i + 7];
+                       mix(a, b, c, d, e, f, g, h);
+                       m[i    ] = a; m[i + 1] = b; m[i + 2] = c; m[i + 3] = d;
+                       m[i + 4] = e; m[i + 5] = f; m[i + 6] = g; m[i + 7] = h;
+               }
+       } else {
+               for (i = 0; i < RANDSIZ; i += 8) {
+                       /* fill in mm[] with messy stuff */
+                       mix(a, b, c, d, e, f, g, h);
+                       m[i    ] = a; m[i + 1] = b; m[i + 2] = c; m[i + 3] = d;
+                       m[i + 4] = e; m[i + 5] = f; m[i + 6] = g; m[i + 7] = h;
+               }
+       }
+
+       fr_isaac(ctx);       /* fill in the first set of results */
+       ctx->randcnt = RANDSIZ;  /* prepare to use the first set of results */
 }
 
 
@@ -114,19 +116,20 @@ void fr_randinit(fr_randctx *ctx, int flag)
  */
 int main()
 {
-  uint32_t i,j;
-  fr_randctx ctx;
-
-  ctx.randa = ctx.randb = ctx.randc = (uint32_t)0;
-
-  for (i=0; i<256; ++i) ctx.randrsl[i]=(uint32_t)0;
-  fr_randinit(&ctx, 1);
-  for (i=0; i<2; ++i) {
-    fr_isaac(&ctx);
-    for (j=0; j<256; ++j) {
-      printf("%.8lx",ctx.randrsl[j]);
-      if ((j&7)==7) printf("\n");
-    }
-  }
+       uint32_t        i,j;
+       fr_randctx      ctx;
+
+       ctx.randa = ctx.randb = ctx.randc = (uint32_t)0;
+
+       for (i = 0; i < 256; ++i) ctx.randrsl[i] = (uint32_t)0;
+
+       fr_randinit(&ctx, 1);
+       for (i = 0; i < 2; ++i) {
+               fr_isaac(&ctx);
+               for (j = 0; j < 256; ++j) {
+                       printf("%.8lx",ctx.randrsl[j]);
+                       if ((j & 7) == 7) printf("\n");
+               }
+       }
 }
 #endif
index bc9403375a36e6e38215195d0d9b9098c63ac402..30c2830b07a6dcf0f49500c889556b5c5069580f 100644 (file)
@@ -14,9 +14,9 @@
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * @file lib/util/log.c
- * @brief Support functions for logging in FreeRADIUS libraries.
+/** Support functions for logging in FreeRADIUS libraries
+ *
+ * @file src/lib/util/log.c
  *
  * @copyright 2003,2006  The FreeRADIUS server project
  */
index e676990476c2b5439ecda77fbb4d79f76b307859..042bec6fb6a1d985a395dffe2719e5deadf39b48 100644 (file)
 
 #include <freeradius-devel/util/token.h>
 
-/**
- * $Id$
+/** libfreeradius logging functions
  *
- * @file lib/util/log.h
- * @brief libfreeradius logging functions
+ * @file src/lib/util/log.h
  *
  * @copyright 2016  The FreeRADIUS server project
  */
-
 extern FILE    *fr_log_fp;
 
 /*
index d88d9d9b1fae13389c16e711565628aa2a169c96..8f805fe2d513af94d1a61cd4ddfcffae3c23bf0d 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Integration with the leak sanitizer interface
  *
- * @file lib/util/lsan.h
- * @brief Integration with the leak sanitizer interface
+ * @file src/lib/util/lsan.h
  *
  * @copyright 2018 The FreeRADIUS server project
  */
index 8e2d57bef5c30af002bba3b74e6a206dade0734a..a87ec27cf6efadbd5eeef275f26cdbc10d1d53d2 100644 (file)
@@ -1,10 +1,8 @@
-/**
- * $Id$
+/** A local MD4 implementation
  *
  * @note license is LGPL, but largely derived from a public domain source.
  *
- * @file md4.c
- * @brief md4 digest functions.
+ * @file src/lib/util/md4.c
  */
 RCSID("$Id$")
 
index c528fe1af6e77f2668038955a1250d849e14e562..595e47ad154a2c126b67d82daa4cc3646a9ace20 100644 (file)
@@ -1,10 +1,9 @@
 #pragma once
-/**
- * $Id$
+/** Structures and prototypes for our local MD4 implementation
  *
  * @note license is LGPL, but largely derived from a public domain source.
  *
- * @file lib/util/md4.h
+ * @file src/lib/util/md4.h
  * @brief Structures and prototypes for md4.
  */
 RCSIDH(md4_h, "$Id$")
index a2fcbf7f9758255b7c2ef0cc34686bd52a61c34b..9640725707a0eba2798bb6439dc5e6134e37e43d 100644 (file)
@@ -1,12 +1,9 @@
-/**
- * $Id$
+/** A local MD5 implementation
  *
  * @note license is LGPL, but largely derived from a public domain source.
  *
- * @file md5.c
- * @brief md5 digest functions.
+ * @file src/lib/util/md5.c
  */
-
 RCSID("$Id$")
 
 #include <freeradius-devel/util/base.h>
index c889df92b53626a2e1de60f24aaa920de592a7ba..fd9b37daf2f0ccce2d1949601dd4ec568bb04621 100644 (file)
@@ -1,11 +1,9 @@
 #pragma once
-/**
- * $Id$
+/** Structures and prototypes for our local MD5 implementation
  *
  * @note license is LGPL, but largely derived from a public domain source.
  *
- * @file lib/util/md5.h
- * @brief Structures and prototypes for md5.
+ * @file src/lib/util/md5.h
  */
 RCSIDH(md5_h, "$Id$")
 
index 300eb913efa614caef15df77c3047376bddb18d4..772d1c3f0c6cfe6d0c65811cccd43ac8ff408e86 100644 (file)
@@ -1,8 +1,4 @@
 /*
- * mem.c       RADIUS_PACKET alloc/free
- *
- * Version:    $Id$
- *
  *   This library is free software; you can redistribute it and/or
  *   modify it under the terms of the GNU Lesser General Public
  *   License as published by the Free Software Foundation; either
  *   You should have received a copy of the GNU Lesser General Public
  *   License along with this library; if not, write to the Free Software
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+/** RADIUS_PACKET alloc/free functions
+ *
+ * @file src/lib/util/mem.c
  *
  * @copyright 2000,2006  The FreeRADIUS server project
  */
-
 RCSID("$Id$")
 
 #include <freeradius-devel/util/base.h>
index 5d17404a6fe45692a1bf0d6bee7cd2b31437da80..4e9ccf0dc83d3c9f10fd2afc44428d3c8fcfc926 100644 (file)
@@ -1,8 +1,4 @@
 /*
- * misc.c      Various miscellaneous functions.
- *
- * Version:    $Id$
- *
  *   This library is free software; you can redistribute it and/or
  *   modify it under the terms of the GNU Lesser General Public
  *   License as published by the Free Software Foundation; either
  *   You should have received a copy of the GNU Lesser General Public
  *   License along with this library; if not, write to the Free Software
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+/** Various miscellaneous utility functions
+ *
+ * @file src/lib/util/misc.c
  *
  * @copyright 2000,2006  The FreeRADIUS server project
  */
-
 RCSID("$Id$")
 
 #include <freeradius-devel/util/base.h>
index 0bb13553f1630cfc503c2b24c83326c256338ba9..a5b4c0eee14937774f551f7b3c39ae1e44281bc0 100644 (file)
@@ -1,9 +1,4 @@
 /*
- * missing.c   Replacements for functions that are or can be
- *             missing on some platforms.
- *
- * Version:    $Id$
- *
  *   This library is free software; you can redistribute it and/or
  *   modify it under the terms of the GNU Lesser General Public
  *   License as published by the Free Software Foundation; either
  *   You should have received a copy of the GNU Lesser General Public
  *   License along with this library; if not, write to the Free Software
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+/** Replacements for functions that are or can be missing on some platforms
+ *
+ * @file src/lib/util/missing.c
  *
  * @copyright 2000,2006  The FreeRADIUS server project
  */
-
 RCSID("$Id$")
 
 #include <freeradius-devel/util/base.h>
index 02735bb7bac0e0d5729dfa4054a54167c111f1c0..5209e90679310e031fbeef176bea2d1a4d74cf6a 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
- * @file net.c
- * @brief Functions to parse raw packets.
+/** Functions for parsing raw network packets
+ *
+ * @file src/lib/util/net.c
  *
  * @author Arran Cudbard-Bell <a.cudbardb@freeradius.org>
  * @copyright 2014-2015 Arran Cudbard-Bell <a.cudbardb@freeradius.org>
index ce8a3ae89634cb2b2791260c6e37726ad2757f4b..7bcd267d4587e663f480221b6b6feb3bf8421ca7 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Structures and functions for parsing raw network packets
  *
- * @file lib/util/net.h
- * @brief Structures and functions for parsing raw network packets.
+ * @file src/lib/util/net.h
  *
  * @author Arran Cudbard-Bell <a.cudbardb@freeradius.org>
  * @copyright 2014 Arran Cudbard-Bell <a.cudbardb@freeradius.org>
index a6ada82186a3eaccac8ce3ec3bf2df2172efcceb..52dda5cecae74a2450d8e19bee56be045308d1de 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Structures and functions for packet manipulation
  *
- * @file lib/util/packet.h
- * @brief Structures and functions for packet manipulation
+ * @file src/lib/util/packet.h
  *
  * @copyright 2001, 2002, 2003, 2004, 2005, 2006 The FreeRADIUS server project
  */
index a54c1ade337f9b20193adee690f31218074aa94d..e6645956e9c7215f511c18b459ac122263085b37 100644 (file)
@@ -1,8 +1,4 @@
 /*
- * pair.c      Functions to handle VALUE_PAIRs
- *
- * Version:    $Id$
- *
  *   This library is free software; you can redistribute it and/or
  *   modify it under the terms of the GNU Lesser General Public
  *   License as published by the Free Software Foundation; either
  *   You should have received a copy of the GNU Lesser General Public
  *   License along with this library; if not, write to the Free Software
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
- *
- * @copyright 2000,2006  The FreeRADIUS server project
  */
 
+/** AVP manipulation and search API
+ *
+ * @file src/lib/util/pair.c
+ *
+ * @copyright 2000,2006,2015 The FreeRADIUS server project
+ */
 RCSID("$Id$")
 
 #include <freeradius-devel/util/base.h>
index 739bc981f1054617c8785dca5953d294a0fb83c0..86cc563f5d70f1fe8dba4416801ce863593347bf 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** AVP manipulation and search API
  *
- * @file lib/util/pair.h
- * @brief AVP manipulation and search API.
+ * @file src/lib/util/pair.h
  *
  * @copyright 2015 The FreeRADIUS server project
  */
index ee6e28f5e2762ff216f0e8ba87cb74803dbd8ae7..9921ae7ef66b71cd397385336e9a78a53e738208 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
- *
- * @file lib/util/cursor.c
- * @brief Functions to iterate over collections of VALUE_PAIRs
+/** Functions to iterate over collections of VALUE_PAIRs
  *
  * @note Do not modify collections of VALUE_PAIRs pointed to by a cursor
  *      with none fr_pair_cursor_* functions, during the lifetime of that cursor.
  *
+ * @file src/lib/util/pair_cursor.c
+ *
  * @author Arran Cudbard-Bell <a.cudbardb@freeradius.org>
  * @copyright 2013-2015 Arran Cudbard-Bell <a.cudbardb@freeradius.org>
  * @copyright 2013-2015 The FreeRADIUS Server Project.
index c863fbc87def61fe9ef2b9abfbcd2e94e64db3fe..82659ceaeb6e98b8254c94b70004485e1cf9398f 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Functions to iterate over collections of VALUE_PAIRs
  *
- * @file lib/util/cursor.h
- * @brief Generic linked list cursor.
+ * @file src/lib/util/pair_cursor.h
  *
  * @copyright 2016  The FreeRADIUS server project
  */
index 2579435ff8998e548ebb2b9832233c440bd1b4c1..50e2e5b4ed4ed2996e93a89bc6f84432752d7c50 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
- * @file lib/util/pcap.c
- * @brief Wrappers around libpcap functions
+/** Wrappers around libpcap functions
+ *
+ * @file src/lib/util/pcap.c
  *
  * @author Arran Cudbard-Bell <a.cudbardb@freeradius.org>
  * @copyright 2013 Arran Cudbard-Bell <a.cudbardb@freeradius.org>
index 3c01efa9bd78ff0534b016efd0192d49a2f8e53f..9c03a3fbb05d8e67fc9688d73e4c12f4e3b31068 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 #ifdef HAVE_LIBPCAP
-/**
- * $Id$
+/** Prototypes and constants for PCAP functions
  *
- * @file lib/util/pcap.h
- * @brief Prototypes and constants for PCAP functions.
+ * @file src/lib/util/pcap.h
  *
  * @author Arran Cudbard-Bell <a.cudbardb@freeradius.org>
  * @copyright 2013 Arran Cudbard-Bell <a.cudbardb@freeradius.org>
index 0c410b0820f7ac533d3244f2aa9d36f8c3f222db..7eace77c503827e5f803ad1f5ed722a06897a60f 100644 (file)
@@ -1,8 +1,4 @@
 /*
- * print.c     Routines to print stuff.
- *
- * Version:    $Id$
- *
  *   This library is free software; you can redistribute it and/or
  *   modify it under the terms of the GNU Lesser General Public
  *   License as published by the Free Software Foundation; either
  *   You should have received a copy of the GNU Lesser General Public
  *   License along with this library; if not, write to the Free Software
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+/** Functions to produce and parse the FreeRADIUS presentation format
+ *
+ * @file src/lib/util/print.c
  *
  * @copyright 2000,2006  The FreeRADIUS server project
  */
-
 RCSID("$Id$")
 
 #include       <freeradius-devel/util/base.h>
-
 #include       <ctype.h>
 
 /** Checks for utf-8, taken from http://www.w3.org/International/questions/qa-forms-utf-8
index a554b344ae3f75dc025db79d003a89490ae94e63..c9d93e6896e28d379a0e2192cb9b61b261856eec 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Protocol encoder/decoder support functions
  *
- * @file proto.c
- * @brief functions common to protocol encoders/decoders.
+ * @file src/lib/util/proto.c
  *
  * @copyright 2015 The FreeRADIUS server project
  */
index a6eebb97353ac041985514f9754efe1fb7611f25..d6bf70ed1940ea5f957bea3f4aaf3b57973c6152 100644 (file)
@@ -1,25 +1,23 @@
 #pragma once
 /*
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
+ *   This program is free software; you can redistribute it and/or modify
+ *   it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation; either version 2 of the License, or
+ *   (at your option) any later version.
  *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
+ *   This program is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
  *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ *   You should have received a copy of the GNU General Public License
+ *   along with this program; if not, write to the Free Software
+ *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Protocol encoder/decoder support functions
  *
- * @file lib/util/proto.h
- * @brief Protocol encoder/decoder support functions
+ * @file src/lib/util/proto.h
  *
  * @copyright 2015 The FreeRADIUS server project
  */
index b8ff10c0d25a30b84bcf57a97a32ab78bd5a496a..5285575d09b4e949e422e30544fb195876819df0 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Functions to get randomness
  *
- * @file rand.c
- * @brief Functions to get randomness
+ * @file src/lib/util/rand.c
  *
- * @copyright 1999-2017  The FreeRADIUS server project
+ * @copyright 1999-2017 The FreeRADIUS server project
  */
-
 RCSID("$Id$")
 
 #include <freeradius-devel/util/base.h>
@@ -32,7 +29,6 @@ RCSID("$Id$")
 static _Thread_local fr_randctx fr_rand_pool;          //!< A pool of pre-generated random integers
 static _Thread_local bool fr_rand_initialized = false;
 
-
 /** Seed the random number generator
  *
  * May be called any number of times.
index b5bb0ef83545a302f0bfb173fc859fcaccc84758..8cbb26e1a5eafac771b533e49f9fcdcb9788472d 100644 (file)
@@ -1,8 +1,4 @@
 /*
- * rbtree.c    RED-BLACK balanced binary trees.
- *
- * Version:    $Id$
- *
  *   This program is free software; you can redistribute it and/or modify
  *   it under the terms of the GNU General Public License as published by
  *   the Free Software Foundation; either version 2.1 of the License, or
  *   You should have received a copy of the GNU General Public License
  *   along with this program; if not, write to the Free Software
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
- *
- *  @copyright 2004,2006  The FreeRADIUS server project
  */
 
+/** Red/black tree implementation
+ *
+ * @file src/lib/util/rbtree.c
+ *
+ * @copyright 2004,2006  The FreeRADIUS server project
+ */
 RCSID("$Id$")
 
 #include <freeradius-devel/util/rbtree.h>
index 031adfdea0e1f5e9b37a96af90424cab48d7099f..497cef7961635a04e69dc9dc0a2cc65cb580315d 100644 (file)
@@ -1,25 +1,23 @@
 #pragma once
 /*
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
+ *   This program is free software; you can redistribute it and/or modify
+ *   it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation; either version 2 of the License, or
+ *   (at your option) any later version.
  *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
+ *   This program is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
  *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ *   You should have received a copy of the GNU General Public License
+ *   along with this program; if not, write to the Free Software
+ *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Red/black tree implementation
  *
- * @file lib/util/rbtree.h
- * @brief Red/black tree implementation
+ * @file src/lib/util/rbtree.h
  *
  * @copyright 2016 The FreeRADIUS server project
  */
index 4738abd8e36a763fb6793de0db781b0fbc1601a5..745631868c508bda8ce3121bf997c28fd6a68ad2 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * @file lib/util/regex.c
- * @brief regex abstraction functions
+/** Wrappers around various regular expression libraries
+ *
+ * @file src/lib/util/regex.c
  *
  * @copyright 2014  The FreeRADIUS server project
  * @copyright 2014  Arran Cudbard-Bell <a.cudbardb@freeradius.org>
  */
+RCSID("$Id$")
 
 #ifdef HAVE_REGEX
 #include <freeradius-devel/util/base.h>
index 3d244bf0e122041f9c5d84b41f26cc044eca7687..94844d8f9222682b55b6fd257647e167d30055bb 100644 (file)
@@ -1,25 +1,23 @@
 #pragma once
 /*
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
+ *   This program is free software; you can redistribute it and/or modify
+ *   it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation; either version 2 of the License, or
+ *   (at your option) any later version.
  *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
+ *   This program is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
  *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ *   You should have received a copy of the GNU General Public License
+ *   along with this program; if not, write to the Free Software
+ *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 #ifdef HAVE_REGEX
-/**
- * $Id$
+/** Wrappers around various regular expression libraries
  *
- * @file lib/util/regex.h
- * @brief Wrappers around various regular expression libraries.
+ * @file src/lib/util/regex.h
  *
  * @copyright 2014 The FreeRADIUS server project
  */
index b07304d477a5b3be6fc3dea9fca313363965055a..873b48b8c5577a3bb9149cc71aa01f65a9bd75b0 100644 (file)
@@ -1,11 +1,11 @@
-/*
- *  SHA-1 in C
- *  By Steve Reid <steve@edmweb.com>
- *  100% Public Domain
+/** Local implementation of the SHA1 hashing scheme
  *
- *  Version:   $Id$
+ * SHA-1 in C 100% Public Domain
+ *
+ * @file src/lib/util/sha1.c
+ *
+ * @author Steve Reid <steve@edmweb.com>
  */
-
 RCSID("$Id$")
 
 #include <freeradius-devel/util/base.h>
index 30f29a48f007488328c25137ae8e8ca5c4476d5d..752093bee99268da28cd7ddc5eafab85d0787ade 100644 (file)
@@ -1,9 +1,11 @@
 #pragma once
-/**
- * $Id$
+/** Local implementation of the SHA1 hashing scheme
  *
- * @file lib/util/sha1.h
- * @brief Local implementation of the SHA1 hashing scheme.
+ * SHA-1 in C 100% Public Domain
+ *
+ * @file src/lib/util/sha1.h
+ *
+ * @author Steve Reid <steve@edmweb.com>
  */
 #ifdef WITH_OPENSSL_SHA1
 #  include <openssl/sha.h>
index 44a5313df9b82f294ee147ea727cf4d4bdd6424c..ceee19161f7e5520e3f5a92a1e39e96fabf7e2e1 100644 (file)
@@ -1,53 +1,56 @@
-
 /*
-        Unix snprintf implementation.
-        Version 1.4
-
-        This program is free software; you can redistribute it and/or modify
-        it under the terms of the GNU Library General Public License as published by
-        the Free Software Foundation; either version 2 of the License, or
-        (at your option) any later version.
-
-        This program is distributed in the hope that it will be useful,
-        but WITHOUT ANY WARRANTY; without even the implied warranty of
-        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.   See the
-        GNU Library General Public License for more details.
-
-        You should have received a copy of the GNU Library General Public License
-        along with this program; if not, write to the Free Software
-        Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-        Revision History:
-
-        1.4:
-                       *       integrate in FreeRADIUS's libradius:
-               *       Fetched from: http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailutils/lib/snprintf.c?rev=1.4
-               *       Fetched from: http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailutils/lib/snprintf.h?rev=1.4
-               *       Replace config.h with autoconf.h
-               *       Protect with HAVE_SNPRINTF and HAVE_VSNPRINTF
-        1.3:
-                       *       add #include <config.h> ifdef HAVE_CONFIG_H
-                       *       cosmetic change, when exponent is 0 print xxxE+00
-        instead of xxxE-00
-        1.2:
-                       *       put the program under LGPL.
-        1.1:
-                       *       added changes from Miles Bader
-                       *       corrected a bug with %f
-                       *       added support for %#g
-                       *       added more comments :-)
-        1.0:
-                       *       supporting must ANSI syntaxic_sugars
-        0.0:
-                       *       suppot %s %c %d
-
- THANKS(for the patches and ideas):
-                Miles Bader
-                Cyrille Rustom
-                Jacek Slabocewiz
-                Mike Parker(mouse)
+ *   This program is is free software; you can redistribute it and/or modify
+ *   it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation; either version 2 of the License, or (at
+ *   your option) any later version.
+ *
+ *   This program is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
+ *
+ *   You should have received a copy of the GNU General Public License
+ *   along with this program; if not, write to the Free Software
+ *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
 
-*/
+/** Unix snprintf implementation
+ *
+ * Version 1.4
+ *
+ *      1.4:
+ *             *       integrate in FreeRADIUS's libradius:
+ *             *       Fetched from: http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailutils/lib/snprintf.c?rev=1.4
+ *             *       Fetched from: http://savannah.gnu.org/cgi-bin/viewcvs/mailutils/mailutils/lib/snprintf.h?rev=1.4
+ *             *       Replace config.h with autoconf.h
+ *             *       Protect with HAVE_SNPRINTF and HAVE_VSNPRINTF
+ *      1.3:
+ *             *       add #include <config.h> ifdef HAVE_CONFIG_H
+ *             *       cosmetic change, when exponent is 0 print xxxE+00
+ *      instead of xxxE-00
+ *      1.2:
+ *             *       put the program under LGPL.
+ *
+ *      1.1:
+ *             *       added changes from Miles Bader
+ *             *       corrected a bug with %f
+ *             *       added support for %#g
+ *             *       added more comments :-)
+ *      1.0:
+ *             *       supporting must ANSI syntaxic_sugars
+ *      0.0:
+ *             *       suppot %s %c %d
+ *
+ * THANKS(for the patches and ideas):
+ *              Miles Bader
+ *              Cyrille Rustom
+ *              Jacek Slabocewiz
+ *              Mike Parker(mouse)
+ *
+ * @file src/lib/util/snprintf.h
+ *
+ * @copyright Alain Magloire: alainm@rcsm.ee.mcgill.ca
+ */
 
 RCSID("$Id$")
 
index c3f616dea58cdd136d0582a6ebf67bb0fdbcdd3c..2ac0a964986a9524ed2f1ab56b4ee5f7ec2f72b8 100644 (file)
@@ -1,40 +1,33 @@
 /*
- Unix snprintf implementation.
- Version 1.4
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU Library General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU Library General Public License for more details.
-
-   You should have received a copy of the GNU Library General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-   Revision History:
-                  see header of snprintf.c.
-
-format:
-  int snprintf(holder, sizeof_holder, format, ...)
-
-Return values:
-  (sizeof_holder - 1)
-
-
- THANKS(for the patches and ideas):
-     Miles Bader
-     Cyrille Rustom
-     Jacek Slabocewiz
-     Mike Parker(mouse)
-
-Alain Magloire: alainm@rcsm.ee.mcgill.ca
-*/
+ *   This program is is free software; you can redistribute it and/or modify
+ *   it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation; either version 2 of the License, or (at
+ *   your option) any later version.
+ *
+ *   This program is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *   GNU General Public License for more details.
+ *
+ *   You should have received a copy of the GNU General Public License
+ *   along with this program; if not, write to the Free Software
+ *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
 
+/** Unix snprintf implementation
+ *
+ * Version 1.4
+ *
+ * THANKS(for the patches and ideas):
+ *    Miles Bader
+ *    Cyrille Rustom
+ *    Jacek Slabocewiz
+ *    Mike Parker(mouse)
+ *
+ * @file src/lib/util/snprintf.h
+ *
+ * @copyright Alain Magloire: alainm@rcsm.ee.mcgill.ca
+ */
 #ifndef HAVE_VSNPRINTF
 
 RCSIDH(snprintf_h, "$Id$")
index 0cf46f456d1207fcace5bc2afd9083bbdbb7a520..5d5f569221d647c999e1a479a93d5cb6e51dfaa0 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
- * @file socket.c
- * @brief Functions for establishing and managing low level sockets.
+/** Functions for establishing and managing low level sockets
+ *
+ * @file src/lib/util/socket.c
  *
  * @author Arran Cudbard-Bell <a.cudbardb@freeradius.org>
  * @author Alan DeKok <aland@freeradius.org>
index 4d2e9f441ebe7d9b5e3adbee8be10a3ae3c4f464..c285bc88a2c246db7dc388932edd60dbb59a37e3 100644 (file)
@@ -14,9 +14,9 @@
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * @file lib/util/strerror.c
- * @brief Support functions to allow libraries to provide errors to their callers.
+/** Support functions to allow libraries to provide errors to their callers
+ *
+ * @file src/lib/util/strerror.c
  *
  * @copyright 2017 The FreeRADIUS server project
  * @copyright 2017 Arran Cudbard-Bell <a.cudbardb@freeradius.org>
index 847d6880c4d29344287402bfac0606f901f026a8..c6f7788fb558de5c2d71eeb757b4a5e72ee5d083 100644 (file)
@@ -1,28 +1,23 @@
 /*
- *  strlcat.c  Concatenate strings.
- *
- *  Version:   $Id$
+ *   Permission to use, copy, modify, and distribute this software for any
+ *   purpose with or without fee is hereby granted, provided that the above
+ *   copyright notice and this permission notice appear in all copies.
  *
+ *   THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ *   WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ *   MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ *   ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ *   WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ *   ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ *   OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/*
- * @copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
+/** Implementation of the strlcat function
  *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
+ * @file src/lib/util/strlcat.c
  *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * @copyright 2006  The FreeRADIUS server project
+ * @copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
  */
-
 RCSID("$Id$")
 
 #ifndef HAVE_STRLCAT
index 341a8a9a70ae46e4dc7682e6c77b7cda45270329..ccd950af727b2508c05eaf1911c44add3dc92347 100644 (file)
@@ -1,28 +1,23 @@
 /*
- *  strlcpy.c  Copy strings.
- *
- *  Version:   $Id$
+ *   Permission to use, copy, modify, and distribute this software for any
+ *   purpose with or without fee is hereby granted, provided that the above
+ *   copyright notice and this permission notice appear in all copies.
  *
+ *   THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ *   WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ *   MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ *   ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ *   WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ *   ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ *   OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/*
- * @copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
+/** Local implementation of the strlcpy function
  *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
+ * @file src/lib/util/strlcpy.c
  *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * @copyright 2006  The FreeRADIUS server project
+ * @copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
  */
-
 RCSID("$Id$")
 
 #ifndef HAVE_STRLCPY
index f2d78169f0b4a113d3a06bb949867b5ea575c25c..05584d795e225796dc32c8ff9ca10668a6e17995 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * @file lib/util/syserror.c
- * @brief Support functions to allow libraries to get system errors in a threadsafe
- *     and easily debuggable way.
+/** Support functions to allow libraries to get system errors in a threadsafe and easily debuggable way
+ *
+ * @file src/lib/util/syserror.c
  *
  * @copyright 2017 The FreeRADIUS server project
  * @copyright 2017 Arran Cudbard-Bell <a.cudbardb@freeradius.org>
index 134ef52726817c512a32d7685dc421d18f8ce4aa..e6d8aad965242d35bfb2afcea4849fd1f331ef0a 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * @file lib/util/talloc.c
- * @brief Functions which we wish were included in the standard talloc distribution.
+/** Functions which we wish were included in the standard talloc distribution
+ *
+ * @file src/lib/util/talloc.c
  *
  * @copyright 2017 The FreeRADIUS server project
  * @copyright 2017 Arran Cudbard-Bell <a.cudbardb@freeradius.org>
  */
-
 RCSID("$Id$")
 
 #include <freeradius-devel/util/talloc.h>
index 5446185aa9aaedbc22aa4767bda199b15945152c..922cbf982924a93e220a9c943d8800202d5d6db5 100644 (file)
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
+
+/** Functions which we wish were included in the standard talloc distribution
+ *
+ * @file src/lib/util/talloc.h
+ *
+ * @copyright 2017 The FreeRADIUS server project
+ * @copyright 2017 Arran Cudbard-Bell <a.cudbardb@freeradius.org>
+ */
 #include <talloc.h>
 #include <stdbool.h>
 #include <stdint.h>
index fff2f1390b7f0c00d89a0021937d88dfeb2948a3..cd089bb5ac80b790a89853477eb1970263b55c93 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Macros to abstract Thread Local Storage
+ *
+ * Simplifies creating destructors, called when the thread exits
  *
  * @file lib/util/threads.h
- * @brief Macros to abstract Thread Local Storage
  *
  * @copyright 2013-2016 The FreeRADIUS server project
  */
index 9adaac8d6021a78255c9333dc3724d61c42d843d..ad33a3c3d4acb7f3afa4c56290bb992de39971e4 100644 (file)
@@ -1,9 +1,4 @@
 /*
- * token.c     Read the next token from a string.
- *             Yes it's pretty primitive but effective.
- *
- * Version:    $Id$
- *
  *   This library is free software; you can redistribute it and/or
  *   modify it under the terms of the GNU Lesser General Public
  *   License as published by the Free Software Foundation; either
  *   You should have received a copy of the GNU Lesser General Public
  *   License along with this library; if not, write to the Free Software
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
- *
- * @copyright 2000,2006  The FreeRADIUS server project
  */
 
+/** Tokenisation code and constants
+ *
+ * This is mostly for the attribute filter and user files.
+ *
+ * @file src/lib/util/token.c
+ *
+ * @copyright 2001,2006  The FreeRADIUS server project
+ */
 RCSID("$Id$")
 
 #include <freeradius-devel/util/base.h>
index cb6b24603ddaf16529e532f6879d0ed710e5b896..2fef91dccc924a1e13a6ca8693e1d484f4e8a32d 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Tokenisation code and constants
  *
- * @file lib/util/token.h
- * @brief Tokenisation code and constants.
+ * This is mostly for the attribute filter and user files.
+ *
+ * @file src/lib/util/token.h
  *
  * @copyright 2001,2006  The FreeRADIUS server project
  */
index d1b9467e86e4e8c107e3ba4a8340db82d112897f..2dddb6219e460eb59f869504a8e7e46d93e94fc0 100644 (file)
@@ -1,8 +1,4 @@
 /*
- * trie.c      Path-compressed tries
- *
- * Version:    $Id$
- *
  *   This library is free software; you can redistribute it and/or
  *   modify it under the terms of the GNU Lesser General Public
  *   License as published by the Free Software Foundation; either
  *   You should have received a copy of the GNU Lesser General Public
  *   License along with this library; if not, write to the Free Software
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+/** Path-compressed prefix tries
+ *
+ * @file src/lib/util/trie.c
  *
  * @copyright 2017 Alan DeKok <aland@freeradius.org>
  */
-
 RCSID("$Id$")
 
-
 #include <freeradius-devel/util/trie.h>
 #include <freeradius-devel/util/dict.h>
 #include <freeradius-devel/util/talloc.h>
-#ifdef TESTING
 #include <freeradius-devel/server/rad_assert.h>
-#else
-#define rad_assert(_x)
-#endif
+
 #include <string.h>
 #include <ctype.h>
 #include <errno.h>
index cded67dff8e4166cb570bf3dd1f71a61a6573e4b..3329fc819dee67057ab247f644911c2a4d69b54f 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Path-compressed prefix tries
  *
- * @file lib/util/trie.h
- * @brief Prefix trie.
+ * @file src/lib/util/trie.h
  *
  * @copyright 2017 Alan DeKok <aland@freeradius.org>
  */
index c908538217d33ed117c78f239ccb5cfd5819cd21..b1d6b7ac4ccb76e954c644fcc6ed9dbb1a879ab7 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Types of values contained within an #fr_value_box_t
  *
- * @file lib/util/types.h
- * @brief #fr_value_box_t types
+ * These are in a separate header file to avoid circular dependencies.
+ *
+ * @file src/lib/util/types.h
  *
  * @copyright 2017  The FreeRADIUS server project
  */
index c7e63f5ce04ca0c74a6800959adeb1ec1e09bad1..6822f384a5d0acec55663379f88b759e0567bb11 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Utility functions for managing UDP sockets
  *
- * @file util/udp.c
- * @brief Functions to send/receive UDP packets.
+ * @file src/lib/util/udp.c
  *
  * @copyright 2000-2003,2006  The FreeRADIUS server project
  */
-
 RCSID("$Id$")
 
 #include <freeradius-devel/util/udp.h>
index db55afb91f8dafe486f3aaef5a224d574cd1ef8a..6999b31e1ebbf9eee0d00b297abf3bf5ec03825b 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Utility functions for managing UDP sockets
  *
- * @file lib/util/udp.h
- * @brief Abstraction API for sending and receiving packets on UDP sockets.
+ * @file src/lib/util/udp.h
  *
  * @copyright 2015  The FreeRADIUS server project
  */
index e6939fe1f4880daa4811dd002b88ba565f7e5560..57234fca202c604a290c40faea12429645f013a2 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
- * @file udpfromto.c
- * @brief Like recvfrom, but also stores the destination IP address. Useful on multihomed hosts.
+/** API for sending and receiving packets on unconnected UDP sockets
+ *
+ * Like recvfrom, but also stores the destination IP address. Useful on multihomed hosts.
+ *
+ * @file src/lib/util/udpfromto.c
  *
  * @copyright 2007 Alan DeKok <aland@deployingradius.com>
  * @copyright 2002 Miquel van Smoorenburg
index 1448d24c1fc8e1d0671b125d695f1eec51d88490..184bb74232b202306edd769e48ec7b3f6d7c9195 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** API for sending and receiving packets on unconnected UDP sockets
  *
- * @file lib/util/udpfromto.h
- * @brief Abstract API for sending and receiving packets on unconnected UDP sockets.
+ * Like recvfrom, but also stores the destination IP address. Useful on multihomed hosts.
+ *
+ * @file src/lib/util/udpfromto.h
  *
  * @copyright 2015  The FreeRADIUS server project
  */
index a9166dffd8fcefd55d700c6c2ff0a5cbd85d75e7..4545c75279ac6d477be4d7ea2509845eeb944704 100644 (file)
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
- * @file value.c
- * @brief Manipulate boxed values representing all internal data types.
+/** Boxed value structures and functions to manipulate them
+ *
+ * @file src/lib/util/value.c
  *
  * There are three notional data formats used in the server:
  *
index 592995c29ebfb167b450a6863a72e60191e3b3af..31ae26da0d0d4d56dab9e7566822b3033e51317a 100644 (file)
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Boxed value structures and functions to manipulate them
  *
- * @file lib/util/value.h
- * @brief Boxed values and functions to manipulate them.
+ * @file src/lib/util/value.h
  *
  * @copyright 2015-2018 Arran Cudbard-Bell (a.cudbardb@freeradius.org)
  */
index c6c5257b9a85a4130954d2ed3c2c2c4141721aa2..ae8419e2513c35e16aa692ae99651453bf36bff7 100644 (file)
@@ -1,25 +1,26 @@
 /*
- * version.c   Validate application and library magic numbers.
+ *   This library is free software; you can redistribute it and/or
+ *   modify it under the terms of the GNU Lesser General Public
+ *   License as published by the Free Software Foundation; either
+ *   version 2.1 of the License, or (at your option) any later version.
  *
- * Version:    $Id$
- *
- *   This program is free software; you can redistribute it and/or modify
- *   it under the terms of the GNU General Public License as published by
- *   the Free Software Foundation; either version 2 of the License, or
- *   (at your option) any later version.
- *
- *   This program is distributed in the hope that it will be useful,
+ *   This library is distributed in the hope that it will be useful,
  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *   GNU General Public License for more details.
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ *   Lesser General Public License for more details.
  *
- *   You should have received a copy of the GNU General Public License
- *   along with this program; if not, write to the Free Software
+ *   You should have received a copy of the GNU Lesser General Public
+ *   License along with this library; if not, write to the Free Software
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
- *
- * @copyright 1999-2014  The FreeRADIUS server project
  */
 
+/**  Validate application and library magic numbers
+ *
+ * @file src/lib/util/version.c
+ *
+ * @copyright 2016  The FreeRADIUS server project
+ * @copyright 2016  Arran Cudbard-Bell <a.cudbardb@freeradius.org>
+ */
 RCSID("$Id$")
 
 #include <freeradius-devel/util/base.h>
index 977e763c9c4f2a0e928358dd4364d9524c673cbd..37417c21701b03dd335b0aa59811e72ad5957086 100644 (file)
@@ -1,27 +1,26 @@
 #pragma once
 /*
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
+ *   This library is free software; you can redistribute it and/or
+ *   modify it under the terms of the GNU Lesser General Public
+ *   License as published by the Free Software Foundation; either
+ *   version 2.1 of the License, or (at your option) any later version.
  *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
+ *   This library is distributed in the hope that it will be useful,
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ *   Lesser General Public License for more details.
  *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ *   You should have received a copy of the GNU Lesser General Public
+ *   License along with this library; if not, write to the Free Software
+ *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/**
- * $Id$
+/** Version checking functions
  *
- * @file lib/util/version.h
- * @brief Version checking functions
+ * @file src/lib/util/version.h
  *
  * @copyright 2016  The FreeRADIUS server project
+ * @copyright 2016  Arran Cudbard-Bell <a.cudbardb@freeradius.org>
  */
 RCSIDH(version_h, "$Id$")