iv_gen: Provide external sequence number (IKE, ESP)
[strongswan.git] / src / libcharon / encoding / message.c
index 9fc108b..11e735a 100644 (file)
@@ -1622,7 +1622,7 @@ METHOD(message_t, generate, status_t,
                        htoun32(lenpos, chunk.len + encryption->get_length(encryption));
                }
                this->payloads->insert_last(this->payloads, encryption);
-               if (encryption->encrypt(encryption, chunk) != SUCCESS)
+               if (encryption->encrypt(encryption, this->message_id, chunk) != SUCCESS)
                {
                        generator->destroy(generator);
                        return INVALID_STATE;