Print message payload names after prepending IKEv1 HASH payload
authorMartin Willi <martin@revosec.ch>
Wed, 23 Nov 2011 13:41:07 +0000 (14:41 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:30:50 +0000 (17:30 +0100)
src/libcharon/encoding/message.c

index f53be00..440b014 100644 (file)
@@ -1402,8 +1402,6 @@ METHOD(message_t, generate, status_t,
                order_payloads(this);
        }
 
-       DBG1(DBG_ENC, "generating %s", get_string(this, str, sizeof(str)));
-
        if (this->major_version == IKEV2_MAJOR_VERSION)
        {
                encrypted = this->rule->encrypted;
@@ -1438,6 +1436,8 @@ METHOD(message_t, generate, status_t,
                enumerator->destroy(enumerator);
        }
 
+       DBG1(DBG_ENC, "generating %s", get_string(this, str, sizeof(str)));
+
        aead = keymat->get_aead(keymat, FALSE);
        if (aead && encrypted)
        {