summaryrefslogtreecommitdiff
path: root/lib/examples
diff options
context:
space:
mode:
authorLuke Howard <lukeh@padl.com>2011-11-14 17:05:17 +1100
committerLuke Howard <lukeh@padl.com>2011-11-14 17:05:17 +1100
commit34747348ee53e02bb6faa6a6e26c1440e327ff60 (patch)
tree94991d0c105a5516ddc4ef446b36b0d7238da44c /lib/examples
parentac17a556bd50969c8157d50761449b702afa4af8 (diff)
remove rs_packet_frpkt
Diffstat (limited to 'lib/examples')
-rw-r--r--lib/examples/client-blocking.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/examples/client-blocking.c b/lib/examples/client-blocking.c
index 509e68a..2cfd617 100644
--- a/lib/examples/client-blocking.c
+++ b/lib/examples/client-blocking.c
@@ -5,7 +5,6 @@
#include <unistd.h>
#include <stdlib.h>
#include <event2/event.h>
-#include <freeradius/libradius.h>
#include <radsec/radsec.h>
#include <radsec/radsec-impl.h>
#include <radsec/request.h>
@@ -70,10 +69,10 @@ blocking_client (const char *av1, const char *av2, int use_request_object_flag)
if (resp)
{
rs_dump_packet (resp);
- if (rs_packet_frpkt (resp)->code == PW_ACCESS_ACCEPT)
+ if (rs_packet_code (resp) == PW_ACCESS_ACCEPT)
printf ("Good auth.\n");
else
- printf ("Bad auth: %d\n", rs_packet_frpkt (resp)->code);
+ printf ("Bad auth: %d\n", rs_packet_code (resp));
}
else
fprintf (stderr, "%s: no response\n", __func__);