[crypto] Enable both DER and PEM formats by default
authorMichael Brown <mcb30@ipxe.org>
Fri, 29 Jul 2016 14:40:39 +0000 (15:40 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 29 Jul 2016 14:40:39 +0000 (15:40 +0100)
commit942b798c8d143042fc17c7fadea528fee5cbebc2
treeb28d383dd7745c88c406238bebaf5765dfe1c81a
parentb7e43b033556106ef3e8b51e6c51710f1d3c999c
[crypto] Enable both DER and PEM formats by default

Enable both IMAGE_DER and IMAGE_PEM by default, and drag in the
relevant objects only when image_asn1() is present in the binary.

This allows "imgverify" to transparently use either DER or PEM
signature files.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/config/config.c
src/config/config_asn1.c [new file with mode: 0644]
src/config/general.h
src/core/image.c
src/crypto/asn1.c