1 #include <freeradius/libradius.h>
3 #include "libradsec-impl.h"
9 printf ("creating value pairs\n");
11 vp = pairmake ("User-Name", USER_NAME, 0);
13 fr_perror ("pairmake");
19 size_t pwlen = sizeof(USER_PW);
20 strncpy (user_pw, USER_PW, sizeof(user_pw));
21 rad_pwencode(user_pw, &pwlen, SECRET, reqauth);
23 pairadd (&vp, pairmake ("User-Password", user_pw, 0));
26 printf ("attributes:\n");
27 vp_printlist (stdout, vp);