Inserted missing "!" mark
authorSansar Choinyambuu <schoinya@hsr.ch>
Mon, 5 Sep 2011 10:36:56 +0000 (12:36 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 8 Sep 2011 10:08:16 +0000 (12:08 +0200)
Changed variable name for AIK cert, key paths in strongswan.conf

src/libimcv/tcg/pts/pts.c
src/libimcv/tcg/tcg_pts_attr_aik.c

index e8cd632..e75ad74 100644 (file)
@@ -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)
        {
index b2c525a..c442f31 100644 (file)
@@ -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;