assign provide_recommendation callback function
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 8 Nov 2010 22:56:20 +0000 (23:56 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 9 Nov 2010 19:43:51 +0000 (20:43 +0100)
src/libcharon/tnc/tnccs/tnccs_manager.c

index 5df214f..84d4509 100644 (file)
@@ -158,13 +158,15 @@ METHOD(tnccs_manager_t, create_instance, tnccs_t*,
 
 METHOD(tnccs_manager_t, create_connection, TNC_ConnectionID,
        private_tnccs_manager_t *this, tnccs_t *tnccs,
-       tnccs_send_message_t send_message)
+       tnccs_send_message_t send_message,
+       tnccs_provide_recommendation_t provide_recommendation)
 {
        tnccs_connection_entry_t *entry = malloc_thing(tnccs_connection_entry_t);
 
        entry->id = ++this->connection_id;
        entry->tnccs = tnccs;
        entry->send_message = send_message;
+       entry->provide_recommendation = provide_recommendation;
 
        this->lock->write_lock(this->lock);
        this->connections->insert_last(this->connections, entry);