aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/eap_sim
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2015-04-11 15:56:42 +0200
committerMartin Willi <martin@revosec.ch>2015-04-14 12:02:51 +0200
commit161a015782dbd7acf291f621d50cde24a6ed813d (patch)
treeb46293e2993cf75e44888b1bd8ef73d0e97e797e /src/libcharon/plugins/eap_sim
parent9d6e952201a1292087dc42b16a3055a99dbee7ba (diff)
downloadstrongswan-161a015782dbd7acf291f621d50cde24a6ed813d.tar.bz2
strongswan-161a015782dbd7acf291f621d50cde24a6ed813d.tar.xz
utils: Use chunk_equals_const() for all cryptographic purposes
Diffstat (limited to 'src/libcharon/plugins/eap_sim')
-rw-r--r--src/libcharon/plugins/eap_sim/eap_sim_server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcharon/plugins/eap_sim/eap_sim_server.c b/src/libcharon/plugins/eap_sim/eap_sim_server.c
index f22266bda..5aa54db3e 100644
--- a/src/libcharon/plugins/eap_sim/eap_sim_server.c
+++ b/src/libcharon/plugins/eap_sim/eap_sim_server.c
@@ -262,7 +262,7 @@ static status_t process_reauthentication(private_eap_sim_server_t *this,
this->crypto->clear_keys(this->crypto);
return initiate(this, out);
}
- if (!chunk_equals(counter, this->counter))
+ if (!chunk_equals_const(counter, this->counter))
{
DBG1(DBG_IKE, "received counter does not match");
return FAILED;
@@ -644,4 +644,3 @@ eap_sim_server_t *eap_sim_server_create(identification_t *server,
return &this->public;
}
-