1. 12 Feb, 2021 1 commit
  2. 08 Jan, 2021 2 commits
  3. 05 Jan, 2021 1 commit
  4. 04 Jan, 2021 2 commits
    • Ingo Klöcker's avatar
      cpp: Add const-overload of UserID::Signature::operator< · a6220adf
      Ingo Klöcker authored
      lang/cpp/src/key.h, lang/cpp/src/key.cpp (UserID::Signature::operator<):
      Add const-overload. Deprecate non-const overload.
      
      --
      
      This fixes compilation on FreeBSD with clang 10.
      a6220adf
    • Andre Heinecke's avatar
      Qt: Undeprecate QByteArray based start functs · 543e2106
      Andre Heinecke authored
      * lang/qt/src/encryptjob.h, lang/qt/src/signjob.h (start):
      Undeprecate QByteArray based functions.
      
      --
      While the QIODevice access might avoid a copy it is more
      difficult to manage the data and lifetime of the
      QIODevices in calling code. The QByteArray calls are
      convienient for small data objects like mails where
      an in memory copy is not really expensive anymore.
      543e2106
  5. 03 Dec, 2020 1 commit
  6. 24 Nov, 2020 1 commit
  7. 20 Nov, 2020 2 commits
  8. 18 Nov, 2020 3 commits
    • Andre Heinecke's avatar
      cpp: Use portable off_t size_t · 88294023
      Andre Heinecke authored
      * configure.ac: Configure cpp data.h.in
      * lang/cpp/src/Makefile.am: Generate data.h
      * lang/cpp/src/data.cpp, lang/cpp/src/data.h: Use portable
      types.
      * lang/qt/src/Makefile.am: Include build dir.
      * lang/qt/tests/makefile.am: Include build dir.
      
      --
      These kind of patches have been around for a while, IMO this
      should not create an ABI incompatbility for cases where
      it already works because the types should be the same
      so I think this is not an interface break.
      
      GnuPG-Bug-Id: T3996
      88294023
    • Ingo Klöcker's avatar
      qt: Avoid empty "rem@gnupg.org" signature notations · 3c185c21
      Ingo Klöcker authored
      * lang/qt/src/qgpgmesignkeyjob.cpp (sign_key): Check remark for being
      an empty string instead of a null QString.
      --
      
      GnuPG-bug-id: 5142
      Co-authored-by: Daniel Kahn Gillmor
      3c185c21
    • NIIBE Yutaka's avatar
      build: Update with newer autoconf constructs. · 223779df
      NIIBE Yutaka authored
      
      
      * configure.ac: Use AC_USE_SYSTEM_EXTENSIONS instead of AC_GNU_SOURCE.
      Use AS_HELP_STRING instead of AC_HELP_STRING.
      * m4/libtool.m4: Update from libgpg-error.
      * m4/gpg-error.m4: Update from libgpg-error.
      * m4/libassuan.m4: Update from libassuan.
      
      Signed-off-by: NIIBE Yutaka's avatarNIIBE Yutaka <gniibe@fsij.org>
      223779df
  9. 12 Nov, 2020 6 commits
  10. 11 Nov, 2020 2 commits
  11. 09 Nov, 2020 1 commit
    • Werner Koch's avatar
      Require at least libgpg-error 1.36 · eb99e8c4
      Werner Koch authored
      
      
      * configure.ac (NEED_GPG_ERROR_VERSION): Require 1.36.
      * src/cJSON.c: Remove code for older version.
      * src/engine.c (gpgme_get_engine_info): Ditto.
      * src/gpgme-json.c: Ditto.
      * src/op-support.c: Ditto.
      * src/util.h: Ditto.
      --
      
      Libgpg-error 1.36 has been released more than 18 months ago so it is
      time to avoid hacks and require this verion.  This will for example
      help Kleopatra to support PIV cards and improves the gpgme-json.
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      eb99e8c4
  12. 04 Nov, 2020 1 commit
    • Ben Kibbey's avatar
      Parse STATUS_CANCELED_BY_USER. · 35ca4600
      Ben Kibbey authored
      
      
      * src/gpgme.h.in (GPGME_STATUS_CANCELED_BY_USER): New.
      * src/status-table.c (status_table_s): Add "CANCELED_BY_USER".
      * src/passphrase.c (_gpgme_passphrase_status_handler): Return
      GPG_ERR_CANCELED during GPGME_STATUS_CANCELED_BY_USER.
      
      Signed-off-by: default avatarBen Kibbey <bjk@luxsci.net>
      35ca4600
  13. 03 Nov, 2020 3 commits
    • Ingo Klöcker's avatar
      qt: Make audit parameters of result signal optional · 0fee1359
      Ingo Klöcker authored
      lang/qt/src/quickjob.h (QuickJob::result): Make parameters
      auditLogAsHtml and audigLogError optional.
      --
      
      This aligns the signature of QuickJob's result signal with the result
      signals of the other Job subclasses.
      
      GnuPG-bug-id: 5094
      0fee1359
    • Ingo Klöcker's avatar
      cpp: Mark helper functions as static · b41f5fec
      Ingo Klöcker authored
      lang/cpp/src/key.cpp (find_subkey, verify_subkey, find_uid, verify_uid,
      find_signature, verify_signature): Mark as static.
      b41f5fec
    • Ingo Klöcker's avatar
      cpp: Make signatures belonging to the same user ID sortable · 6a6d2a27
      Ingo Klöcker authored
      lang/cpp/src/key.h, lang/cpp/src/key.cpp (UserID::Signature::operator<):
      New.
      lang/cpp/src/key.cpp (signature_index): New.
      --
      
      operator< defines a canonical sort order for signatures belonging to
      the same user ID. It is based on the sort order defined by
      cmp_signodes() in g10/keylist.c of gnupg. In particular, the ordering
      of signatures made with the same key by creation time allows to see
      easily whether the most recent signature is a certification or a
      revocation.
      
      GnuPG-bug-id: 5094
      recent
      6a6d2a27
  14. 29 Oct, 2020 4 commits
    • Ingo Klöcker's avatar
      qt: Add support for revoke signature quick command · f042739d
      Ingo Klöcker authored
      * lang/qt/src/quickjob.h (QuickJob::startRevokeSignature): New.
      * lang/qt/src/qgpgmequickjob.h, lang/qt/src/qgpgmequickjob.cpp
      (QGpgMEQuickJob::startRevokeSignature): New.
      * lang/qt/src/qgpgmequickjob.cpp (revokeSignatureWorker): New.
      --
      
      GnuPG-bug-id: 5094
      f042739d
    • Ingo Klöcker's avatar
      qt: Some minor cleanups · 60328c46
      Ingo Klöcker authored
      * lang/qt/src/qgpgmequickjob.h: (GpgME::Key, QDateTime, QString):
      Remove superfluous forward declarations.
      (QGpgMEQuickJob): Remove superfluous second template argument. It is
      identical to the default.
      (QGpgMEQuickJob::result): Remove. It is already defined in the base
      class.
      60328c46
    • Ingo Klöcker's avatar
      cpp: Add support for gpgme_op_revsig · 4166d263
      Ingo Klöcker authored
      * lang/cpp/src/context.cpp, lang/cpp/src/context.h
      (Context::revokeSignature, Context::startRevokeSignature): New.
      * lang/cpp/src/context.cpp
      (getLFSeparatedListOfStrings, getLFSeparatedListOfUserIds): New.
      (getLFSeparatedListOfFingerprintsFromSubkeys): Extracted second part
      of function to getLFSeparatedListOfStrings.
      --
      
      GnuPG-bug-id: 5094
      4166d263
    • Ingo Klöcker's avatar
      core: New function gpgme_op_revsig. · f3407d0e
      Ingo Klöcker authored
      * src/gpgme.h.in (gpgme_op_revsig_start, gpgme_op_revsig): New.
      (GPGME_REVSIG_LFSEP): New.
      * src/context.h (ctx_op_data_id_t): Add OPDATA_REVSIG.
      * src/revsig.c: New.
      * src/Makefile.am (main_sources): Add revsig.
      * src/libgpgme.vers, src/gpgme.def: Add gpgme_op_revsig and
      gpgme_op_revsig_start.
      * src/engine.h, src/engine.c: (_gpgme_engine_op_revsig): New.
      * src/engine-backend.h (engine_ops): Add 'revsig' and adjust all
      engine initializers.
      * src/engine-gpg.c (gpg_revsig): New.
      (_gpgme_engine_ops_gpg): Set revsig to gpg_revsig.
      * doc/gpgme.texi: Document new functions.
      * tests/run-keysign.c: Add option --revoke.
      --
      
      This extends GPGME to support the --quick-revoke-sig command
      added by GnuPG 2.2.24. This allows revoking key signatures.
      
      GnuPG-bug-id: 5094
      f3407d0e
  15. 27 Oct, 2020 1 commit
  16. 23 Oct, 2020 5 commits
    • Ingo Klöcker's avatar
      cpp: Add support for gpgme_cancel · 74c8131d
      Ingo Klöcker authored
      * lang/cpp/src/context.cpp, lang/cpp/context.h
      (Context::cancelPendingOperationImmediately): New.
      * NEWS: Mention added API
      --
      
      This allows immediate canceling of running operations, e.g. when a
      thread with a long running operation (like SCD DEVINFO --watch) is
      going to be terminated (on application shutdown).
      
      GnuPG-bug-id: 5066
      74c8131d
    • Ingo Klöcker's avatar
      Add Assuan transaction that forwards status lines to another object · ff23e240
      Ingo Klöcker authored
      * lang/cpp/src/Makefile.am: Add new files.
      * lang/cpp/src/interfaces/statusconsumer.h,
      lang/cpp/src/statusconsumerassuantransaction.cpp,
      lang/cpp/src/statusconsumerassuantransaction.h: New.
      * NEWS: Mention new API.
      --
      
      This Assuan transaction is useful for long running Assuan commands.
      Classes implementing the StatusConsumer interface can process received
      status lines while the Assuan command is still running.
      
      GnuPG-bug-id: 5066
      ff23e240
    • Ingo Klöcker's avatar
      qt: Add QDebug stream operator for GpgME::Error · b21cabb3
      Ingo Klöcker authored
      * lang/qt/src/Makefile.am: Add new files.
      * lang/qt/src/debug.h, lang/qt/src/debug.cpp: New.
      * NEWS: Mention it.
      --
      
      This was previously implemented in Kleopatra, but it makes sense for
      all users of qgpgme.
      b21cabb3
    • Ingo Klöcker's avatar
      cpp, qt: Add missing comparison operators for version info comparison · c3406462
      Ingo Klöcker authored
      * lang/cpp/src/engineinfo.h (EngineInfo::Version::operator<=,
      EngineInfo::Version::operator>=, EngineInfo::Version::operator!=):
      New.
      * lang/qt/tests/t-various.cpp (TestVarious::testVersion): Add tests for
      new comparison operators.
      * NEWS: Mention added API
      c3406462
    • Ingo Klöcker's avatar
      cpp, qt: Fix version info comparison · 2f53a2f4
      Ingo Klöcker authored
      * lang/cpp/src/engineinfo.h
      (EngineInfo::Version::operator>(const Version &)): Fix logic.
      (EngineInfo::Version::operator>(const char *)): Use Version-overload of
      operator>.
      
      * lang/qt/tests/t-various.cpp: Add test.
      --
      
      This fixes a logic error that 2.0.0 > 2.0.0 would return true.
      2f53a2f4
  17. 03 Oct, 2020 1 commit
    • Werner Koch's avatar
      tests: Fix gcc incompatibility · 25e2d717
      Werner Koch authored
      * tests/json/t-json.c: Remove var definitions inside a for statement.
      --
      
      This useful C99 feature seems to work only in recent gcc versions.  We
      can't use it; see gnupg/doc/HACKING.
      
      GnuPG-bug-id: 5088
      25e2d717
  18. 01 Oct, 2020 1 commit
  19. 09 Sep, 2020 1 commit
    • Werner Koch's avatar
      core: Fully implement the inquire callback for assuan_transact · e4ee706e
      Werner Koch authored
      
      
      * src/engine-assuan.c (inquire_cb): Implement returning data.
      
      * tests/opassuan/t-command.c (inq_cb): Send some test data.
      --
      
      The old code only allowed to send an empty response which was good
      enough for scdaemon's KNOWNCARDP inquire but not to send actual data.
      A quick test using a test smartcard might be
      
       ./t-command 'scd setattr --inquire PRIVATE-DO-1'
      
      and then reading the data back using
      
        gpg-connect-agent 'scd getattr PRIVATE-DO-1' /bye
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      e4ee706e
  20. 08 Sep, 2020 1 commit