From 08fcce44990c287c02b51c1a02f5676e14f1846a Mon Sep 17 00:00:00 2001 From: Raphael Riebl Date: Tue, 10 Sep 2024 08:11:57 +0000 Subject: [PATCH] security: request certificate from unknown station (v3) --- vanetza/security/straight_verify_service.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vanetza/security/straight_verify_service.cpp b/vanetza/security/straight_verify_service.cpp index c80f6a17b..dcffcc8b4 100644 --- a/vanetza/security/straight_verify_service.cpp +++ b/vanetza/security/straight_verify_service.cpp @@ -436,7 +436,10 @@ VerifyConfirm StraightVerifyService::verify(const v3::SecuredMessage& msg) } const v3::asn1::Certificate* certificate = boost::apply_visitor(certificate_lookup_visitor, signer_identifier); - if (!certificate) { + if (!certificate && maybe_digest) { + if (m_context_v3.m_sign_policy) { + m_context_v3.m_sign_policy->request_unrecognized_certificate(*maybe_digest); + } confirm.report = VerificationReport::Signer_Certificate_Not_Found; return confirm; }