notify IMVs about handshake retries
authorAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 23 Jun 2011 13:22:41 +0000 (15:22 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 23 Jun 2011 13:22:41 +0000 (15:22 +0200)
src/libcharon/plugins/tnccs_20/tnccs_20.c

index 2038a9a..e744858 100644 (file)
@@ -342,6 +342,11 @@ static void build_retry_batch(private_tnccs_20_t *this)
                        pb_tnc_batch_type_names, this->batch->get_type(this->batch));
                this->batch->destroy(this->batch);
         }
+       if (this->is_server)
+       {
+               charon->imvs->notify_connection_change(charon->imvs,
+                                                       this->connection_id, TNC_CONNECTION_STATE_HANDSHAKE);
+       }
        this->batch = pb_tnc_batch_create(this->is_server, batch_retry_type);
 }