diff options
author | Sansar Choinyambuu <schoinya@hsr.ch> | 2011-10-07 15:40:29 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2011-11-28 14:34:21 +0100 |
commit | ea195cb6ef67339c67e322e32074fdc5a414bdd6 (patch) | |
tree | e71528d4bbe07929d7544c68e7f730a9554772a2 /src | |
parent | 924f3bf59e3ada87a2ca927a0e662ff76ee7b4fe (diff) | |
download | strongswan-ea195cb6ef67339c67e322e32074fdc5a414bdd6.tar.bz2 strongswan-ea195cb6ef67339c67e322e32074fdc5a414bdd6.tar.xz |
Changed encoding type to ASN.1 DER
Diffstat (limited to 'src')
-rw-r--r-- | src/libpts/pts/pts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libpts/pts/pts.c b/src/libpts/pts/pts.c index d66130839..98d5d27ce 100644 --- a/src/libpts/pts/pts.c +++ b/src/libpts/pts/pts.c @@ -782,7 +782,7 @@ METHOD(pts_t, quote_tpm, bool, /* Create from AIK public key a HKEY object to sign Quote operation output*/ if (this->aik->get_type(this->aik) == CERT_TRUSTED_PUBKEY) { - if (!this->aik->get_encoding(this->aik, CERT_PEM, &aik_key_encoding)) + if (!this->aik->get_encoding(this->aik, CERT_ASN1_DER, &aik_key_encoding)) { DBG1(DBG_PTS, "encoding AIK certificate for quote operation failed"); goto err1; @@ -797,7 +797,7 @@ METHOD(pts_t, quote_tpm, bool, DBG1(DBG_PTS, "unable to retrieve public key from AIK certificate"); goto err1; } - if (!key->get_encoding(key, PUBKEY_PEM, &aik_key_encoding)) + if (!key->get_encoding(key, PUBKEY_ASN1_DER, &aik_key_encoding)) { DBG1(DBG_PTS, "encoding AIK Public Key for quote operation failed"); goto err1; |