Vanetza
Loading...
Searching...
No Matches
issuer_lookup.hpp
1#pragma once
2#include <vanetza/security/hashed_id.hpp>
3
4namespace vanetza
5{
6namespace security
7{
8namespace v3
9{
10
11class Certificate;
12
13/**
14 * Resolves a signing certificate's issuer by digest, typically backed by
15 * PKI-managed trust material rather than the peer-AT CertificateCache.
16 */
18{
19public:
20 virtual ~IssuerLookup() = default;
21
22 /**
23 * \param digest issuer's HashedId8
24 * \return pointer to the issuer certificate, or nullptr if unknown.
25 */
26 virtual const Certificate* find_issuer(const HashedId8& digest) const = 0;
27};
28
29} // namespace v3
30} // namespace security
31} // namespace vanetza
Verdict valid_for_signing(const v3::CertificateView &, ItsAid) override
virtual Verdict valid_for_signing(const CertificateView &certificate, ItsAid app)=0
boost::optional< HashedId8 > calculate_digest() const
boost::optional< HashedId8 > issuer_digest() const
Verdict valid_for_signing(const CertificateView &, ItsAid) override
virtual const Certificate * find_issuer(const HashedId8 &digest) const =0
Verdict valid_for_signing(const CertificateView &, ItsAid) override