spkac: Check return values of NETSCAPE_SPKI functions
authorVladimir Panteleev <git@vladimir.panteleev.md>
Tue, 3 Mar 2020 18:04:00 +0000 (18:04 +0000)
committerDmitry Belyavskiy <beldmit@gmail.com>
Mon, 9 Mar 2020 08:51:51 +0000 (11:51 +0300)
commit8293fb6840840a5252bb6671c48486bc86857b5f
treef8f280f944c4bb7e55d4fc8ae101e4d67da155dd
parentd62be1580bf402f7088cdec5f21a87f27f40f18e
spkac: Check return values of NETSCAPE_SPKI functions

Fixes silently producing an invalid SPKAC with non-RSA keys.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/11224)
apps/spkac.c