*/
pair_update_request(request->password, attr_cleartext_password);
fr_pair_value_bstrndup(request->password, vp->vp_strvalue, vp->vp_length, true);
- } else if ((vp->da == attr_user_password) ||
- (vp->da == attr_ms_chap_password)) {
+ } else if (vp->da == attr_ms_chap_password) {
pair_update_request(request->password, attr_cleartext_password);
fr_pair_value_bstrndup(request->password, vp->vp_strvalue, vp->vp_length, true);
if (request->password) {
fr_pair_t *vp;
- if ((vp = fr_pair_find_by_da(&request->request_pairs, NULL, attr_user_password)) != NULL) {
- fr_pair_value_strdup(vp, request->password->vp_strvalue, false);
-
- } else if ((vp = fr_pair_find_by_da(&request->request_pairs, NULL, attr_chap_password)) != NULL) {
+ if ((vp = fr_pair_find_by_da(&request->request_pairs, NULL, attr_chap_password)) != NULL) {
uint8_t buffer[17];
fr_pair_t *challenge;
uint8_t const *vector;
*/
pair_update_request(request->password, attr_cleartext_password);
fr_pair_value_bstrndup(request->password, vp->vp_strvalue, vp->vp_length, true);
- } else if ((vp->da == attr_user_password) ||
- (vp->da == attr_ms_chap_password)) {
+ } else if (vp->da == attr_ms_chap_password) {
pair_update_request(request->password, attr_cleartext_password);
fr_pair_value_bstrndup(request->password, vp->vp_strvalue, vp->vp_length, true);
if (request->password) {
fr_pair_t *vp;
- if ((vp = fr_pair_find_by_da(&request->request_pairs, NULL, attr_user_password)) != NULL) {
- fr_pair_value_strdup(vp, request->password->vp_strvalue, false);
-
- } else if ((vp = fr_pair_find_by_da(&request->request_pairs, NULL, attr_chap_password)) != NULL) {
+ if ((vp = fr_pair_find_by_da(&request->request_pairs, NULL, attr_chap_password)) != NULL) {
uint8_t buffer[17];
fr_pair_t *challenge;
uint8_t const *vector;