libimcv: No need to load AIK pubkey if AIK certificate is available
This commit is contained in:
@@ -388,7 +388,9 @@ static void load_aik(private_pts_t *this)
|
|||||||
DBG1(DBG_PTS, "AIK Blob is not available");
|
DBG1(DBG_PTS, "AIK Blob is not available");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get AIK public key */
|
/* get AIK public key if no AIK certificate is available */
|
||||||
|
if (!this->aik_cert)
|
||||||
|
{
|
||||||
if (key_path)
|
if (key_path)
|
||||||
{
|
{
|
||||||
map = chunk_map(key_path, FALSE);
|
map = chunk_map(key_path, FALSE);
|
||||||
@@ -408,6 +410,7 @@ static void load_aik(private_pts_t *this)
|
|||||||
{
|
{
|
||||||
DBG1(DBG_PTS, "AIK public key is not available");
|
DBG1(DBG_PTS, "AIK public key is not available");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Load AIK item into TPM 1.2 object */
|
/* Load AIK item into TPM 1.2 object */
|
||||||
tpm_12 = (tpm_tss_trousers_t *)this->tpm;
|
tpm_12 = (tpm_tss_trousers_t *)this->tpm;
|
||||||
|
|||||||
Reference in New Issue
Block a user