--- a/eapol/eapol_framework/eapol_common/type/mschapv2/core/eap_type_mschapv2.cpp Thu May 13 22:51:27 2010 +0300
+++ b/eapol/eapol_framework/eapol_common/type/mschapv2/core/eap_type_mschapv2.cpp Mon May 24 20:32:47 2010 +0300
@@ -16,7 +16,7 @@
*/
/*
-* %version: 40.1.2 %
+* %version: 45 %
*/
// This is enumeration of EAPOL source code.
@@ -730,7 +730,6 @@
//----------------------------------------------------------
-#if defined(USE_EAP_EXPANDED_TYPES)
{
eap_variable_data_c use_eap_expanded_type(m_am_tools);
@@ -764,7 +763,6 @@
}
}
}
-#endif //#if defined(USE_EAP_EXPANDED_TYPES)
//----------------------------------------------------------
@@ -1012,7 +1010,7 @@
EAP_TRACE_RETURN_STRING(m_am_tools, "returns: eap_type_mschapv2_c::reset()");
- m_session.set_state(eap_type_mschapv2_state_none);
+ m_session.reset();
m_username_utf8.reset();
eap_variable_data_c username_uc(m_am_tools);
@@ -1046,6 +1044,9 @@
m_is_notification_sent = false;
m_is_reauthentication = false;
+ m_is_pending = false;
+ m_identity_asked = false;
+
status = m_am_type_mschapv2->reset();
if (status != eap_status_ok)
{
@@ -1505,7 +1506,7 @@
if (key[key_byte] & (1 << key_bit_shifting)) // If bit is 1...
{
- newkey[newkey_byte] |= (1 << newkey_bit_shifting); // ...set bit to 1
+ newkey[newkey_byte] = static_cast<u8_t>(newkey[newkey_byte] | (1 << newkey_bit_shifting)); // ...set bit to 1
bit_counter++;
}
}
@@ -1519,7 +1520,7 @@
}
// Copy key three times into triple size key because we are internally using 3des instead of des
- // des: Ek == 3des: Ek3(Dk2(Ek1)) when k == k1 == k2 == k3
+ // des: Ek == 3des: Ek3(Dk2(Ek1)) when k == key1 == key2 == key3
m_am_tools->memmove(newkey + EAP_MSCHAPV2_DES_KEY_SIZE, newkey, EAP_MSCHAPV2_DES_KEY_SIZE);
m_am_tools->memmove(newkey + 2 * EAP_MSCHAPV2_DES_KEY_SIZE, newkey, EAP_MSCHAPV2_DES_KEY_SIZE);