From 07b60afdd87cc0d3ceedd8d031e415a17fbceca4 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Mon, 5 Sep 2011 12:42:22 +0200 Subject: [PATCH] make encoding of CERT_TRUSTED_PUBKEY configurable --- src/libstrongswan/plugins/pubkey/pubkey_cert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstrongswan/plugins/pubkey/pubkey_cert.c b/src/libstrongswan/plugins/pubkey/pubkey_cert.c index c50189a8b..aa4c69314 100644 --- a/src/libstrongswan/plugins/pubkey/pubkey_cert.c +++ b/src/libstrongswan/plugins/pubkey/pubkey_cert.c @@ -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); } /**