diff --git a/hio/lib/rad-msg.c b/hio/lib/rad-msg.c index afb51ce..c7718a9 100644 --- a/hio/lib/rad-msg.c +++ b/hio/lib/rad-msg.c @@ -31,6 +31,12 @@ #include #include +/* TODO: tlv and various value encoding. + radius dictionary support + change hio_rad_walk_attributes() to hio_rad_walk_attrs() with enhancement + finish long attribute insertion in hio_rad_insert_attr... break long data to multiple attrs +*/ + void hio_rad_initialize (hio_rad_hdr_t* hdr, hio_rad_code_t code, hio_uint8_t id) { HIO_MEMSET (hdr, 0, HIO_SIZEOF(*hdr)); diff --git a/hio/t/t-003.c b/hio/t/t-003.c index 59ae198..853fac1 100644 --- a/hio/t/t-003.c +++ b/hio/t/t-003.c @@ -31,6 +31,8 @@ int main () { 0, 10415, 8, "imsi-mcc-mnc", 12 }, { 0, 4329, 5, "ssid", 4 }, { 0, 0, HIO_RAD_ATTR_NAS_IDENTIFIER, "nas identifier", 14 }, + { 0, 0, HIO_RAD_ATTR_USER_PASSWORD, "password", 8 }, + { 0, 0, HIO_RAD_ATTR_USER_NAME, "username", 8 }, { 1, 10415, 8, "imsi-mcc-mnc-2", 14 }, /* Frag-Status 241.1 integer. */ @@ -220,6 +222,8 @@ int main () } } + hio_rad_fill_authenticator (hdr); + hio_rad_set_user_password (hdr, HIO_SIZEOF(buf), "real_password", "testing123"); #if 1 {