RDEBUG2("MSCHAP-Error: %s", response->vp_strvalue);
/*
- * Pxarse the new challenge out of the
+ * Parse the new challenge out of the
* MS-CHAP-Error, so that if the client
* issues a re-try, we will know which
* challenge value that they used.
* we then extract the response, add it into the request
* then jump into mschap2 auth with the chal/resp
*/
- uint8_t new_nt_encrypted[516], old_nt_encrypted[NT_DIGEST_LENGTH];
- VALUE_PAIR *nt_enc=NULL;
- int seq, new_nt_enc_len=0;
+ uint8_t new_nt_encrypted[516], old_nt_encrypted[NT_DIGEST_LENGTH];
+ VALUE_PAIR *nt_enc=NULL;
+ int seq, new_nt_enc_len=0;
RDEBUG("MS-CHAPv2 password change request received");
chap = 1;
- } else if ((response = fr_pair_find_by_num(request->packet->vps, PW_MSCHAP2_RESPONSE, VENDORPEC_MICROSOFT, TAG_ANY)) != NULL) {
+ } else if ((response = fr_pair_find_by_num(request->packet->vps, PW_MSCHAP2_RESPONSE,
+ VENDORPEC_MICROSOFT, TAG_ANY)) != NULL) {
int mschap_result;
uint8_t mschapv1_challenge[16];
VALUE_PAIR *name_attr, *response_name;
mschap_result = do_mschap(inst, request, nt_password, mschapv1_challenge,
response->vp_octets + 26, nthashhash, auth_method);
- if (mschap_result == -648)
- goto password_expired;
+ if (mschap_result == -648) goto password_expired;
if (mschap_result < 0) {
- int i;
- char buffer[128];
+ int i;
+ char buffer[128];
REDEBUG("MS-CHAP2-Response is incorrect");