Improved implementation of Read PCR/ Extend PCR/ Quote_TPM functions
Implemented creating/handling of Simple Evidence Final attribute (incomplete)
This commit is contained in:
committed by
Andreas Steffen
parent
ee6a3bd711
commit
0788198047
@@ -310,6 +310,10 @@ TNC_Result TNC_IMC_ReceiveMessage(TNC_IMCID imc_id,
|
|||||||
|
|
||||||
attr_list->destroy(attr_list);
|
attr_list->destroy(attr_list);
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
|
err:
|
||||||
|
DESTROY_IF(attr_list);
|
||||||
|
return TNC_RESULT_FATAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -875,6 +875,7 @@ METHOD(pts_t, quote_tpm, bool,
|
|||||||
goto err3;
|
goto err3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
enumerator->destroy(enumerator);
|
||||||
|
|
||||||
/* Set the Validation Data */
|
/* Set the Validation Data */
|
||||||
valData.ulExternalDataLength = this->secret.len;
|
valData.ulExternalDataLength = this->secret.len;
|
||||||
|
|||||||
@@ -386,14 +386,13 @@ struct pts_t {
|
|||||||
* Quote over PCR's
|
* Quote over PCR's
|
||||||
* Expects owner and SRK secret to be WELL_KNOWN_SECRET and no password set for AIK
|
* Expects owner and SRK secret to be WELL_KNOWN_SECRET and no password set for AIK
|
||||||
*
|
*
|
||||||
* @param pcrs Set of PCR's to make quotation over
|
* @param pcrs List of PCR's to make quotation over
|
||||||
* @param num_of_pcr Number of PCR's
|
|
||||||
* @param pcr_composite Chunk to save pcr composite structure
|
* @param pcr_composite Chunk to save pcr composite structure
|
||||||
* @param quote_signature Chunk to save quote operation output
|
* @param quote_signature Chunk to save quote operation output
|
||||||
* without external data (anti-replay protection)
|
* without external data (anti-replay protection)
|
||||||
* @return FALSE in case of TSS error, TRUE otherwise
|
* @return FALSE in case of TSS error, TRUE otherwise
|
||||||
*/
|
*/
|
||||||
bool (*quote_tpm)(pts_t *this, u_int32_t *pcrs, u_int32_t num_of_pcrs,
|
bool (*quote_tpm)(pts_t *this, linked_list_t *pcrs,
|
||||||
chunk_t *pcr_composite, chunk_t *quote_signature);
|
chunk_t *pcr_composite, chunk_t *quote_signature);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user