]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
moved attribute processing to imc_attestation_process
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 9 Oct 2011 08:19:10 +0000 (10:19 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 28 Nov 2011 17:36:45 +0000 (18:36 +0100)
src/libimcv/plugins/imc_attestation/imc_attestation.c

index 12e9b80147e9429fc65ecb46de1227cea3208f05..937b8b472d232bb4d5faaba3dfbf1f9274afd19d 100644 (file)
@@ -13,8 +13,6 @@
  * for more details.
  */
 
-#define _GNU_SOURCE
-
 #include "imc_attestation_state.h"
 #include "imc_attestation_process.h"
 
@@ -29,9 +27,6 @@
 #include <pts/pts_error.h>
 
 #include <tcg/tcg_pts_attr_proto_caps.h>
-#include <tcg/tcg_pts_attr_dh_nonce_params_req.h>
-#include <tcg/tcg_pts_attr_dh_nonce_params_resp.h>
-#include <tcg/tcg_pts_attr_dh_nonce_finish.h>
 #include <tcg/tcg_pts_attr_meas_algo.h>
 #include <tncif_pa_subtypes.h>
 
@@ -46,9 +41,6 @@ static const char imc_name[] = "Attestation";
 #define IMC_VENDOR_ID                          PEN_TCG
 #define IMC_SUBTYPE                                    PA_SUBTYPE_TCG_PTS
 
-#define DEFAULT_NONCE_LEN                      20
-#define EXTEND_PCR                                     16
-
 static imc_agent_t *imc_attestation;
 
 /**
@@ -305,10 +297,6 @@ TNC_Result TNC_IMC_ReceiveMessage(TNC_IMCID imc_id,
 
        attr_list->destroy(attr_list);
        return result;
-
-       err:
-       DESTROY_IF(attr_list);
-       return TNC_RESULT_FATAL;
 }
 
 /**