updated MSK calculation in MSCHAPv2, compatible with Win7/2008 RC.
authorMartin Willi <martin@strongswan.org>
Mon, 11 May 2009 08:41:28 +0000 (10:41 +0200)
committerMartin Willi <martin@strongswan.org>
Mon, 11 May 2009 08:42:53 +0000 (10:42 +0200)
src/charon/plugins/eap_mschapv2/eap_mschapv2.c

index 9ddb8fc..625a8a5 100644 (file)
@@ -456,7 +456,7 @@ static status_t GenerateMSK(chunk_t password_hash_hash,
        hasher->allocate_hash(hasher, concat, &master_send_key);
        master_send_key.len = 16;
        
-       *msk = chunk_cat("cccc", master_receive_key, keypad, master_send_key, keypad);
+       *msk = chunk_cat("cccc", master_receive_key, master_send_key, keypad, keypad);
        
        hasher->destroy(hasher);
        chunk_free(&master_key);