log EAP-only authentication proposal

This commit is contained in:
Andreas Steffen
2010-01-11 11:17:40 +01:00
parent 87eb27681a
commit b979032088
+5 -3
View File
@@ -879,12 +879,14 @@ static status_t process_i(private_ike_auth_t *this, message_t *message)
} }
} }
else else
{ /* responder omited AUTH payload, indicating EAP-only */ { /* responder omitted AUTH payload, indicating EAP-only */
if (!this->my_auth || if (!this->my_auth || !this->my_auth->is_mutual(this->my_auth))
!this->my_auth->is_mutual(this->my_auth))
{ {
DBG1(DBG_IKE, "do not allow non-mutual or weak "
"EAP-only authentication");
return FAILED; return FAILED;
} }
DBG1(DBG_IKE, "allow mutual EAP-only authentication");
} }
} }
if (this->other_auth) if (this->other_auth)