make encoding of CERT_TRUSTED_PUBKEY configurable
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 5 Sep 2011 10:42:22 +0000 (12:42 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 8 Sep 2011 10:08:16 +0000 (12:08 +0200)
src/libstrongswan/plugins/pubkey/pubkey_cert.c

index c50189a..aa4c693 100644 (file)
@@ -166,7 +166,7 @@ static bool get_validity(private_pubkey_cert_t *this, time_t *when,
 static bool get_encoding(private_pubkey_cert_t *this, cred_encoding_type_t type,
                                                 chunk_t *encoding)
 {
-       return this->key->get_encoding(this->key, PUBKEY_ASN1_DER, encoding);
+       return this->key->get_encoding(this->key, type, encoding);
 }
 
 /**