summaryrefslogtreecommitdiff
path: root/lib/debug.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2010-09-28 22:27:04 +0200
committerLinus Nordberg <linus@nordu.net>2010-09-28 22:27:04 +0200
commite981fbcf3909fbaba462c7b578f29fa67b3bc74b (patch)
treef67203b602b71600020e95ff6805d6aa71331237 /lib/debug.c
parent07fa3839c8bddd1ad91f86243dd582c0359ba3e1 (diff)
WIP.
Diffstat (limited to 'lib/debug.c')
-rw-r--r--lib/debug.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/debug.c b/lib/debug.c
index 2d4e242..34f4885 100644
--- a/lib/debug.c
+++ b/lib/debug.c
@@ -1,4 +1,6 @@
+#include <stdio.h>
#include <freeradius/libradius.h>
+#include "libradsec.h"
#include "libradsec-impl.h"
#include "debug.h"
@@ -69,3 +71,9 @@ rs_dump_packet (const struct rs_packet *pkt)
{
print_hex (pkt->rpkt);
}
+
+void
+rs_dump_attr (const struct rs_attr *attr)
+{
+ vp_printlist (stderr, attr->vp);
+}