FreeBSD/usr.sbin/ppp/chap_ms.c
/* passwordHash 16-bytes MD4 hashed password
   challenge    8-bytes peer CHAP challenge
   since passwordHash is in a 24-byte buffer, response is written in there */
passwordHash 16-bytes MD4 hashed password
challenge    8-bytes peer CHAP challenge
since passwordHash is in a 24-byte buffer, response is written in there
passwordHash 16 - bytes MD4 hashed password challenge 8 - bytes peer CHAP challenge since passwordHash is in a 24 - byte buffer response is written in there
void
mschap_NT(char *passwordHash, char *challenge)
{
    u_char response[24];
    ChallengeResponse(challenge, passwordHash, response);
    memcpy(passwordHash, response, 24);
    passwordHash[24] = 1;		
}
void mschap_NT ( char * passwordHash , char * challenge ) { u_char response [ 24 ] ; ChallengeResponse ( challenge , passwordHash , response ) ; memcpy ( passwordHash , response , 24 ) ; passwordHash [ 24 ] = 1 ; }
passwordHash 16-bytes MD4 hashed password
challenge    8-bytes peer CHAP challenge
since passwordHash is in a 24-byte buffer, response is written in there
passwordHash 16 - bytes MD4 hashed password challenge 8 - bytes peer CHAP challenge since passwordHash is in a 24 - byte buffer response is written in there
/* NT-style response */