Check that the obtained public key is valid
authorMatt Caswell <matt@openssl.org>
Mon, 25 Apr 2016 15:44:19 +0000 (16:44 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 19 May 2016 19:46:06 +0000 (20:46 +0100)
commitc223c4a9ce9b36b352a55e91862e1c6eda533723
tree222c3e5d466fcce6e6321ae6012788ff660b4ca1
parent2ee65a672fe18fe275cf7ac1f86e8723ee38ebdc
Check that the obtained public key is valid

In the X509 app check that the obtained public key is valid before we
attempt to use it.

Issue reported by Yuan Jochen Kang.

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
apps/x509.c