Searched hist:"15 cbbec294c6fb89c4c0b8142c033d18ecb1379c" (Results 1 – 1 of 1) sorted by relevance
/openbmc/phosphor-certificate-manager/ |
H A D | certs_manager.cpp | diff 15cbbec294c6fb89c4c0b8142c033d18ecb1379c Thu Jan 16 06:50:45 CST 2020 Zbigniew Lukwinski <zbigniew.lukwinski@linux.intel.com> Change InternalFailure to NotAllowed for replace
This patch is about using NotAllowed instead of InternalFailure for certificate replacement routine. Currently there is a check to prevent replacing current certificate with certificate with subject/issuer already existing on the certificate list (currently replacing certificate is not taken into account). And for that case it makes sense to use NotAllowed error instead of InternalFailure.
Tested by replacing one of the currently available certificates with new one with subject/issuer the same as one of the currently available certificate.
Signed-off-by: Zbigniew Lukwinski <zbigniew.lukwinski@linux.intel.com> Change-Id: Ia480e8fe9b70ba7f0291541f47e78680f48a3646
|