aboutsummaryrefslogtreecommitdiff
path: root/src/openpgp/openpgp.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-06-19 16:56:05 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-06-19 16:56:05 -0500
commit3fee17e564bcbd1ed8824f4b8f7665d1ae076903 (patch)
tree66fe5aa41ddcd2172ee4ce829f3820e11f9d6935 /src/openpgp/openpgp.cpp
parent8354c251c5ba5b1b90598444d2a991f8aaaabd5a (diff)
parent1e7d8293cbacec97e4fbc9f08b8401cc6eaa6900 (diff)
downloadmonzero-gui-3fee17e564bcbd1ed8824f4b8f7665d1ae076903.tar.gz
monzero-gui-3fee17e564bcbd1ed8824f4b8f7665d1ae076903.tar.xz
monzero-gui-3fee17e564bcbd1ed8824f4b8f7665d1ae076903.zip
Merge pull request #2933
1e7d829 openpgp: fix gcc 5.4.0 compilation (xiphon)
Diffstat (limited to 'src/openpgp/openpgp.cpp')
-rw-r--r--src/openpgp/openpgp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openpgp/openpgp.cpp b/src/openpgp/openpgp.cpp
index 437e0d99..fa503015 100644
--- a/src/openpgp/openpgp.cpp
+++ b/src/openpgp/openpgp.cpp
@@ -139,7 +139,7 @@ public_key_block::public_key_block(const epee::span<const uint8_t> buffer)
/* const auto timestamp = */ serialized.read_big_endian<uint32_t>();
const auto algorithm = serialized.read_big_endian<uint8_t>();
- if (algorithm != algorithm::rsa)
+ if (algorithm != openpgp::algorithm::rsa)
{
throw std::runtime_error("unsupported public key algorithm");
}
@@ -219,7 +219,7 @@ signature_rsa signature_rsa::from_buffer(const epee::span<const uint8_t> input)
const auto signature_type = static_cast<type>(buffer.read_big_endian<uint8_t>());
const auto algorithm = buffer.read_big_endian<uint8_t>();
- if (algorithm != algorithm::rsa)
+ if (algorithm != openpgp::algorithm::rsa)
{
throw std::runtime_error("unsupported signature algorithm");
}