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)
committerPaul Yang <paulyang.inf@gmail.com>
Fri, 9 Jun 2017 18:22:22 +0000 (02:22 +0800)
commitf2582f08d5167ee84b7b313fd1435fe91ee44880
treef8cd79cdc8de1cbc357a21ed7d6f380dadc15671
parent62b0a0dea612e3683c6bd4bef359fceda00238e8
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)
apps/spkac.c