diff options
author | Luke Howard <lukeh@padl.com> | 2011-11-14 17:05:17 +1100 |
---|---|---|
committer | Luke Howard <lukeh@padl.com> | 2011-11-14 17:05:17 +1100 |
commit | 34747348ee53e02bb6faa6a6e26c1440e327ff60 (patch) | |
tree | 94991d0c105a5516ddc4ef446b36b0d7238da44c /lib/examples | |
parent | ac17a556bd50969c8157d50761449b702afa4af8 (diff) |
remove rs_packet_frpkt
Diffstat (limited to 'lib/examples')
-rw-r--r-- | lib/examples/client-blocking.c | 5 |
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__); |