APPS load_key_certs_crls(): improve error string macro FAIL_NAME

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21129)
This commit is contained in:
Dr. David von Oheimb 2023-06-05 22:53:43 +02:00 committed by Pauli
parent f36504cc39
commit 4085ba874e
1 changed files with 4 additions and 4 deletions

View File

@ -908,10 +908,10 @@ static const char *format2string(int format)
SET_EXPECT(val); \
}
#define FAIL_NAME \
(ppkey != NULL ? "key etc." : ppubkey != NULL ? "public key etc." : \
pparams != NULL ? "params etc." : \
pcert != NULL ? "cert etc." : pcerts != NULL ? "certs etc." : \
pcrl != NULL ? "CRL etc." : pcrls != NULL ? "CRLs etc." : NULL)
(ppkey != NULL ? "private key" : ppubkey != NULL ? "public key" : \
pparams != NULL ? "key parameters" : \
pcert != NULL ? "certificate" : pcerts != NULL ? "certificates" : \
pcrl != NULL ? "CRL" : pcrls != NULL ? "CRLs" : NULL)
/*
* Load those types of credentials for which the result pointer is not NULL.
* Reads from stdio if uri is NULL and maybe_stdin is nonzero.