From: Andreas Steffen Date: Sun, 22 Apr 2012 15:40:59 +0000 (+0200) Subject: exit if TBOOT dummy measurements are not defined X-Git-Tag: 4.6.3~17 X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=commitdiff_plain;h=3092bf1090bbac5d243baec7020397fe12820f63 exit if TBOOT dummy measurements are not defined --- diff --git a/src/libpts/pts/components/ita/ita_comp_tboot.c b/src/libpts/pts/components/ita/ita_comp_tboot.c index 287aae7..a85de8c 100644 --- a/src/libpts/pts/components/ita/ita_comp_tboot.c +++ b/src/libpts/pts/components/ita/ita_comp_tboot.c @@ -144,6 +144,11 @@ METHOD(pts_component_t, measure, status_t, return FAILED; } + if (meas_hex == NULL || pcr_before_hex == NULL || pcr_after_hex == NULL) + { + return FAILED; + } + hash_algo = pts->get_meas_algorithm(pts); hash_size = pts_meas_algo_hash_size(hash_algo); pcr_len = pts->get_pcr_len(pts);