Skip to content

Commit

Permalink
security: request certificate from unknown station (v3)
Browse files Browse the repository at this point in the history
  • Loading branch information
riebl committed Sep 10, 2024
1 parent b2c2703 commit 08fcce4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vanetza/security/straight_verify_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 08fcce4

Please sign in to comment.