fixed EAP-MD5 to accept Name attribute in challenge
This commit is contained in:
@@ -199,7 +199,8 @@ static status_t process_server(private_eap_md5_t *this,
|
|||||||
data = in->get_data(in);
|
data = in->get_data(in);
|
||||||
response = chunk_skip(data, 6);
|
response = chunk_skip(data, 6);
|
||||||
|
|
||||||
if (!chunk_equals(response, expected))
|
if (response.len < expected.len ||
|
||||||
|
!memeq(response.ptr, expected.ptr, expected.len))
|
||||||
{
|
{
|
||||||
chunk_free(&expected);
|
chunk_free(&expected);
|
||||||
DBG1(DBG_IKE, "EAP-MD5 verification failed");
|
DBG1(DBG_IKE, "EAP-MD5 verification failed");
|
||||||
|
|||||||
Reference in New Issue
Block a user