Merged libpts into libimcv
This commit is contained in:
1 parent
c4d0987609
commit
d6fb2cc6e3
159 files changed
+232
-439
No files matched your search
+4
-10
@@ -397,10 +397,6 @@ if test x$imc_test = xtrue -o x$imv_test = xtrue -o x$imc_scanner = xtrue -o x$i
|
||||
imcv=true;
|
||||
fi
|
||||
|
||||
if test x$imc_attestation = xtrue -o x$imv_attestation = xtrue -o x$imc_swid = xtrue -o x$imv_swid = xtrue; then
|
||||
pts=true;
|
||||
fi
|
||||
|
||||
if test x$fips_prf = xtrue; then
|
||||
if test x$openssl = xfalse; then
|
||||
sha1=true;
|
||||
@@ -1500,7 +1496,6 @@ AM_CONDITIONAL(USE_SIMAKA, test x$simaka = xtrue)
|
||||
AM_CONDITIONAL(USE_TLS, test x$tls = xtrue)
|
||||
AM_CONDITIONAL(USE_RADIUS, test x$radius = xtrue)
|
||||
AM_CONDITIONAL(USE_IMCV, test x$imcv = xtrue)
|
||||
AM_CONDITIONAL(USE_PTS, test x$pts = xtrue)
|
||||
AM_CONDITIONAL(USE_TROUSERS, test x$tss = xtrousers -o x$aikgen = xtrue)
|
||||
AM_CONDITIONAL(MONOLITHIC, test x$monolithic = xtrue)
|
||||
AM_CONDITIONAL(USE_SILENT_RULES, test x$enable_silent_rules = xyes)
|
||||
@@ -1640,11 +1635,6 @@ AC_CONFIG_FILES([
|
||||
src/libtnccs/plugins/tnccs_20/Makefile
|
||||
src/libtnccs/plugins/tnccs_dynamic/Makefile
|
||||
src/libpttls/Makefile
|
||||
src/libpts/Makefile
|
||||
src/libpts/plugins/imc_attestation/Makefile
|
||||
src/libpts/plugins/imv_attestation/Makefile
|
||||
src/libpts/plugins/imc_swid/Makefile
|
||||
src/libpts/plugins/imv_swid/Makefile
|
||||
src/libimcv/Makefile
|
||||
src/libimcv/plugins/imc_test/Makefile
|
||||
src/libimcv/plugins/imv_test/Makefile
|
||||
@@ -1652,6 +1642,10 @@ AC_CONFIG_FILES([
|
||||
src/libimcv/plugins/imv_scanner/Makefile
|
||||
src/libimcv/plugins/imc_os/Makefile
|
||||
src/libimcv/plugins/imv_os/Makefile
|
||||
src/libimcv/plugins/imc_attestation/Makefile
|
||||
src/libimcv/plugins/imv_attestation/Makefile
|
||||
src/libimcv/plugins/imc_swid/Makefile
|
||||
src/libimcv/plugins/imv_swid/Makefile
|
||||
src/charon/Makefile
|
||||
src/charon-nm/Makefile
|
||||
src/charon-tkm/Makefile
|
||||
|
||||
@@ -40,10 +40,6 @@ if USE_IMCV
|
||||
SUBDIRS += libimcv
|
||||
endif
|
||||
|
||||
if USE_PTS
|
||||
SUBDIRS += libpts
|
||||
endif
|
||||
|
||||
if USE_LIBCHARON
|
||||
SUBDIRS += libcharon
|
||||
endif
|
||||
|
||||
@@ -81,11 +81,6 @@ if USE_IMCV
|
||||
libs += $(DESTDIR)$(ipseclibdir)/libimcv.so
|
||||
endif
|
||||
|
||||
if USE_PTS
|
||||
deps += $(top_builddir)/src/libpts/libpts.la
|
||||
libs += $(DESTDIR)$(ipseclibdir)/libpts.so
|
||||
endif
|
||||
|
||||
if USE_CHARON
|
||||
deps += $(top_builddir)/src/libcharon/libcharon.la
|
||||
libs += $(DESTDIR)$(ipseclibdir)/libcharon.so
|
||||
|
||||
+53
-1
@@ -41,7 +41,59 @@ libimcv_la_SOURCES := \
|
||||
os_info/os_info.h os_info/os_info.c \
|
||||
pa_tnc/pa_tnc_attr.h \
|
||||
pa_tnc/pa_tnc_msg.h pa_tnc/pa_tnc_msg.c \
|
||||
pa_tnc/pa_tnc_attr_manager.h pa_tnc/pa_tnc_attr_manager.c
|
||||
pa_tnc/pa_tnc_attr_manager.h pa_tnc/pa_tnc_attr_manager.c \
|
||||
pts/pts.h pts/pts.c \
|
||||
pts/pts_error.h pts/pts_error.c \
|
||||
pts/pts_pcr.h pts/pts_pcr.c \
|
||||
pts/pts_proto_caps.h \
|
||||
pts/pts_req_func_comp_evid.h \
|
||||
pts/pts_simple_evid_final.h \
|
||||
pts/pts_creds.h pts/pts_creds.c \
|
||||
pts/pts_database.h pts/pts_database.c \
|
||||
pts/pts_dh_group.h pts/pts_dh_group.c \
|
||||
pts/pts_file_meas.h pts/pts_file_meas.c \
|
||||
pts/pts_file_meta.h pts/pts_file_meta.c \
|
||||
pts/pts_file_type.h pts/pts_file_type.c \
|
||||
pts/pts_ima_bios_list.h pts/pts_ima_bios_list.c \
|
||||
pts/pts_ima_event_list.h pts/pts_ima_event_list.c \
|
||||
pts/pts_meas_algo.h pts/pts_meas_algo.c \
|
||||
pts/components/pts_component.h \
|
||||
pts/components/pts_component_manager.h pts/components/pts_component_manager.c \
|
||||
pts/components/pts_comp_evidence.h pts/components/pts_comp_evidence.c \
|
||||
pts/components/pts_comp_func_name.h pts/components/pts_comp_func_name.c \
|
||||
pts/components/ita/ita_comp_func_name.h pts/components/ita/ita_comp_func_name.c \
|
||||
pts/components/ita/ita_comp_ima.h pts/components/ita/ita_comp_ima.c \
|
||||
pts/components/ita/ita_comp_tboot.h pts/components/ita/ita_comp_tboot.c \
|
||||
pts/components/ita/ita_comp_tgrub.h pts/components/ita/ita_comp_tgrub.c \
|
||||
pts/components/tcg/tcg_comp_func_name.h pts/components/tcg/tcg_comp_func_name.c \
|
||||
seg/seg_contract.h seg/seg_contract.c \
|
||||
seg/seg_contract_manager.h seg/seg_contract_manager.c \
|
||||
seg/seg_env.h seg/seg_env.c \
|
||||
swid/swid_error.h swid/swid_error.c \
|
||||
swid/swid_inventory.h swid/swid_inventory.c \
|
||||
swid/swid_tag.h swid/swid_tag.c \
|
||||
swid/swid_tag_id.h swid/swid_tag_id.c \
|
||||
tcg/tcg_attr.h tcg/tcg_attr.c \
|
||||
tcg/pts/tcg_pts_attr_proto_caps.h tcg/pts/tcg_pts_attr_proto_caps.c \
|
||||
tcg/pts/tcg_pts_attr_dh_nonce_params_req.h tcg/pts/tcg_pts_attr_dh_nonce_params_req.c \
|
||||
tcg/pts/tcg_pts_attr_dh_nonce_params_resp.h tcg/pts/tcg_pts_attr_dh_nonce_params_resp.c \
|
||||
tcg/pts/tcg_pts_attr_dh_nonce_finish.h tcg/pts/tcg_pts_attr_dh_nonce_finish.c \
|
||||
tcg/pts/tcg_pts_attr_meas_algo.h tcg/pts/tcg_pts_attr_meas_algo.c \
|
||||
tcg/pts/tcg_pts_attr_get_tpm_version_info.h tcg/pts/tcg_pts_attr_get_tpm_version_info.c \
|
||||
tcg/pts/tcg_pts_attr_tpm_version_info.h tcg/pts/tcg_pts_attr_tpm_version_info.c \
|
||||
tcg/pts/tcg_pts_attr_get_aik.h tcg/pts/tcg_pts_attr_get_aik.c \
|
||||
tcg/pts/tcg_pts_attr_aik.h tcg/pts/tcg_pts_attr_aik.c \
|
||||
tcg/pts/tcg_pts_attr_req_func_comp_evid.h tcg/pts/tcg_pts_attr_req_func_comp_evid.c \
|
||||
tcg/pts/tcg_pts_attr_gen_attest_evid.h tcg/pts/tcg_pts_attr_gen_attest_evid.c \
|
||||
tcg/pts/tcg_pts_attr_simple_comp_evid.h tcg/pts/tcg_pts_attr_simple_comp_evid.c \
|
||||
tcg/pts/tcg_pts_attr_simple_evid_final.h tcg/pts/tcg_pts_attr_simple_evid_final.c \
|
||||
tcg/pts/tcg_pts_attr_req_file_meas.h tcg/pts/tcg_pts_attr_req_file_meas.c \
|
||||
tcg/pts/tcg_pts_attr_file_meas.h tcg/pts/tcg_pts_attr_file_meas.c \
|
||||
tcg/pts/tcg_pts_attr_req_file_meta.h tcg/pts/tcg_pts_attr_req_file_meta.c \
|
||||
tcg/pts/tcg_pts_attr_unix_file_meta.h tcg/pts/tcg_pts_attr_unix_file_meta.c \
|
||||
tcg/swid/tcg_swid_attr_req.h tcg/swid/tcg_swid_attr_req.c \
|
||||
tcg/swid/tcg_swid_attr_tag_id_inv.h tcg/swid/tcg_swid_attr_tag_id_inv.c \
|
||||
tcg/swid/tcg_swid_attr_tag_inv.h tcg/swid/tcg_swid_attr_tag_inv.c
|
||||
|
||||
LOCAL_SRC_FILES := $(filter %.c,$(libimcv_la_SOURCES))
|
||||
|
||||
|
||||
+73
-1
@@ -12,6 +12,10 @@ libimcv_la_LIBADD = \
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
||||
$(top_builddir)/src/libtncif/libtncif.la
|
||||
|
||||
if USE_TROUSERS
|
||||
libimcv_la_LIBADD += -ltspi
|
||||
endif
|
||||
|
||||
if USE_WINDOWS
|
||||
libimcv_la_LIBADD += -lws2_32
|
||||
endif
|
||||
@@ -56,9 +60,61 @@ libimcv_la_SOURCES = \
|
||||
pa_tnc/pa_tnc_attr.h \
|
||||
pa_tnc/pa_tnc_msg.h pa_tnc/pa_tnc_msg.c \
|
||||
pa_tnc/pa_tnc_attr_manager.h pa_tnc/pa_tnc_attr_manager.c \
|
||||
pts/pts.h pts/pts.c \
|
||||
pts/pts_error.h pts/pts_error.c \
|
||||
pts/pts_pcr.h pts/pts_pcr.c \
|
||||
pts/pts_proto_caps.h \
|
||||
pts/pts_req_func_comp_evid.h \
|
||||
pts/pts_simple_evid_final.h \
|
||||
pts/pts_creds.h pts/pts_creds.c \
|
||||
pts/pts_database.h pts/pts_database.c \
|
||||
pts/pts_dh_group.h pts/pts_dh_group.c \
|
||||
pts/pts_file_meas.h pts/pts_file_meas.c \
|
||||
pts/pts_file_meta.h pts/pts_file_meta.c \
|
||||
pts/pts_file_type.h pts/pts_file_type.c \
|
||||
pts/pts_ima_bios_list.h pts/pts_ima_bios_list.c \
|
||||
pts/pts_ima_event_list.h pts/pts_ima_event_list.c \
|
||||
pts/pts_meas_algo.h pts/pts_meas_algo.c \
|
||||
pts/components/pts_component.h \
|
||||
pts/components/pts_component_manager.h pts/components/pts_component_manager.c \
|
||||
pts/components/pts_comp_evidence.h pts/components/pts_comp_evidence.c \
|
||||
pts/components/pts_comp_func_name.h pts/components/pts_comp_func_name.c \
|
||||
pts/components/ita/ita_comp_func_name.h pts/components/ita/ita_comp_func_name.c \
|
||||
pts/components/ita/ita_comp_ima.h pts/components/ita/ita_comp_ima.c \
|
||||
pts/components/ita/ita_comp_tboot.h pts/components/ita/ita_comp_tboot.c \
|
||||
pts/components/ita/ita_comp_tgrub.h pts/components/ita/ita_comp_tgrub.c \
|
||||
pts/components/tcg/tcg_comp_func_name.h pts/components/tcg/tcg_comp_func_name.c \
|
||||
seg/seg_contract.h seg/seg_contract.c \
|
||||
seg/seg_contract_manager.h seg/seg_contract_manager.c \
|
||||
seg/seg_env.h seg/seg_env.c
|
||||
seg/seg_env.h seg/seg_env.c \
|
||||
swid/swid_error.h swid/swid_error.c \
|
||||
swid/swid_inventory.h swid/swid_inventory.c \
|
||||
swid/swid_tag.h swid/swid_tag.c \
|
||||
swid/swid_tag_id.h swid/swid_tag_id.c \
|
||||
tcg/tcg_attr.h tcg/tcg_attr.c \
|
||||
tcg/pts/tcg_pts_attr_proto_caps.h tcg/pts/tcg_pts_attr_proto_caps.c \
|
||||
tcg/pts/tcg_pts_attr_dh_nonce_params_req.h tcg/pts/tcg_pts_attr_dh_nonce_params_req.c \
|
||||
tcg/pts/tcg_pts_attr_dh_nonce_params_resp.h tcg/pts/tcg_pts_attr_dh_nonce_params_resp.c \
|
||||
tcg/pts/tcg_pts_attr_dh_nonce_finish.h tcg/pts/tcg_pts_attr_dh_nonce_finish.c \
|
||||
tcg/pts/tcg_pts_attr_meas_algo.h tcg/pts/tcg_pts_attr_meas_algo.c \
|
||||
tcg/pts/tcg_pts_attr_get_tpm_version_info.h tcg/pts/tcg_pts_attr_get_tpm_version_info.c \
|
||||
tcg/pts/tcg_pts_attr_tpm_version_info.h tcg/pts/tcg_pts_attr_tpm_version_info.c \
|
||||
tcg/pts/tcg_pts_attr_get_aik.h tcg/pts/tcg_pts_attr_get_aik.c \
|
||||
tcg/pts/tcg_pts_attr_aik.h tcg/pts/tcg_pts_attr_aik.c \
|
||||
tcg/pts/tcg_pts_attr_req_func_comp_evid.h tcg/pts/tcg_pts_attr_req_func_comp_evid.c \
|
||||
tcg/pts/tcg_pts_attr_gen_attest_evid.h tcg/pts/tcg_pts_attr_gen_attest_evid.c \
|
||||
tcg/pts/tcg_pts_attr_simple_comp_evid.h tcg/pts/tcg_pts_attr_simple_comp_evid.c \
|
||||
tcg/pts/tcg_pts_attr_simple_evid_final.h tcg/pts/tcg_pts_attr_simple_evid_final.c \
|
||||
tcg/pts/tcg_pts_attr_req_file_meas.h tcg/pts/tcg_pts_attr_req_file_meas.c \
|
||||
tcg/pts/tcg_pts_attr_file_meas.h tcg/pts/tcg_pts_attr_file_meas.c \
|
||||
tcg/pts/tcg_pts_attr_req_file_meta.h tcg/pts/tcg_pts_attr_req_file_meta.c \
|
||||
tcg/pts/tcg_pts_attr_unix_file_meta.h tcg/pts/tcg_pts_attr_unix_file_meta.c \
|
||||
tcg/seg/tcg_seg_attr_max_size.h tcg/seg/tcg_seg_attr_max_size.c \
|
||||
tcg/seg/tcg_seg_attr_seg_env.h tcg/seg/tcg_seg_attr_seg_env.c \
|
||||
tcg/seg/tcg_seg_attr_next_seg.h tcg/seg/tcg_seg_attr_next_seg.c \
|
||||
tcg/swid/tcg_swid_attr_req.h tcg/swid/tcg_swid_attr_req.c \
|
||||
tcg/swid/tcg_swid_attr_tag_id_inv.h tcg/swid/tcg_swid_attr_tag_id_inv.c \
|
||||
tcg/swid/tcg_swid_attr_tag_inv.h tcg/swid/tcg_swid_attr_tag_inv.c
|
||||
|
||||
ipsec_SCRIPTS = imv/_imv_policy
|
||||
EXTRA_DIST = imv/_imv_policy Android.mk
|
||||
@@ -99,3 +155,19 @@ endif
|
||||
if USE_IMV_OS
|
||||
SUBDIRS += plugins/imv_os
|
||||
endif
|
||||
|
||||
if USE_IMC_ATTESTATION
|
||||
SUBDIRS += plugins/imc_attestation
|
||||
endif
|
||||
|
||||
if USE_IMV_ATTESTATION
|
||||
SUBDIRS += plugins/imv_attestation
|
||||
endif
|
||||
|
||||
if USE_IMC_SWID
|
||||
SUBDIRS += plugins/imc_swid
|
||||
endif
|
||||
|
||||
if USE_IMV_SWID
|
||||
SUBDIRS += plugins/imv_swid
|
||||
endif
|
||||
@@ -18,14 +18,13 @@
|
||||
#include "ietf/ietf_attr.h"
|
||||
#include "ietf/ietf_attr_assess_result.h"
|
||||
#include "ietf/ietf_attr_remediation_instr.h"
|
||||
#include "tcg/seg/tcg_seg_attr_max_size.h"
|
||||
#include "tcg/seg/tcg_seg_attr_seg_env.h"
|
||||
#include "tcg/seg/tcg_seg_attr_next_seg.h"
|
||||
|
||||
#include <tncif_names.h>
|
||||
#include <tncif_pa_subtypes.h>
|
||||
|
||||
#include <tcg/seg/tcg_seg_attr_max_size.h>
|
||||
#include <tcg/seg/tcg_seg_attr_seg_env.h>
|
||||
#include <tcg/seg/tcg_seg_attr_next_seg.h>
|
||||
|
||||
#include <pen/pen.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <utils/debug.h>
|
||||
|
||||
@@ -15,6 +15,14 @@
|
||||
#include "imcv.h"
|
||||
#include "ietf/ietf_attr.h"
|
||||
#include "ita/ita_attr.h"
|
||||
#include "tcg/tcg_attr.h"
|
||||
#include "pts/components/pts_component.h"
|
||||
#include "pts/components/pts_component_manager.h"
|
||||
#include "pts/components/tcg/tcg_comp_func_name.h"
|
||||
#include "pts/components/ita/ita_comp_func_name.h"
|
||||
#include "pts/components/ita/ita_comp_ima.h"
|
||||
#include "pts/components/ita/ita_comp_tboot.h"
|
||||
#include "pts/components/ita/ita_comp_tgrub.h"
|
||||
|
||||
#include <utils/debug.h>
|
||||
#include <utils/utils.h>
|
||||
@@ -43,6 +51,11 @@ imv_session_manager_t *imcv_sessions;
|
||||
*/
|
||||
imv_database_t *imcv_db;
|
||||
|
||||
/**
|
||||
* PTS Functional Component manager
|
||||
*/
|
||||
pts_component_manager_t *imcv_pts_components;
|
||||
|
||||
/**
|
||||
* Reference count for libimcv
|
||||
*/
|
||||
@@ -162,7 +175,26 @@ bool libimcv_init(bool is_imv)
|
||||
ietf_attr_create_from_data, ietf_attr_names);
|
||||
imcv_pa_tnc_attributes->add_vendor(imcv_pa_tnc_attributes, PEN_ITA,
|
||||
ita_attr_create_from_data, ita_attr_names);
|
||||
imcv_pa_tnc_attributes->add_vendor(imcv_pa_tnc_attributes, PEN_TCG,
|
||||
tcg_attr_create_from_data, tcg_attr_names);
|
||||
|
||||
imcv_pts_components = pts_component_manager_create();
|
||||
imcv_pts_components->add_vendor(imcv_pts_components, PEN_TCG,
|
||||
pts_tcg_comp_func_names, PTS_TCG_QUALIFIER_TYPE_SIZE,
|
||||
pts_tcg_qualifier_flag_names, pts_tcg_qualifier_type_names);
|
||||
imcv_pts_components->add_vendor(imcv_pts_components, PEN_ITA,
|
||||
pts_ita_comp_func_names, PTS_ITA_QUALIFIER_TYPE_SIZE,
|
||||
pts_ita_qualifier_flag_names, pts_ita_qualifier_type_names);
|
||||
|
||||
imcv_pts_components->add_component(imcv_pts_components, PEN_ITA,
|
||||
PTS_ITA_COMP_FUNC_NAME_TGRUB,
|
||||
pts_ita_comp_tgrub_create);
|
||||
imcv_pts_components->add_component(imcv_pts_components, PEN_ITA,
|
||||
PTS_ITA_COMP_FUNC_NAME_TBOOT,
|
||||
pts_ita_comp_tboot_create);
|
||||
imcv_pts_components->add_component(imcv_pts_components, PEN_ITA,
|
||||
PTS_ITA_COMP_FUNC_NAME_IMA,
|
||||
pts_ita_comp_ima_create);
|
||||
if (is_imv)
|
||||
{
|
||||
/* instantiate global IMV session manager */
|
||||
@@ -193,8 +225,13 @@ void libimcv_deinit(void)
|
||||
{
|
||||
if (ref_put(&libimcv_ref))
|
||||
{
|
||||
imcv_pts_components->remove_vendor(imcv_pts_components, PEN_TCG);
|
||||
imcv_pts_components->remove_vendor(imcv_pts_components, PEN_ITA);
|
||||
imcv_pts_components->destroy(imcv_pts_components);
|
||||
|
||||
imcv_pa_tnc_attributes->remove_vendor(imcv_pa_tnc_attributes, PEN_IETF);
|
||||
imcv_pa_tnc_attributes->remove_vendor(imcv_pa_tnc_attributes, PEN_ITA);
|
||||
imcv_pa_tnc_attributes->remove_vendor(imcv_pa_tnc_attributes, PEN_TCG);
|
||||
DESTROY_IF(imcv_pa_tnc_attributes);
|
||||
imcv_pa_tnc_attributes = NULL;
|
||||
DESTROY_IF(imcv_db);
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#include "pa_tnc/pa_tnc_attr_manager.h"
|
||||
#include "imv/imv_database.h"
|
||||
#include "imv/imv_session_manager.h"
|
||||
#include "pts/components/pts_component_manager.h"
|
||||
|
||||
#include <library.h>
|
||||
|
||||
@@ -68,4 +69,9 @@ extern imv_database_t* imcv_db;
|
||||
*/
|
||||
extern imv_session_manager_t* imcv_sessions;
|
||||
|
||||
/**
|
||||
* PTS Functional Component manager
|
||||
*/
|
||||
extern pts_component_manager_t* imcv_pts_components;
|
||||
|
||||
#endif /** IMCV_H_ @}*/
|
||||
@@ -18,14 +18,13 @@
|
||||
#include "ietf/ietf_attr.h"
|
||||
#include "ietf/ietf_attr_assess_result.h"
|
||||
#include "ietf/ietf_attr_remediation_instr.h"
|
||||
#include "tcg/seg/tcg_seg_attr_max_size.h"
|
||||
#include "tcg/seg/tcg_seg_attr_seg_env.h"
|
||||
#include "tcg/seg/tcg_seg_attr_next_seg.h"
|
||||
|
||||
#include <tncif_names.h>
|
||||
#include <tncif_pa_subtypes.h>
|
||||
|
||||
#include <tcg/seg/tcg_seg_attr_max_size.h>
|
||||
#include <tcg/seg/tcg_seg_attr_seg_env.h>
|
||||
#include <tcg/seg/tcg_seg_attr_next_seg.h>
|
||||
|
||||
#include <pen/pen.h>
|
||||
#include <collections/linked_list.h>
|
||||
#include <utils/debug.h>
|
||||
|
||||
+2
-4
@@ -1,8 +1,7 @@
|
||||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libtncif \
|
||||
-I$(top_srcdir)/src/libimcv \
|
||||
-I$(top_srcdir)/src/libpts
|
||||
-I$(top_srcdir)/src/libimcv
|
||||
|
||||
AM_CFLAGS = \
|
||||
$(PLUGIN_CFLAGS)
|
||||
@@ -10,8 +9,7 @@ AM_CFLAGS = \
|
||||
imcv_LTLIBRARIES = imc-attestation.la
|
||||
|
||||
imc_attestation_la_LIBADD = $(top_builddir)/src/libimcv/libimcv.la \
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
||||
$(top_builddir)/src/libpts/libpts.la
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la
|
||||
|
||||
imc_attestation_la_SOURCES = imc_attestation.c \
|
||||
imc_attestation_state.h imc_attestation_state.c \
|
||||
+4
-11
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2011-2012 Sansar Choinyambuu, Andreas Steffen
|
||||
* Copyright (C) 2011-2012 Sansar Choinyambuu
|
||||
* Copyright (C) 2011-2014 Andreas Steffen
|
||||
* HSR Hochschule fuer Technik Rapperswil
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
@@ -23,14 +24,10 @@
|
||||
#include <ietf/ietf_attr_product_info.h>
|
||||
#include <ietf/ietf_attr_string_version.h>
|
||||
#include <ietf/ietf_attr_assess_result.h>
|
||||
#include <os_info/os_info.h>
|
||||
|
||||
#include <libpts.h>
|
||||
|
||||
#include <pts/pts_error.h>
|
||||
|
||||
#include <tcg/pts/tcg_pts_attr_proto_caps.h>
|
||||
#include <tcg/pts/tcg_pts_attr_meas_algo.h>
|
||||
#include <os_info/os_info.h>
|
||||
#include <pts/pts_error.h>
|
||||
|
||||
#include <tncif_pa_subtypes.h>
|
||||
|
||||
@@ -90,7 +87,6 @@ TNC_Result TNC_IMC_API TNC_IMC_Initialize(TNC_IMCID imc_id,
|
||||
imc_attestation = NULL;
|
||||
return TNC_RESULT_FATAL;
|
||||
}
|
||||
libpts_init();
|
||||
|
||||
if (min_version > TNC_IFIMC_VERSION_1 || max_version < TNC_IFIMC_VERSION_1)
|
||||
{
|
||||
@@ -318,9 +314,6 @@ TNC_Result TNC_IMC_API TNC_IMC_Terminate(TNC_IMCID imc_id)
|
||||
DBG1(DBG_IMC, "IMC \"%s\" has not been initialized", imc_name);
|
||||
return TNC_RESULT_NOT_INITIALIZED;
|
||||
}
|
||||
|
||||
libpts_deinit();
|
||||
|
||||
imc_attestation->destroy(imc_attestation);
|
||||
imc_attestation = NULL;
|
||||
|
||||
File renamed without changes.
File renamed without changes.
+3
-2
@@ -16,7 +16,7 @@
|
||||
|
||||
#include "imc_attestation_state.h"
|
||||
|
||||
#include <libpts.h>
|
||||
#include <imcv.h>
|
||||
|
||||
#include <tncif_names.h>
|
||||
|
||||
@@ -194,7 +194,8 @@ METHOD(imc_attestation_state_t, create_component, pts_component_t*,
|
||||
|
||||
if (!found)
|
||||
{
|
||||
component = pts_components->create(pts_components, name, depth, NULL);
|
||||
component = imcv_pts_components->create(imcv_pts_components,
|
||||
name, depth, NULL);
|
||||
if (!component)
|
||||
{
|
||||
return NULL;
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
|
||||
/**
|
||||
* @defgroup imc_attestation imc_attestation
|
||||
* @ingroup libpts_plugins
|
||||
* @ingroup libimcv_plugins
|
||||
*
|
||||
* @defgroup imc_attestation_state_t imc_attestation_state
|
||||
* @{ @ingroup imc_attestation
|
||||
File renamed without changes.
@@ -21,7 +21,6 @@ AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libtncif \
|
||||
-I$(top_srcdir)/src/libimcv \
|
||||
-I$(top_srcdir)/src/libpts \
|
||||
-DSWID_DIRECTORY=\"${prefix}/share\"
|
||||
|
||||
AM_CFLAGS = \
|
||||
@@ -31,7 +30,6 @@ imcv_LTLIBRARIES = imc-swid.la
|
||||
|
||||
imc_swid_la_LIBADD = \
|
||||
$(top_builddir)/src/libimcv/libimcv.la \
|
||||
$(top_builddir)/src/libpts/libpts.la \
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la
|
||||
|
||||
imc_swid_la_SOURCES = imc_swid.c imc_swid_state.h imc_swid_state.c
|
||||
@@ -15,17 +15,15 @@
|
||||
|
||||
#include "imc_swid_state.h"
|
||||
|
||||
#include "libpts.h"
|
||||
#include "swid/swid_inventory.h"
|
||||
#include "swid/swid_error.h"
|
||||
#include "tcg/swid/tcg_swid_attr_req.h"
|
||||
#include "tcg/swid/tcg_swid_attr_tag_inv.h"
|
||||
#include "tcg/swid/tcg_swid_attr_tag_id_inv.h"
|
||||
|
||||
#include <imc/imc_agent.h>
|
||||
#include <imc/imc_msg.h>
|
||||
#include <ita/ita_attr.h>
|
||||
#include <ita/ita_attr_angel.h>
|
||||
#include "tcg/swid/tcg_swid_attr_req.h"
|
||||
#include "tcg/swid/tcg_swid_attr_tag_inv.h"
|
||||
#include "tcg/swid/tcg_swid_attr_tag_id_inv.h"
|
||||
#include "swid/swid_inventory.h"
|
||||
#include "swid/swid_error.h"
|
||||
|
||||
#include <tncif_pa_subtypes.h>
|
||||
|
||||
@@ -63,9 +61,6 @@ TNC_Result TNC_IMC_Initialize(TNC_IMCID imc_id,
|
||||
{
|
||||
return TNC_RESULT_FATAL;
|
||||
}
|
||||
|
||||
libpts_init();
|
||||
|
||||
if (min_version > TNC_IFIMC_VERSION_1 || max_version < TNC_IFIMC_VERSION_1)
|
||||
{
|
||||
DBG1(DBG_IMC, "no common IF-IMC version");
|
||||
@@ -431,9 +426,6 @@ TNC_Result TNC_IMC_Terminate(TNC_IMCID imc_id)
|
||||
DBG1(DBG_IMC, "IMC \"%s\" has not been initialized", imc_name);
|
||||
return TNC_RESULT_NOT_INITIALIZED;
|
||||
}
|
||||
|
||||
libpts_deinit();
|
||||
|
||||
imc_swid->destroy(imc_swid);
|
||||
imc_swid = NULL;
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-4
@@ -2,7 +2,6 @@ AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libtncif \
|
||||
-I$(top_srcdir)/src/libimcv \
|
||||
-I$(top_srcdir)/src/libpts \
|
||||
-DPLUGINS=\""${attest_plugins}\""
|
||||
|
||||
AM_CFLAGS = \
|
||||
@@ -12,8 +11,7 @@ imcv_LTLIBRARIES = imv-attestation.la
|
||||
|
||||
imv_attestation_la_LIBADD = \
|
||||
$(top_builddir)/src/libimcv/libimcv.la \
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
||||
$(top_builddir)/src/libpts/libpts.la
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la
|
||||
|
||||
imv_attestation_la_SOURCES = imv_attestation.c \
|
||||
imv_attestation_state.h imv_attestation_state.c \
|
||||
@@ -29,7 +27,6 @@ attest_SOURCES = attest.c \
|
||||
attest_db.h attest_db.c
|
||||
attest_LDADD = \
|
||||
$(top_builddir)/src/libimcv/libimcv.la \
|
||||
$(top_builddir)/src/libpts/libpts.la \
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la
|
||||
attest.o : $(top_builddir)/config.status
|
||||
|
||||
-3
@@ -28,7 +28,6 @@
|
||||
#include <utils/debug.h>
|
||||
|
||||
#include <imcv.h>
|
||||
#include <libpts.h>
|
||||
#include <pts/pts_meas_algo.h>
|
||||
|
||||
#include "attest_db.h"
|
||||
@@ -96,7 +95,6 @@ attest_db_t *attest;
|
||||
static void cleanup(void)
|
||||
{
|
||||
attest->destroy(attest);
|
||||
libpts_deinit();
|
||||
libimcv_deinit();
|
||||
#ifdef HAVE_SYSLOG
|
||||
closelog();
|
||||
@@ -479,7 +477,6 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
atexit(cleanup);
|
||||
libimcv_init(FALSE);
|
||||
libpts_init();
|
||||
|
||||
do_args(argc, argv);
|
||||
|
||||
+5
-4
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "attest_db.h"
|
||||
|
||||
#include "libpts.h"
|
||||
#include "imcv.h"
|
||||
#include "pts/pts_meas_algo.h"
|
||||
#include "pts/pts_file_meas.h"
|
||||
#include "pts/components/pts_comp_func_name.h"
|
||||
@@ -187,9 +187,10 @@ char* print_cfn(pts_comp_func_name_t *cfn)
|
||||
qualifier = cfn->get_qualifier(cfn);
|
||||
n = snprintf(buf, BUF_LEN, "0x%06x/0x%08x-0x%02x", vid, name, qualifier);
|
||||
|
||||
names = pts_components->get_comp_func_names(pts_components, vid);
|
||||
types = pts_components->get_qualifier_type_names(pts_components, vid);
|
||||
type = pts_components->get_qualifier(pts_components, cfn, flags);
|
||||
names = imcv_pts_components->get_comp_func_names(imcv_pts_components, vid);
|
||||
types = imcv_pts_components->get_qualifier_type_names(imcv_pts_components,
|
||||
vid);
|
||||
type = imcv_pts_components->get_qualifier(imcv_pts_components, cfn, flags);
|
||||
if (names && types)
|
||||
{
|
||||
n = snprintf(buf + n, BUF_LEN - n, " %N/%N [%s] %N",
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+4
-11
@@ -34,19 +34,15 @@
|
||||
#include <ietf/ietf_attr_string_version.h>
|
||||
#include <ita/ita_attr.h>
|
||||
#include <ita/ita_attr_device_id.h>
|
||||
|
||||
#include <libpts.h>
|
||||
|
||||
#include <pts/pts.h>
|
||||
#include <pts/pts_database.h>
|
||||
#include <pts/pts_creds.h>
|
||||
#include <pts/components/ita/ita_comp_func_name.h>
|
||||
|
||||
#include <tcg/tcg_attr.h>
|
||||
#include <tcg/pts/tcg_pts_attr_meas_algo.h>
|
||||
#include <tcg/pts/tcg_pts_attr_proto_caps.h>
|
||||
#include <tcg/pts/tcg_pts_attr_req_file_meas.h>
|
||||
#include <tcg/pts/tcg_pts_attr_req_file_meta.h>
|
||||
#include <pts/pts.h>
|
||||
#include <pts/pts_database.h>
|
||||
#include <pts/pts_creds.h>
|
||||
#include <pts/components/ita/ita_comp_func_name.h>
|
||||
|
||||
#include <tncif_pa_subtypes.h>
|
||||
|
||||
@@ -842,7 +838,6 @@ METHOD(imv_agent_if_t, destroy, void,
|
||||
DESTROY_IF(this->pts_credmgr);
|
||||
DESTROY_IF(this->agent);
|
||||
free(this);
|
||||
libpts_deinit();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -890,8 +885,6 @@ imv_agent_if_t *imv_attestation_agent_create(const char *name, TNC_IMVID id,
|
||||
.pts_db = pts_database_create(imcv_db),
|
||||
);
|
||||
|
||||
libpts_init();
|
||||
|
||||
if (!pts_meas_algo_probe(&this->supported_algorithms) ||
|
||||
!pts_dh_group_probe(&this->supported_dh_groups, mandatory_dh_groups) ||
|
||||
!pts_meas_algo_update(hash_alg, &this->supported_algorithms) ||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+3
-3
@@ -16,8 +16,7 @@
|
||||
|
||||
#include "imv_attestation_state.h"
|
||||
|
||||
#include <libpts.h>
|
||||
|
||||
#include <imcv.h>
|
||||
#include <imv/imv_lang_string.h>
|
||||
#include "imv/imv_reason_string.h"
|
||||
|
||||
@@ -404,7 +403,8 @@ METHOD(imv_attestation_state_t, create_component, pts_component_t*,
|
||||
}
|
||||
else
|
||||
{
|
||||
component = pts_components->create(pts_components, name, depth, pts_db);
|
||||
component = imcv_pts_components->create(imcv_pts_components,
|
||||
name, depth, pts_db);
|
||||
if (!component)
|
||||
{
|
||||
/* unsupported component */
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
|
||||
/**
|
||||
* @defgroup imv_attestation imv_attestation
|
||||
* @ingroup libpts_plugins
|
||||
* @ingroup libimcv_plugins
|
||||
*
|
||||
* @defgroup imv_attestation_state_t imv_attestation_state
|
||||
* @{ @ingroup imv_attestation
|
||||
@@ -1,8 +1,7 @@
|
||||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-I$(top_srcdir)/src/libtncif \
|
||||
-I$(top_srcdir)/src/libimcv \
|
||||
-I$(top_srcdir)/src/libpts
|
||||
-I$(top_srcdir)/src/libimcv
|
||||
|
||||
AM_CFLAGS = \
|
||||
$(PLUGIN_CFLAGS) $(json_CFLAGS)
|
||||
@@ -11,7 +10,6 @@ imcv_LTLIBRARIES = imv-swid.la
|
||||
|
||||
imv_swid_la_LIBADD = \
|
||||
$(top_builddir)/src/libimcv/libimcv.la \
|
||||
$(top_builddir)/src/libpts/libpts.la \
|
||||
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
||||
$(json_LIBS)
|
||||
|
||||
File renamed without changes.
+8
-12
@@ -20,21 +20,19 @@
|
||||
#include "imv_swid_state.h"
|
||||
#include "imv_swid_rest.h"
|
||||
|
||||
#include "libpts.h"
|
||||
#include "swid/swid_error.h"
|
||||
#include "swid/swid_inventory.h"
|
||||
#include <imcv.h>
|
||||
#include <imv/imv_agent.h>
|
||||
#include <imv/imv_msg.h>
|
||||
#include <ietf/ietf_attr_pa_tnc_error.h>
|
||||
#include <ita/ita_attr.h>
|
||||
#include <ita/ita_attr_angel.h>
|
||||
#include "tcg/seg/tcg_seg_attr_max_size.h"
|
||||
#include "tcg/seg/tcg_seg_attr_seg_env.h"
|
||||
#include "tcg/swid/tcg_swid_attr_req.h"
|
||||
#include "tcg/swid/tcg_swid_attr_tag_inv.h"
|
||||
#include "tcg/swid/tcg_swid_attr_tag_id_inv.h"
|
||||
|
||||
#include <imcv.h>
|
||||
#include <ietf/ietf_attr_pa_tnc_error.h>
|
||||
#include <imv/imv_agent.h>
|
||||
#include <imv/imv_msg.h>
|
||||
#include <ita/ita_attr.h>
|
||||
#include <ita/ita_attr_angel.h>
|
||||
#include "swid/swid_error.h"
|
||||
#include "swid/swid_inventory.h"
|
||||
|
||||
#include <tncif_names.h>
|
||||
#include <tncif_pa_subtypes.h>
|
||||
@@ -704,7 +702,6 @@ METHOD(imv_agent_if_t, destroy, void,
|
||||
DESTROY_IF(this->rest_api);
|
||||
this->agent->destroy(this->agent);
|
||||
free(this);
|
||||
libpts_deinit();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -748,7 +745,6 @@ imv_agent_if_t *imv_swid_agent_create(const char *name, TNC_IMVID id,
|
||||
{
|
||||
this->rest_api = imv_swid_rest_create(rest_api_uri, rest_api_timeout);
|
||||
}
|
||||
libpts_init();
|
||||
|
||||
return &this->public;
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -16,7 +16,7 @@
|
||||
#include "ita_comp_ima.h"
|
||||
#include "ita_comp_func_name.h"
|
||||
|
||||
#include "libpts.h"
|
||||
#include "imcv.h"
|
||||
#include "pts/pts_pcr.h"
|
||||
#include "pts/pts_ima_bios_list.h"
|
||||
#include "pts/pts_ima_event_list.h"
|
||||
File renamed without changes.
+4
-3
@@ -16,7 +16,7 @@
|
||||
#include "ita_comp_tboot.h"
|
||||
#include "ita_comp_func_name.h"
|
||||
|
||||
#include "libpts.h"
|
||||
#include "imcv.h"
|
||||
#include "pts/components/pts_component.h"
|
||||
|
||||
#include <utils/debug.h>
|
||||
@@ -215,7 +215,7 @@ METHOD(pts_component_t, verify, status_t,
|
||||
}
|
||||
vid = this->name->get_vendor_id(this->name);
|
||||
name = this->name->get_name(this->name);
|
||||
names = pts_components->get_comp_func_names(pts_components, vid);
|
||||
names = imcv_pts_components->get_comp_func_names(imcv_pts_components, vid);
|
||||
|
||||
if (this->count)
|
||||
{
|
||||
@@ -320,7 +320,8 @@ METHOD(pts_component_t, destroy, void,
|
||||
this->cid, this->aik_id);
|
||||
vid = this->name->get_vendor_id(this->name);
|
||||
name = this->name->get_name(this->name);
|
||||
names = pts_components->get_comp_func_names(pts_components, vid);
|
||||
names = imcv_pts_components->get_comp_func_names(imcv_pts_components,
|
||||
vid);
|
||||
DBG1(DBG_PTS, "deleted %d registered %N '%N' functional component "
|
||||
"evidence measurements", count, pen_names, vid, names, name);
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+8
-5
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2011-2012 Andreas Steffen
|
||||
* Copyright (C) 2011-2014 Andreas Steffen
|
||||
*
|
||||
* HSR Hochschule fuer Technik Rapperswil
|
||||
*
|
||||
@@ -14,7 +14,7 @@
|
||||
* for more details.
|
||||
*/
|
||||
|
||||
#include "libpts.h"
|
||||
#include "imcv.h"
|
||||
#include "pts/components/pts_comp_func_name.h"
|
||||
|
||||
#include <utils/debug.h>
|
||||
@@ -108,9 +108,12 @@ METHOD(pts_comp_func_name_t, log_, void,
|
||||
char flags[8];
|
||||
int type;
|
||||
|
||||
names = pts_components->get_comp_func_names(pts_components, this->vid);
|
||||
types = pts_components->get_qualifier_type_names(pts_components, this->vid);
|
||||
type = pts_components->get_qualifier(pts_components, &this->public, flags);
|
||||
names = imcv_pts_components->get_comp_func_names(imcv_pts_components,
|
||||
this->vid);
|
||||
types = imcv_pts_components->get_qualifier_type_names(imcv_pts_components,
|
||||
this->vid);
|
||||
type = imcv_pts_components->get_qualifier(imcv_pts_components,
|
||||
&this->public, flags);
|
||||
|
||||
if (names && types)
|
||||
{
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -15,14 +15,13 @@
|
||||
|
||||
#include "seg_contract.h"
|
||||
#include "seg_env.h"
|
||||
#include "tcg/seg/tcg_seg_attr_seg_env.h"
|
||||
|
||||
#include <utils/debug.h>
|
||||
#include <bio/bio_writer.h>
|
||||
|
||||
#include <tncif_pa_subtypes.h>
|
||||
|
||||
#include <tcg/seg/tcg_seg_attr_seg_env.h>
|
||||
|
||||
typedef struct private_seg_contract_t private_seg_contract_t;
|
||||
|
||||
/**
|
||||
|
||||
@@ -17,13 +17,12 @@
|
||||
|
||||
#include "imcv.h"
|
||||
#include "pa_tnc/pa_tnc_msg.h"
|
||||
#include "tcg/seg/tcg_seg_attr_seg_env.h"
|
||||
|
||||
#include <utils/debug.h>
|
||||
#include <bio/bio_reader.h>
|
||||
#include <bio/bio_writer.h>
|
||||
|
||||
#include <tcg/seg/tcg_seg_attr_seg_env.h>
|
||||
|
||||
#define BASE_ATTR_ID_PREFIX 0xFF
|
||||
|
||||
typedef struct private_seg_env_t private_seg_env_t;
|
||||
|
||||
File renamed without changes.
Loaded 100 of 159 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user