From c105696d1c7d02f7b0377ac0774a389d0f464269 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 14 Mar 2007 15:25:00 +0000 Subject: [PATCH] removed dublicated code in eap_authenticator --- src/charon/sa/authenticators/eap_authenticator.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/charon/sa/authenticators/eap_authenticator.c b/src/charon/sa/authenticators/eap_authenticator.c index 3b2b4be97..3064f9b7e 100644 --- a/src/charon/sa/authenticators/eap_authenticator.c +++ b/src/charon/sa/authenticators/eap_authenticator.c @@ -206,16 +206,9 @@ static status_t process_peer(private_eap_authenticator_t *this, case NEED_MORE: return NEED_MORE; case SUCCESS: - if (this->method->get_msk(this->method, &this->msk) == SUCCESS) - { - DBG1(DBG_IKE, "EAP method %N succeded, MSK established", - eap_type_names, this->method->get_type(this->method)); - this->msk = chunk_clone(this->msk); - return SUCCESS; - } - DBG1(DBG_IKE, "EAP method %N succeded, but no MSK established", + DBG1(DBG_IKE, "EAP method %N succeded", eap_type_names, this->method->get_type(this->method)); - return FAILED; + return SUCCESS; case FAILED: default: DBG1(DBG_IKE, "EAP method %N failed", @@ -296,12 +289,10 @@ static status_t process(private_eap_authenticator_t *this, eap_payload_t *in, { if (this->method->get_msk(this->method, &this->msk) == SUCCESS) { - DBG1(DBG_IKE, "EAP method %N succeded, MSK established", - eap_type_names, this->method->get_type(this->method)); this->msk = chunk_clone(this->msk); return SUCCESS; } - DBG1(DBG_IKE, "EAP method %N succeded, but no MSK established", + DBG1(DBG_IKE, "EAP method %N has no MSK established", eap_type_names, this->method->get_type(this->method)); return FAILED; }