Fix possible usage of NULL pointers in apps/spkac.c
authorPaul Yang <paulyang.inf@gmail.com>
Fri, 9 Jun 2017 18:22:22 +0000 (02:22 +0800)
committerRich Salz <rsalz@openssl.org>
Sat, 10 Jun 2017 19:18:25 +0000 (15:18 -0400)
commitffb1065e8b658cfb50e50428c92c77051d1f2308
tree1e52145a1d798afe40a5d5343f03aef51b29e983
parent8270415d4ab6e3978cdd604d416c4f1f86289c4a
Fix possible usage of NULL pointers in apps/spkac.c

Check return value of NETSCAPE_SPKI_new() and
NETSCAPE_SPKI_b64_encode(), and also clean up coding style incidentally.

Signed-off-by: Paul Yang <paulyang.inf@gmail.com>
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3647)
(cherry picked from commit f2582f08d5167ee84b7b313fd1435fe91ee44880)
apps/spkac.c