diff options
Diffstat (limited to 'src/libimcv/tcg/tcg_pts_attr_aik.c')
-rw-r--r-- | src/libimcv/tcg/tcg_pts_attr_aik.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |