Skip to content

Commit

Permalink
Merge pull request #241 from khevessy/small_fixes
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
riebl authored Dec 14, 2024
2 parents 74d75e0 + 1f3a49d commit 9a2af6b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion vanetza/security/v2/signature.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <vanetza/security/v2/serialization.hpp>
#include <boost/optional/optional.hpp>
#include <boost/variant/variant.hpp>
#include <future>

namespace vanetza
{
Expand Down
2 changes: 1 addition & 1 deletion vanetza/security/v3/certificate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ Certificate fake_certificate()
return certi;
}

void serialize(OutputArchive& ar, Certificate& certificate)
void serialize(OutputArchive& ar, const Certificate& certificate)
{
ByteBuffer buffer = certificate.encode();
ar.save_binary(buffer.data(), buffer.size());
Expand Down
2 changes: 1 addition & 1 deletion vanetza/security/v3/certificate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ ByteBuffer get_app_permissions(const asn1::EtsiTs103097Certificate& cert, ItsAid

void add_psid_group_permission(asn1::PsidGroupPermissions* group_permission, ItsAid aid, const ByteBuffer& ssp, const ByteBuffer& bitmask);

void serialize(OutputArchive& ar, Certificate& certificate);
void serialize(OutputArchive& ar, const Certificate& certificate);

Certificate fake_certificate();

Expand Down
2 changes: 1 addition & 1 deletion vanetza/security/v3/persistence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Certificate load_certificate_from_file(const std::string& certificate_path)
return certificate;
}

void save_certificate_to_file(const std::string& certificate_path, Certificate& certificate)
void save_certificate_to_file(const std::string& certificate_path, const Certificate& certificate)
{
std::ofstream dest;
dest.open(certificate_path.c_str(), std::ios::out | std::ios::binary);
Expand Down
2 changes: 1 addition & 1 deletion vanetza/security/v3/persistence.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Certificate load_certificate_from_file(const std::string& certificate_path);
*/
void save_certificate_to_file(const std::string& certificate_path, const Certificate& certificate);

} // namespace v2
} // namespace v3
} // namespace security
} // namespace vanetza

0 comments on commit 9a2af6b

Please sign in to comment.