Checking the return value in openssl(1) ca.c
authorinoguchi <inoguchi@openbsd.org>
Sat, 28 Aug 2021 02:11:18 +0000 (02:11 +0000)
committerinoguchi <inoguchi@openbsd.org>
Sat, 28 Aug 2021 02:11:18 +0000 (02:11 +0000)
commit54292de2962f6dec056312c7f77fc2d50caa9713
tree787fae4aeb5ee8d746c4f6120617f600d4cac579
parentd8b32369e410195a96a98d17715e53eaad81ae35
Checking the return value in openssl(1) ca.c

Some functions are used without verifying the return value in openssl(1) ca.
This diff adds checking for the function return value.
With this diff, I changed return value of the write_new_certificate from void
to int to return the condition to the caller.

ok and comments from tb@
usr.bin/openssl/ca.c