Formatting
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 4 Oct 2015 22:55:52 +0000 (18:55 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 5 Oct 2015 14:18:19 +0000 (10:18 -0400)
src/modules/rlm_eap/types/rlm_eap_mschapv2/rlm_eap_mschapv2.c
src/modules/rlm_mschap/rlm_mschap.c

index abb5479..8cf9094 100644 (file)
@@ -689,7 +689,7 @@ packet_ready:
                        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.
index d6fe3d6..a57d15f 100644 (file)
@@ -1570,9 +1570,9 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authenticate(void * instance, REQUEST *r
                 * 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");
 
@@ -1751,7 +1751,8 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authenticate(void * instance, REQUEST *r
 
                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;
@@ -1851,12 +1852,11 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authenticate(void * instance, REQUEST *r
 
                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");