networkclient
|
Sample code to initialize a RADIUS packet. More...
#include <networkradius-devel/client.h>
Functions | |
int | main (int argc, const char *argv[]) |
Sample code to initialize a RADIUS packet.
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.
int main | ( | int | argc, |
const char * | argv[] | ||
) |
References NR_DA_USER_NAME, NR_DA_USER_PASSWORD, nr_packet_attr_append(), nr_packet_decode(), nr_packet_init(), nr_packet_print_hex(), nr_packet_sign(), nr_strerror(), nr_vp_fprintf_list(), nr_vp_free(), PW_ACCESS_REQUEST, and radius_packet::vps.