Use quiet generator when creating IKEv1 message hashes.
authorTobias Brunner <tobias@strongswan.org>
Fri, 25 Nov 2011 17:58:18 +0000 (18:58 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 20 Mar 2012 16:31:09 +0000 (17:31 +0100)
This avoids cluttering the log with duplicate log messages when
generating and especially confusing log messages when parsing
authenticated messages.

src/libcharon/sa/keymat_v1.c

index 41a02cc..98d12fb 100644 (file)
@@ -820,7 +820,7 @@ METHOD(keymat_v1_t, get_hash_phase2, chunk_t,
                this->prf->set_key(this->prf, this->skeyid_a);
                if (add_message)
                {
-                       generator_t *generator = generator_create();
+                       generator_t *generator = generator_create_no_dbg();
                        chunk_t msg = get_message_data(message, generator);
                        this->prf->allocate_bytes(this->prf, data, NULL);
                        this->prf->allocate_bytes(this->prf, msg, &hash);