Re: [ptxdist] [PATCH v3 1/5] ptxd_lib_code_signing: cs_get_ca(): improve error handling

2021-07-12 Thread Marc Kleine-Budde
On 09.07.2021 15:36:00, Michael Olbrich wrote: > So this is not what we want here. Sorry, I didn't notice this in the last > version. The idea is this: > > If the keydir does not exist, then cs_get_ca)() was evaluated too early. So > the check above should be added as it is here. > What's now miss

Re: [ptxdist] [PATCH v3 1/5] ptxd_lib_code_signing: cs_get_ca(): improve error handling

2021-07-09 Thread Michael Olbrich
On Thu, Jul 08, 2021 at 10:39:37PM +0200, Roland Hieber wrote: > From: Marc Kleine-Budde > > This patch changes cs_get_ca() to only output the CA if it actually > exists, or print an error and return 1 instead. This makes it possible > to use make's $(if $(filter-out, ERROR_CA_NOT_YET_SET, ...))

[ptxdist] [PATCH v3 1/5] ptxd_lib_code_signing: cs_get_ca(): improve error handling

2021-07-08 Thread Roland Hieber
From: Marc Kleine-Budde This patch changes cs_get_ca() to only output the CA if it actually exists, or print an error and return 1 instead. This makes it possible to use make's $(if $(filter-out, ERROR_CA_NOT_YET_SET, ...)) conditional. Co-authored-by: Roland Hieber Signed-off-by: Marc Kleine-B