aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/encoding/message.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-07-19 14:48:37 +0200
committerMartin Willi <martin@revosec.ch>2012-07-20 17:36:27 +0200
commit73514b32172578128137678ec05dd4f3860f6e30 (patch)
tree50295198d90b6cb417100dd1a31666de2837ba39 /src/libcharon/encoding/message.c
parent5a6c18853ecf6e8181255f5651bf19013406436e (diff)
downloadstrongswan-73514b32172578128137678ec05dd4f3860f6e30.tar.bz2
strongswan-73514b32172578128137678ec05dd4f3860f6e30.tar.xz
Don't print hexdumps on loglevel 1 if hash verification fails
Diffstat (limited to 'src/libcharon/encoding/message.c')
-rw-r--r--src/libcharon/encoding/message.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcharon/encoding/message.c b/src/libcharon/encoding/message.c
index 75a54b46a..d3b72ea95 100644
--- a/src/libcharon/encoding/message.c
+++ b/src/libcharon/encoding/message.c
@@ -2044,14 +2044,14 @@ METHOD(message_t, parse_body, status_t,
}
hash_payload = (hash_payload_t*)get_payload(this, HASH_V1);
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))
{
- DBG1(DBG_ENC, "our hash does not match received %B",
- &other_hash);
+ DBG1(DBG_ENC, "received HASH payload does not match");
chunk_free(&hash);
return FAILED;
}
- DBG2(DBG_ENC, "verified IKEv1 message with hash %B", &hash);
chunk_free(&hash);
}
if (this->is_encrypted)