aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * Also check the return code in gpg_sign().Ben Kibbey2015-08-121-1/+1
| | | | | | | | * src/engine-gpg.c (gpg_sign): Check return value from start().
| * Check the return value when starting gpg.Ben Kibbey2015-08-111-3/+3
| | | | | | | | | | * src/engine-gpg.c (gpg_decrypt, gpg_delete, gpg_passwd): Check return value of start().
| * Add offline mode support for CMS keylistingAndre Heinecke2015-07-3113-15/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/gpgme.texi: Document offline mode. * src/context.h (gpgme_context): Add offline. * src/engine-backend.h (keylist, keylist_ext): Add engine_flags. * src/engine.c, src/engine.h (_gpgme_engine_op_keylist): Ditto. (_gpgme_engine_op_keylist_ext): Ditto. * src/engine.h (GPGME_ENGINE_FLAG_OFFLINE): New. * src/engine-gpg.c (gpg_keylist, gpg_keylist_ext): Ditto. * src/engine-gpgsm.c (gpgsm_keylist): Handle engine_flags. (gpgsm_keylist_ext): Ditto. * src/gpgme.c (gpgme_set_offline, gpgme_get_offline): New. * src/gpgme.def (gpgme_set_offline, gpgme_get_offline): New. * src/gpgme.h.in (gpgme_set_offline, gpgme_get_offline): New. * src/libgpgme.vers (gpgme_set_offline, gpgme_get_offline): New. * src/keylist.c (gpgme_op_keylist_start): Set offline flag. (gpgme_op_keylist_ext_start): Ditto. * tests/run-keylist.c (show_usage, main): Add offline argument. -- The offline engine option was introduced with gpgsm 2.1.6 it is mainly useful for a full keylisting that includes the certificate validation but does not depend on external information that could take an indefinite amount of time to collect. Signed-off-by: Andre Heinecke <[email protected]>
| * build: ignore scissor line for the commit-msg hookPeter Wu2015-07-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | * build-aux/git-hooks/commit-msg: Stop processing more lines when the scissor line is encountered. -- This allows the command `git commit -v` to work even if the code is longer than 72 characters. Note that comments are already ignored by the previous line. Signed-off-by: Peter Wu <[email protected]>
| * Add option --lib-version to gpgme-tool.Werner Koch2015-07-231-4/+23
| | | | | | | | | | | | * src/gpgme-tool.c (options, parse_options): Add --lib-version (CMD_LIBVERSION): New. (main): Implement.
| * Post release updatesWerner Koch2015-06-082-2/+6
| | | | | | | | --
| * Release 1.5.5gpgme-1.5.5Werner Koch2015-06-083-5/+11
| |
| * Fix regression with gpgsm 2.0 due to "OPTION with-secret".Werner Koch2015-06-081-16/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/engine-gpgsm.c (gpgsm_assuan_simple_command): Do not terminate on a status lines. -- This bug has been with us since the support for gpgsm: If there is no status line handler but a status line is received anyway the command handling loop terminates and thus the command/answer order gets out of sync. In the case of the bug report this is triggered by sending an option which starts the agent and that starting emits a "PROGRESS" status line. The solution is not to stop reading after a status line but record a possible error code and return that only after OK or ERR. GnuPG-bug-id: 1795 Signed-off-by: Werner Koch <[email protected]>
| * tests: Add option --secret to run-keylist.Werner Koch2015-06-081-1/+8
| | | | | | | | Signed-off-by: Werner Koch <[email protected]>
| * Fix compiler warnings about unused value in TRACE macros.Werner Koch2015-06-082-37/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/debug.h: Change macros to not have a literal 0 as last expression of the comma operator. * src/debug.c (_gpgme_debug_frame_end): Return 0. (_gpgme_debug): Return 0. -- Instead of using foo(), 0 for the trace macros we let foo() return 0 instead. Signed-off-by: Werner Koch <[email protected]>
| * Fix test suite for GnuPG 2.1 which uses pubring.kbx.Werner Koch2015-06-088-16/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/gpgsm/final.test: New. * tests/gpgsm/initial.test: New. * tests/gpg/start-stop-agent: Move to ../. * tests/gpgsm/Makefile.am (TESTS_ENVIRONMENT): Export top_srcdir. (TESTS): Add intial.test and final.test. (AM_LDFLAGS): Add -no-install. (clean-local): Use start-stop-agent (initial.test): Add dependency. * tests/gpg/Makefile.am (top_srcdir): Export top_srcdir. (AM_LDFLAGS): Add -no-install. (check-local): Depend on pubring-stamp instead of pubring.gpg. (initial.test): Depend on check-local. (./pubring-gpg): Replace by rule for ./pubring-stamp. -- There are also a couple of other changes which should make the tests a bit more robust and the gpg and gpgsm tests more similar. The -no-install avoids creating wrappers for test programs, which make debugging easier. The dependency on check-local guarantees that its rules are run before the first test. This is important because conf files are setup by this rule. Earlier automake versions seem to have run check-local always before the tests but today the order of execution is not defined. Signed-off-by: Werner Koch <[email protected]>
| * Set GPGME_SIGSUM_KEY_REVOKED also for gpg.Matthew Barnes2015-06-051-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | * src/verify.c (calc_sig_summary): Handle GPG_ERR_CERT_REVOKED. -- parse_new_sig() handles a revoked key by setting sig->status to GPG_ERR_CERT_REVOKED, but then later calc_sig_summary() expects that code in sig->validity_reason. Additional comments added by wk.
| * Fix segv for userids with a backslash.Werner Koch2015-06-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | * src/engine-gpg.c (gpg_keylist_preprocess): Increment SRC for a backslash. -- This bug is not exploitable because this bug fills up .data with backslashes and thus causes the segv. Signed-off-by: Werner Koch <[email protected]>
* | More GTK2 removalpyme3Ben McGinnes2015-08-022-7003/+0
| | | | | | | | | | * Missed a couple of files, these 2 go for the same reason as the previous 3.
* | Removed GUI examplesBen McGinnes2015-08-023-2065/+0
| | | | | | | | | | | | | | * GUI examples written with pygtk, which has not been ported to Python 3 and won't be as it is for GTK2 and GNOME is moving to GTK3. * New GUI examples may be required in future using any of several GUI frameworks (e.g. wxPython, PyQt, PySide, PyGObject, etc.).
* | Python 3 port of PyMEBen McGinnes2015-05-162-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | * Port of PyME 0.9.0 for Python 2 to Python 3 along with most of the example scripts. * Intended to be developed in parallel with the original Python 2 version until such time as a rewrite of GPGME leads to developing an IO API in Python 3 from scratch. * Python 3 PyME and API maintainer has entered, stage left with current GPG key ID 0x321E4E2373590E5D, primary fingerprint is "DB47 24E6 FA42 86C9 2B4E 55C4 321E 4E23 7359 0E5D" and signing subkey fingerprint is "B7F0 FE75 9387 430D D0C5 8BDB 7FF2 D371 35C7 553C" for future reference with git commit signatures.
* | Explaining why not all scripts workBen McGinnes2015-05-161-0/+7
| | | | | | | | | | | | | | | | * Some of them cannot be properly tested on OS X, especially with GTK in the mix (it works on OS X, but is unlikely to be as easily accessible as Cocoa or Qt). * Most major functions are showcased and do work, albeit sometimes with false positives of error messages, at least on OS X.
* | Byte encodingBen McGinnes2015-05-164-10/+10
| | | | | | | | | | | | * More string updates. * verifydetails.py still fails, but as Bernhard is still contactable, it might be worth him checking on it instead.
* | No change, note added to explain why.Ben McGinnes2015-05-161-0/+4
| |
* | Strings vs. BytesBen McGinnes2015-05-161-1/+1
| | | | | | | | * CLI input must be byte encoded.
* | More byte changes and passphrase changesBen McGinnes2015-05-163-3/+3
| | | | | | | | | | | | | | | | * exportimport works, but will still segfault for an as yet unknown reason. * genkey produces a traceback error, but does create the key as intended. * matched passphrase in signverify.
* | More bytes goodBen McGinnes2015-05-161-1/+1
| | | | | | | | * Another string to byte change.
* | Updated encrypt-to-allBen McGinnes2015-05-161-14/+17
| | | | | | | | | | | | | | * Changed plaintext string to byte literal. * Nested key selection in a try/except statement in case of UnicodeEncodeError instances. * Tested successfully on over 9,000 keys.
* | Passphrase updateBen McGinnes2015-05-162-2/+2
| | | | | | | | | | * Changed example passphrase to something that meets the current minimum requirements.
* | example emailBen McGinnes2015-05-164-9/+9
| | | | | | | | | | * changed [email protected] to [email protected] as it is only a matter of time before ICANN actually creates bar as a gTLD, if they haven't already.
* | Updated string and key dataBen McGinnes2015-05-161-6/+6
| | | | | | | | | | | | * Text changed to byte literals. * Changed key type to RSA/RSA. * Changed expiry to the future (2020).
* | String typeBen McGinnes2015-05-081-1/+1
| | | | | | | | | | * the plain text string must be bytes and not unicode. * Expect most of the example code to have similar issues at present.
* | Python 3 port of PyMEBen McGinnes2015-05-0557-0/+15075
|/ | | | | | | | | | | | * The entirety of the Python 3 port of PyME up to commit 2145348ec54c6027f2ea20f695de0277e2871405 * The old commit log has been saved as lang/py3-pyme/docs/old-commits.log * Can be viewed as a normal (separate) git repository at https://github.com/adversary-org/pyme3 * Utilising the submodule feature of git was deliberately skipped on humanitarian grounds (in order to prevent pain and suffering on the part of anyone having to manage this repository).
* Post release updates.Werner Koch2015-04-132-2/+6
| | | | --
* Release 1.5.4.gpgme-1.5.4Werner Koch2015-04-133-9/+10
|
* w32: Use -static-libgcc to avoid linking to libgcc_s_sjlj-1.dll.Werner Koch2015-04-131-4/+8
| | | | | | | | | | | | | | | | | | * src/Makefile.am (extra_ltoptions): New. (libgpgme_la_LDFLAGS): Use it. (libgpgme_pthread_la_LDFLAGS): Ditto. (libgpgme_glib_la_LDFLAGS): Ditto. -- Since gcc 4.8 there is a regression in Mingw64 in that plain C programs may link to libgcc_s.a which has a dependency on libgcc_s_sjlj.dll. This is for example triggered by using long long arithmetic on a 32 bit Windows (e.g symbol __udivdi3). Note that we don't use this patch for the Qt version which, as C++ programs, actually requires that DLL, Signed-off-by: Werner Koch <[email protected]>
* Fix potential crash in trace macro.Werner Koch2015-03-163-5/+3
| | | | | | | | | * src/signers.c (gpgme_signers_add): Avoid deref of a NULL KEY in the trace macro. * src/engine-spawn.c (engspawn_release): Remove always true condition. * src/engine-gpg.c (gpg_release): Ditto. Signed-off-by: Werner Koch <[email protected]>
* Fix one byte too short malloc.Werner Koch2015-03-161-1/+1
| | | | | | | | | | | | | | * src/engine-spawn.c (add_data): Fix malloc -- Bummer. Why did I subtracted one from the size? Did I assume a dynamically allocated structure with a string field which was not going to be used? Very strange. Not a real problem though because malloc will anyway round up the allocation to at least the next word size. Detected by Stack 0.3.
* Switch to automake 1.14 and update build-aux files.Werner Koch2015-01-3011-829/+1086
| | | | Signed-off-by: Werner Koch <[email protected]>
* doc: Update gpl.texi to match version from gnupgDaniel Kahn Gillmor2014-12-151-13/+21
| | | | | | | | | | | | | -- Somehow the doc/gpl.texi from gpgme and gnupg drifted out of sync. This patch to gpgme's file brings it in line with gnupg's master branch, and avoids the following errors during make: ./gpl.texi:667: @section seen before @end enumerate ./gpl.texi:724: unmatched `@end enumerate' ./gpl.texi:1: warning: node next `Copying' in menu `Concept Index' and in sectioning `Function and Data Index' differ
* Post release updates.Werner Koch2014-12-113-4/+10
| | | | --
* Release 1.5.3.gpgme-1.5.3Werner Koch2014-12-112-2/+5
| | | | * configure.ac: Set LT version to C24/A13/R2.
* Return an error for some export key operations.Werner Koch2014-12-082-4/+127
| | | | | | | | | | | | | | | | * src/context.h (OPDATA_EXPORT): New. * src/export.c (op_data_t): New. (release_op_data): New. (parse_error): New. (export_status_handler): New. (export_start, export_ext_start): Prepare op_data. (gpgme_op_export_ext, gpgme_op_export_keys): Return an error from the status handler. -- To support an error return also for the async functions we need to extend the API. Until we have done that this new features helps at least in some cases; in particular for --send-keys.
* Post release updatesWerner Koch2014-11-213-3/+7
| | | | --
* Release 1.5.2.gpgme-1.5.2Werner Koch2014-11-212-2/+6
| | | | * configure.ac: Set LT version to C24/A13/R1.
* Update the previous commitWerner Koch2014-11-211-58/+54
| | | | | | | | | | | * src/sign.c (gpgme_op_sign_result): Reformat and take care of failed malloc. -- Although _gpgme_debug_trace() is current always true, the code should be run always and not just in trace mode. Also added error checking to malloc and strdup. And while at replace some while by for loop for easier readability.
* Fix returning new signatures when there are none.Ben Kibbey2014-11-211-8/+54
| | | | | | | | | | | | | | | | | | * src/sign.c (gpgme_op_sign_result): Test that invalid and valid signatures add up to gpgme_signers_count(). -- When invalid and valid signatures do not equal gpgme_signers_count() it means that there was a bad passphrase during signing after the first signer. This leaves the result.signatures from previous signers intact which isn't correct since gpg will report: gpg: number of one-pass packets does not match number of signature packets gpg: can't handle this ambiguous signature data during verify. So when this happens append the valid signatures to the .invalid_signers list with .reason set to GPG_ERR_GENERAL.
* doc: Clarify the FILE command.Werner Koch2014-11-191-4/+9
| | | | --
* Improve the debug output a bit.Werner Koch2014-11-062-3/+4
| | | | * src/debug.h (TRACE_ERR): Include the line number in the output.
* build: Implement SYSROOT feature.origin/bjk/masterWerner Koch2014-10-024-17/+116
| | | | | | * configure.ac: Document SYSROOT. * m4/gpg-error.m4: Update from libgpg-error master. * src/gpgme.m4: Implement SYSROOT stuff.
* Use --no-sk-comments, not --no-sk-comment.Daniel Kahn Gillmor2014-10-021-2/+2
| | | | | | | -- The --no-sk-comments flag is (or should be) a no-op in modern versions of gnupg, but gpgme should still use its full form rather than the (slightly) abbreviated --no-sk-comment
* Register DCO for Daniel Kahn Gillmor.Werner Koch2014-09-241-1/+9
| | | | --
* Add ftp and git URLs to AUTHORS.Werner Koch2014-09-241-0/+2
| | | | --
* tests: Delay some test file extraction until "make check".Werner Koch2014-09-242-2/+3
| | | | | * tests/gpg/Makefile.am (all-local): Change to check-local. * tests/gpgsm/Makefile.am (all-local): Ditto.
* Clean up gpgme's tests/gpg when gpg2.1 is availableDaniel Kahn Gillmor2014-09-242-1/+2
| | | | | | | * tests/gpg/Makefile.am: Clean up .gpg-v21-migrated -- We also need to gitignore this file.