We do NOT want to skip that. It's BAD!
Add test cases so that this doesn't happen again.
md5_ctx = fr_md5_ctx_alloc(true);
/*
- * First ingest the password
+ * First ingest the ID and the password.
*/
+ fr_md5_update(md5_ctx, (uint8_t const *)&id, 1);
fr_md5_update(md5_ctx, (uint8_t const *)password, password_len);
/*
--- /dev/null
+update control {
+ &Cleartext-Password := &User-Name
+}
--- /dev/null
+User-Name = "08000f510d1e"
+CHAP-Password = 0x9fdc274c2e3ca36a66a0581a10d44a7dd2
+CHAP-Challenge = 0xe7714b9a5d8463e7947041bdbf399c17
+
+Packet-Type == Access-Accept
--- /dev/null
+update control {
+ &Cleartext-Password := &User-Name
+}
--- /dev/null
+User-Name = "08000f510d1e"
+CHAP-Password = 0xa1526f5b6d5cc40d3d87df334515befc07
+CHAP-Challenge = 0xbf61a943b98f4d1b9e9885677705a6b8
+
+Packet-Type == Access-Accept