Invoke bus_t.message hook twice, once plain and parsed, once encoded and encrypted
[strongswan.git] / src / conftest / hooks / set_critical.c
index caf2215..8ec84e1 100644 (file)
@@ -47,9 +47,9 @@ struct private_set_critical_t {
 
 METHOD(listener_t, message, bool,
        private_set_critical_t *this, ike_sa_t *ike_sa, message_t *message,
-       bool incoming)
+       bool incoming, bool plain)
 {
-       if (!incoming &&
+       if (!incoming && plain &&
                message->get_request(message) == this->req &&
                message->get_message_id(message) == this->id)
        {