mirror of
https://github.com/monero-project/monero.git
synced 2025-08-23 14:45:07 -04:00
Merge pull request #6351
81c5943
Remove temporary std::string creation in some hex->bin calls (vtnerd)5fcc23a
Move hex->bin conversion to monero copyright files and with less includes (vtnerd)3387f0e
Reduce template bloat in hex->bin for ZMQ json (vtnerd)
This commit is contained in:
commit
cfc0f4a7fa
9 changed files with 135 additions and 62 deletions
|
@ -355,7 +355,7 @@ std::unique_ptr<tools::wallet2> make_basic(const boost::program_options::variabl
|
|||
else if (!daemon_ssl_ca_file.empty() || !daemon_ssl_allowed_fingerprints.empty())
|
||||
{
|
||||
std::vector<std::vector<uint8_t>> ssl_allowed_fingerprints{ daemon_ssl_allowed_fingerprints.size() };
|
||||
std::transform(daemon_ssl_allowed_fingerprints.begin(), daemon_ssl_allowed_fingerprints.end(), ssl_allowed_fingerprints.begin(), epee::from_hex::vector);
|
||||
std::transform(daemon_ssl_allowed_fingerprints.begin(), daemon_ssl_allowed_fingerprints.end(), ssl_allowed_fingerprints.begin(), epee::from_hex_locale::to_vector);
|
||||
for (const auto &fpr: ssl_allowed_fingerprints)
|
||||
{
|
||||
THROW_WALLET_EXCEPTION_IF(fpr.size() != SSL_FINGERPRINT_SIZE, tools::error::wallet_internal_error,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue