aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSansar Choinyambuu <schoinya@hsr.ch>2011-10-07 09:13:42 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2011-11-28 17:43:00 +0100
commit6c33703c4af1879466d18bc894d78d7a1282fbe8 (patch)
tree67571bfc5e377cae23f45a71d73f8f8840408123 /src
parentc0e4e0a6ab675e9bb34ce55c01aa17eeaa79fdbd (diff)
downloadstrongswan-6c33703c4af1879466d18bc894d78d7a1282fbe8.tar.bz2
strongswan-6c33703c4af1879466d18bc894d78d7a1282fbe8.tar.xz
Implemented first version of tpm quote function
Diffstat (limited to 'src')
-rw-r--r--src/libpts/pts/pts.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libpts/pts/pts.h b/src/libpts/pts/pts.h
index d7603222f..7102a0333 100644
--- a/src/libpts/pts/pts.h
+++ b/src/libpts/pts/pts.h
@@ -363,6 +363,7 @@ struct pts_t {
/**
* Reads given PCR value and returns it
+ * Expects owner secret to be WELL_KNOWN_SECRET
*
* @param pcr_num Number of PCR to read
* @param pcr_value Chunk to save pcr read output
@@ -372,6 +373,7 @@ struct pts_t {
/**
* Extends given PCR with given value
+ * Expects owner secret to be WELL_KNOWN_SECRET
*
* @param pcr_num Number of PCR to extend
* @param input Value to extend
@@ -382,12 +384,14 @@ struct pts_t {
/**
* Quote over PCR's
+ * 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 num_of_pcr Number of PCR's
* @param quote Chunk to save quote operation output
* @return FALSE in case of TSS error, TRUE otherwise
*/
- bool (*quote_tpm)(pts_t *this, u_int32_t pcrs, chunk_t *quote);
+ bool (*quote_tpm)(pts_t *this, u_int32_t *pcrs, u_int32_t num_of_pcrs, chunk_t *quote);
/**
* Destroys a pts_t object.