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:16:06 +0000 (15:16 -0400)
commitbc4ce5e8b66e10be23b40b162522df8df5081460
tree9b0da09ac89e3a71551d8a801356846903f7f00f
parentebacf25ae33639257665c929f3a3a08c3618dfdb
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