Keep last AR ID
This commit is contained in:
@@ -847,6 +847,7 @@ METHOD(attest_db_t, list_devices, void,
|
||||
if (e_ar)
|
||||
{
|
||||
e_ar->enumerate(e_ar, &ar_id_type, &ar_id_value);
|
||||
ar_id_value = chunk_clone(ar_id_value);
|
||||
e_ar->destroy(e_ar);
|
||||
}
|
||||
}
|
||||
@@ -854,6 +855,7 @@ METHOD(attest_db_t, list_devices, void,
|
||||
{
|
||||
printf(" %.*s", (int)ar_id_value.len, ar_id_value.ptr);
|
||||
}
|
||||
last_ar_id = ar_id;
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user