Skip to content

Commit

Permalink
security: fix v3::load_private_key_from_file compilation on Ubuntu Bi…
Browse files Browse the repository at this point in the history
…onic
  • Loading branch information
riebl committed Aug 9, 2024
1 parent 0d02704 commit 7a69dcd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vanetza/security/v3/persistence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <cryptopp/oids.h>
#include <cryptopp/osrng.h>
#include <cryptopp/base64.h>
#include <streambuf>
#include <fstream>

namespace vanetza
Expand Down Expand Up @@ -46,7 +45,7 @@ ecdsa256::KeyPair load_private_key_from_file(const std::string& key_path)
CryptoPP::Base64Decoder decoder;

decoder.Attach(new CryptoPP::Redirector(queue));
decoder.Put((const CryptoPP::byte*)keystr.data(), keystr.length());
decoder.Put(reinterpret_cast<const uint8_t*>(keystr.data()), keystr.length());
decoder.MessageEnd();

CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PrivateKey private_key;
Expand Down

0 comments on commit 7a69dcd

Please sign in to comment.