aboutsummaryrefslogtreecommitdiffstats
path: root/src/libimcv/tcg
diff options
context:
space:
mode:
authorSansar Choinyambuu <schoinya@hsr.ch>2011-09-05 12:36:56 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2011-09-08 12:08:16 +0200
commit517c372a5a0a72061a0583373e762c477cc48d8d (patch)
treeafdc44c1103350990147f8c208480f776ded4863 /src/libimcv/tcg
parentd3b0c23c24e03dae5bb5863ea5423f5176ee86e2 (diff)
downloadstrongswan-517c372a5a0a72061a0583373e762c477cc48d8d.tar.bz2
strongswan-517c372a5a0a72061a0583373e762c477cc48d8d.tar.xz
Inserted missing "!" mark
Changed variable name for AIK cert, key paths in strongswan.conf
Diffstat (limited to 'src/libimcv/tcg')
-rw-r--r--src/libimcv/tcg/pts/pts.c4
-rw-r--r--src/libimcv/tcg/tcg_pts_attr_aik.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libimcv/tcg/pts/pts.c b/src/libimcv/tcg/pts/pts.c
index e8cd632b9..e75ad7441 100644
--- a/src/libimcv/tcg/pts/pts.c
+++ b/src/libimcv/tcg/pts/pts.c
@@ -177,9 +177,9 @@ static void load_aik(private_pts_t *this)
char *cert_path, *key_path;
cert_path = lib->settings->get_str(lib->settings,
- "libimcv.plugins.imc-attestation.aik_cert", NULL);
+ "libimcv.plugins.imc-attestation.aikcert", NULL);
key_path = lib->settings->get_str(lib->settings,
- "libimcv.plugins.imc-attestation.aik_key", NULL);
+ "libimcv.plugins.imc-attestation.aikkey", NULL);
if (cert_path)
{
diff --git a/src/libimcv/tcg/tcg_pts_attr_aik.c b/src/libimcv/tcg/tcg_pts_attr_aik.c
index b2c525a19..c442f3131 100644
--- a/src/libimcv/tcg/tcg_pts_attr_aik.c
+++ b/src/libimcv/tcg/tcg_pts_attr_aik.c
@@ -115,7 +115,7 @@ METHOD(pa_tnc_attr_t, build, void,
{
flags |= PTS_AIK_FLAGS_NAKED_KEY;
}
- if (this->aik->get_encoding(this->aik, CERT_ASN1_DER, &aik_blob))
+ if (!this->aik->get_encoding(this->aik, CERT_ASN1_DER, &aik_blob))
{
DBG1(DBG_TNC, "encoding of Attestation Identity Key failed");
aik_blob = chunk_empty;