From 1e7d8293cbacec97e4fbc9f08b8401cc6eaa6900 Mon Sep 17 00:00:00 2001 From: xiphon Date: Thu, 4 Jun 2020 01:18:34 +0000 Subject: openpgp: fix gcc 5.4.0 compilation --- src/openpgp/openpgp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/openpgp/openpgp.cpp') 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 buffer) /* const auto timestamp = */ serialized.read_big_endian(); const auto algorithm = serialized.read_big_endian(); - 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 input) const auto signature_type = static_cast(buffer.read_big_endian()); const auto algorithm = buffer.read_big_endian(); - if (algorithm != algorithm::rsa) + if (algorithm != openpgp::algorithm::rsa) { throw std::runtime_error("unsupported signature algorithm"); } -- cgit v1.2.3