Check that the obtained public key is valid
authorMatt Caswell <matt@openssl.org>
Mon, 25 Apr 2016 15:50:59 +0000 (16:50 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 19 May 2016 20:07:15 +0000 (21:07 +0100)
commit2e648db2469ea94d54fa51e3af7ac54663b94966
tree61b4679527a0c70cd91ba5ce79038441fdb65b73
parentec8f246e6ed4d39a8a5417078eaa49f3e757c25d
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