diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2023-04-16 14:37:10 +0200 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2023-04-18 10:14:54 -0700 |
commit | 8536ff2d45216914e01678adf6fdb67fbe7e1324 (patch) | |
tree | 7111c9ee50ac2b69e09f967417ace36bac89eee8 /src | |
parent | fa9956e58f6820bbea564bc3afa8db86f2bd3080 (diff) | |
download | fork-ledger-8536ff2d45216914e01678adf6fdb67fbe7e1324.tar.gz fork-ledger-8536ff2d45216914e01678adf6fdb67fbe7e1324.tar.bz2 fork-ledger-8536ff2d45216914e01678adf6fdb67fbe7e1324.zip |
gpgme: Remove code handling versions prior to required version
Diffstat (limited to 'src')
-rw-r--r-- | src/gpgme.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/gpgme.cc b/src/gpgme.cc index 4f949c8c..0358f44d 100644 --- a/src/gpgme.cc +++ b/src/gpgme.cc @@ -136,15 +136,9 @@ shared_ptr<Data> decrypted_stream_t::decrypt(shared_ptr<Data> enc_d) { ctx = nullptr; dec_d = enc_d; } else { -#if GPGME_VERSION_NUMBER < 0x010d00 - ctx = unique_ptr<Context>(Context::createForProtocol(enc_d->type() == Data::PGPEncrypted - ? Protocol::OpenPGP - : Protocol::CMS)); -#else ctx = Context::create(enc_d->type() == Data::PGPEncrypted ? Protocol::OpenPGP : Protocol::CMS); -#endif if (!ctx) throw runtime_error("Unable to establish decryption context"); @@ -167,11 +161,7 @@ static inline void init_lib() { } static inline void rewind(Data * d) { -#if GPGME_VERSION_NUMBER < 0x010c00 - d->seek(0, SEEK_SET); -#else d->rewind(); -#endif } istream* decrypted_stream_t::open_stream(const path& filename) { |