mirror of
https://github.com/openssl/openssl.git
synced 2026-10-29 08:56:08 +08:00
The issuer and the serialNumber are independently OPTIONAL in a CertTemplate. A component absent from the request cannot confirm a match with the reference cert, and ASN1_INTEGER_cmp() does not accept NULL, so require each component the reference cert has to be present in the request and to be equal. Fixes:66be663b64"cmp_mock_srv.c: Add missing OldCertID check for 'kur' cert update requests" References:b971d4198d"CMP mock server: add -ref_cert option and corresponding ossl_cmp_mock_srv_set1_refCert()" Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Mounir Idrassi <mounir.idrassi@idrix.fr> Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org> Merge-date: Sat Oct 24 09:44:19 2026 Merged-from: https://github.com/openssl/openssl/pull/33071