aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/encoding/message.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2015-04-14 11:57:17 +0200
committerMartin Willi <martin@revosec.ch>2015-04-14 12:02:51 +0200
commitaa9b74931f4639628b369ffb290721f5ec263f69 (patch)
treeb46293e2993cf75e44888b1bd8ef73d0e97e797e /src/libcharon/encoding/message.c
parentb17f0beda805a8096de6a381a4845711a64a500e (diff)
parent161a015782dbd7acf291f621d50cde24a6ed813d (diff)
downloadstrongswan-aa9b74931f4639628b369ffb290721f5ec263f69.tar.bz2
strongswan-aa9b74931f4639628b369ffb290721f5ec263f69.tar.xz
Merge branch 'const-memeq'
Introduce constant time memory comparing functions for cryptographic purposes, and a tool to test such functions or crypto transforms relying on them.
Diffstat (limited to 'src/libcharon/encoding/message.c')
-rw-r--r--src/libcharon/encoding/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/encoding/message.c b/src/libcharon/encoding/message.c
index 0a596ffb0..e51c94691 100644
--- a/src/libcharon/encoding/message.c
+++ b/src/libcharon/encoding/message.c
@@ -2625,7 +2625,7 @@ METHOD(message_t, parse_body, status_t,
other_hash = hash_payload->get_hash(hash_payload);
DBG3(DBG_ENC, "HASH received %B\nHASH expected %B",
&other_hash, &hash);
- if (!chunk_equals(hash, other_hash))
+ if (!chunk_equals_const(hash, other_hash))
{
DBG1(DBG_ENC, "received HASH payload does not match");
chunk_free(&hash);