pem: Handle BER indefinite length encoding as binary ASN.1
authorMartin Willi <martin@revosec.ch>
Tue, 9 Dec 2014 13:19:39 +0000 (14:19 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 12 Dec 2014 12:11:29 +0000 (13:11 +0100)
commit58cacf0a74b6aeee38e92768b7d352e7747285af
tree369f6e601f9e7589bdcf1a1b608dede99ed896c5
parent3a26566fa90ad978a2b0e58e84b2200e2293e193
pem: Handle BER indefinite length encoding as binary ASN.1

While our ASN.1 parser can't handle BER indefinite length encoding, the OpenSSL
backend can. Some PKCS#12 containers get encoded this way, so we should
support loading such files in the pem plugin.
src/libstrongswan/plugins/pem/pem_builder.c