Make IKE/EAP IDs available to TNC server/client

This commit is contained in:
Andreas Steffen
2013-02-11 15:30:44 +01:00
parent 98063d8187
commit ebb87f08f7
10 changed files with 92 additions and 28 deletions
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2010-2012 Andreas Steffen
* Copyright (C) 2010-2013 Andreas Steffen
* HSR Hochschule fuer Technik Rapperswil
*
* This program is free software; you can redistribute it and/or modify it
@@ -158,7 +158,8 @@ METHOD(tnccs_manager_t, remove_method, void,
}
METHOD(tnccs_manager_t, create_instance, tnccs_t*,
private_tnc_tnccs_manager_t *this, tnccs_type_t type, bool is_server)
private_tnc_tnccs_manager_t *this, tnccs_type_t type, bool is_server,
identification_t *server, identification_t *peer)
{
enumerator_t *enumerator;
tnccs_entry_t *entry;
@@ -170,7 +171,7 @@ METHOD(tnccs_manager_t, create_instance, tnccs_t*,
{
if (type == entry->type)
{
protocol = entry->constructor(is_server);
protocol = entry->constructor(is_server, server, peer);
if (protocol)
{
break;