networkclient
|
Sample code to initialize a RADIUS packet and a response to it. More...
#include <networkradius-devel/client.h>
Functions | |
int | main (int argc, const char *argv[]) |
Sample code to initialize a RADIUS packet and a response to it.
This example initializes a packet, and then adds User-Name and User-Password to it. The resulting packet is then printed to the standard output.
As a next step, it then creates the response, and prints that, too.
int main | ( | int | argc, |
const char * | argv[] | ||
) |
References NR_DA_REPLY_MESSAGE, NR_DA_TUNNEL_PASSWORD, NR_DA_USER_NAME, NR_DA_USER_PASSWORD, nr_packet_attr_append(), nr_packet_decode(), nr_packet_init(), nr_packet_ok(), nr_packet_print_hex(), nr_packet_sign(), nr_packet_verify(), nr_strerror(), nr_vp_fprintf_list(), nr_vp_free(), PW_ACCESS_ACCEPT, PW_ACCESS_REQUEST, and radius_packet::vps.