Vanetza
Loading...
Searching...
No Matches
revocation_lookup.cpp
1
#
include
<
vanetza
/
security
/
v3
/
revocation_lookup
.
hpp
>
2
3
namespace
vanetza
4
{
5
namespace
security
6
{
7
namespace
v3
8
{
9
10
void
RevocationMemoryLookup
::revoke(
const
HashedId8& issuer,
const
HashedId8& cert)
11
{
12
m_revoked[issuer].insert(cert);
13
}
14
15
void
RevocationMemoryLookup
::clear(
const
HashedId8& issuer)
16
{
17
m_revoked.erase(issuer);
18
}
19
20
bool
RevocationMemoryLookup
::
is_revoked
(
const
HashedId8& issuer,
const
HashedId8& cert)
const
21
{
22
auto
it = m_revoked.find(issuer);
23
if
(it == m_revoked.end()) {
24
return
false
;
25
}
26
return
it->second.count(cert) != 0;
27
}
28
29
}
// namespace v3
30
}
// namespace security
31
}
// namespace vanetza
vanetza::security::v3::RevocationMemoryLookup
Definition
revocation_lookup.hpp:42
vanetza::security::v3::RevocationMemoryLookup::is_revoked
bool is_revoked(const HashedId8 &issuer, const HashedId8 &cert) const override
Definition
revocation_lookup.cpp:20
vanetza
security
v3
revocation_lookup.cpp
Generated on
for Vanetza by
1.18.0