diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2012-04-22 17:40:59 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2012-04-22 17:40:59 +0200 |
commit | 3092bf1090bbac5d243baec7020397fe12820f63 (patch) | |
tree | 41aceb96a1738d488f7acc25a924f04bcdd62178 /src | |
parent | 5895c2e948a2e7e323167507eda44facba60ddfe (diff) | |
download | strongswan-3092bf1090bbac5d243baec7020397fe12820f63.tar.bz2 strongswan-3092bf1090bbac5d243baec7020397fe12820f63.tar.xz |
exit if TBOOT dummy measurements are not defined
Diffstat (limited to 'src')
-rw-r--r-- | src/libpts/pts/components/ita/ita_comp_tboot.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libpts/pts/components/ita/ita_comp_tboot.c b/src/libpts/pts/components/ita/ita_comp_tboot.c index 287aae727..a85de8cd8 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); |