* High Entropy Random Data
* used in calculation of shared secret for the assessment session
*/
-static chunk_t responder_nonce;
+static char *responder_nonce = NULL;
/**
* see section 3.7.1 of TCG TNC IF-IMC Specification 1.2
TNC_Version max_version,
TNC_Version *actual_version)
{
+ rng_t *rng;
+
if (imc_attestation)
{
DBG1(DBG_IMC, "IMC \"%s\" has already been initialized", imc_name);
* High Entropy Random Data
* used in calculation of shared secret for the assessment session
*/
-static chunk_t initiator_nonce;
+static char *initiator_nonce = NULL;
/**
* PTS file measurement database
TNC_Version *actual_version)
{
char *hash_alg, *dh_group, *uri, *cadir;
+ rng_t *rng;
if (imv_attestation)
{
}
DESTROY_IF(pts_db);
DESTROY_IF(pts_credmgr);
- free(initiator_nonce.ptr);
+ free(initiator_nonce);
libpts_deinit();
private_pts_t *this, char *path, pts_error_code_t *error_code)
{
struct stat st;
-
+
*error_code = 0;
if (!stat(path, &st))