aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge branch 'master' of git+ssh://playfair.gnupg.org/git/gpgmeJustus Winter2016-05-172-26/+25
|\
| * Trailing white space cleanup for 2 files in tests/.Werner Koch2016-05-172-26/+25
| | | | | | | | --
* | Merge branch 'justus/pyme3'Justus Winter2016-05-1757-5/+6360
|\ \ | |/ |/|
| * python: Clean up examples.Justus Winter2016-05-1710-43/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lang/python/examples/delkey.py: Clean up example. * lang/python/examples/encrypt-to-all.py: Likewise. * lang/python/examples/genkey.py: Likewise. * lang/python/examples/inter-edit.py: Likewise. * lang/python/examples/sign.py: Likewise. * lang/python/examples/signverify.py: Likewise. * lang/python/examples/simple.py: Likewise. * lang/python/examples/t-edit.py: Likewise. * lang/python/examples/verifydetails.py: Likewise. * lang/python/pyme/__init__.py: Likewise. Signed-off-by: Justus Winter <[email protected]>
| * python: Import GPGMEError.Justus Winter2016-05-171-1/+1
| | | | | | | | | | | | | | | | * pyme/core.py: Import GPGMEError. Fixes c5d118b2. Signed-off-by: Justus Winter <[email protected]>
| * python: Port more tests.Justus Winter2016-05-174-1/+166
| | | | | | | | | | | | | | | | | | * lang/python/Makefile.am: Add bits from the c test suite. * lang/python/support.py: New file. * lang/python/t-decrypt.py: Likewise. * lang/python/t-encrypt.py: Likewise. Signed-off-by: Justus Winter <[email protected]>
| * python: Share generated methods between objects.justus/pyme3Justus Winter2016-05-122-10/+18
| | | | | | | | | | | | | | | | * lang/python/pyme/util.py (GpgmeWrapper.__getattr__): Monkey-patch the class. * lang/python/tests/t-wrapper.py: Demonstrate the sharing. Signed-off-by: Justus Winter <[email protected]>
| * python: Raise exceptions on write errors.Justus Winter2016-05-122-1/+8
| | | | | | | | | | | | | | * lang/python/pyme/core.py (Data.write): Handle errors. * lang/python/pyme/errors.py (GPGMEError.fromSyserror): New function. Signed-off-by: Justus Winter <[email protected]>
| * python: Fix writing to data buffers.Justus Winter2016-05-124-3/+71
| | | | | | | | | | | | | | | | | | * lang/python/gpgme.i: Add typemap for buffers. * lang/python/pyme/core.py (Data.write): Fix function. * lang/python/tests/Makefile.am: Add new test. * lang/python/tests/t-data.py: New file. Signed-off-by: Justus Winter <[email protected]>
| * python: Add a test suite.Justus Winter2016-05-124-1/+47
| | | | | | | | | | | | | | | | | | * configure.ac: Add new Makefile. * lang/python/Makefile.am: Add subdirectory. * lang/python/tests/Makefile.am: New file. * lang/python/tests/t-wrapper.py: Likewise. Signed-off-by: Justus Winter <[email protected]>
| * python: Cache generated wrapper functions.Justus Winter2016-05-121-3/+6
| | | | | | | | | | | | | | * lang/python/util.py (GpgmeWrap.__getattr__): Cache generated wrapper functions. Signed-off-by: Justus Winter <[email protected]>
| * python: Fix function invocation.Justus Winter2016-05-121-1/+1
| | | | | | | | | | | | | | * lang/python/pyme/core.py (Data.new_from_fd): Fix function invocation. Signed-off-by: Justus Winter <[email protected]>
| * python: Fix name of exception, make slot methods explicit.Justus Winter2016-05-121-1/+18
| | | | | | | | | | | | | | | | | | * lang/python/pyme/util.py (GpgmeWrapper._getctype): Fix exception, add docstring. (GpgmeWrapper._getnameprepend): New function. (GpgmeWrapper._errorcheck): Likewise. Signed-off-by: Justus Winter <[email protected]>
| * python: Handle interpreter shutdown.Justus Winter2016-05-121-8/+22
| | | | | | | | | | | | | | | | | | * lang/python/pyme/core.py: Avoid races at interpreter shutdown. This silences the most annoying occurrences, however this problem also affects the SWIG generated code, which might indicate that the real problem is somewhere else. If so, this change can be easily reverted. Signed-off-by: Justus Winter <[email protected]>
| * python: Make test case more robust.Justus Winter2016-05-121-0/+4
| | | | | | | | | | | | * lang/python/examples/t-edit.py: Check if key is found. Signed-off-by: Justus Winter <[email protected]>
| * python: Fix type translation.Justus Winter2016-05-123-27/+41
| | | | | | | | | | | | | | | | | | | | | | | | * lang/python/gpgme.i: Adjust to Python3's string type being 'Unicode', not 'bytes'. Fix type checking. * lang/python/core.py (Data.write): Add docstring mentioning the expected type of parameter 'buffer'. (Data.read): Adjust read loop. Also, use a saner chunk size, and join all chunks at the end instead of adding them. * lang/python/examples/simple.py: Adjust example. Signed-off-by: Justus Winter <[email protected]>
| * python: Fix simple example.Justus Winter2016-05-111-1/+2
| | | | | | | | | | | | | | * lang/python/examples/simple.py: Flush stdout, encode name as UTF-8 before passing it to GPGME. Signed-off-by: Justus Winter <[email protected]>
| * python: Integrate into the build system.Justus Winter2016-05-115-31/+294
| | | | | | | | | | | | | | | | | | | | * configure.ac: Make Python bindings configurable, add new Makefile. * lang/python/Makefile.am: New file. * lang/python/setup.py: Integrate into the build system. * m4/ax_pkg_swig.m4: New file from the autoconf archive. * m4/m4_ax_swig_python.m4: Likewise. Signed-off-by: Justus Winter <[email protected]>
| * python: PEP8 fixes.Justus Winter2016-05-104-33/+38
| | | | | | | | | | | | Cherry picked from 0267c151. Signed-off-by: Justus Winter <[email protected]>
| * python: Delete trailing whitespace.Justus Winter2016-05-1014-78/+74
| | | | | | | | | | -- Signed-off-by: Justus Winter <[email protected]>
| * python: Drop Debian packaging.Justus Winter2016-05-107-261/+0
| | | | | | | | | | -- Signed-off-by: Justus Winter <[email protected]>
| * python: Rename bindings.Justus Winter2016-05-1054-1/+1
| | | | | | | | | | -- Signed-off-by: Justus Winter <[email protected]>
| * Merge branch 'master' into justus/pyme3Justus Winter2016-05-1064-979/+3293
| |\
| * | 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).
* | | Qt: Add keyLocateJob and test for itAndre Heinecke2016-05-135-4/+160
| | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (LIBQGPGME_LT_REVISION): Bump. * lang/qt/src/protocol.h (locateKeysJob): Add Job. * lang/qt/src/protocol_p.h (locateKeysJob): Implement. * lang/qt/tests/Makefile.am: Add t-keylocate. * lang/qt/tests/t-keylocate.cpp: New.
* | | Qt: Add missing copyright header in testAndre Heinecke2016-05-131-0/+31
| | | | | | | | | | | | * lang/qt/tests/t-keylist.cpp: Add copyright header.
* | | Cpp: Ensure gpgme.h is taken from current buildAndre Heinecke2016-05-111-1/+2
| | | | | | | | | | | | | | | | | | | | | * lang/cpp/src/Makefile.am (AM_CPPFLAGS): Add gpgme.h location. -- This fixes the build in case an incompatible gpgme.h is also installed in other include locations.
* | | Merge branch 'gpgmepp'Andre Heinecke2016-05-10180-1958/+25637
|\ \ \ | |_|/ |/| |
| * | Qt / Cpp: Fix make distgpgmeppAndre Heinecke2016-05-102-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | * lang/cpp/src/Makefile.am (EXTRA_DIST): Fix typo. (private_gpgmepp_headers): New. Private headers. (libgpgmepp_la_SOURCES): Add private headers. * lang/qt/src/Makefile.am (t_keylist_SOURCES): Remove non existent header.
| * | Qt: Fix unkonwn doxygen keyword warningsAndre Heinecke2016-05-1025-73/+63
| | | | | | | | | | | | | | | -- Reimp is not a keqword and we inherit documentation anyway.
| * | Qt: Make Protocol class public APIAndre Heinecke2016-05-105-410/+508
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lang/qt/src/Makefile.am (qgpgme_headers): Add protocol.h (private_qgpgme_headers): Add protocol_p.h * lang/qt/src/protocol.h: New. From QGpgMEBackend. * lang/qt/src/protocol_p.h: New. From QGpgMEBackend. * lang/qt/src/qgpgmebackend.h, lang/qt/src/qgpgmebackend.cpp (Protocol): Removed. -- The backend class does not make much sense anymore as we only have the GpgME backend obviously. It's purpose was for Libkleo's Backend abstraction.
| * | Qt: Make doxygen quieterAndre Heinecke2016-05-101-2/+2
| | | | | | | | | | | | * lang/qt/doc/Doxyfile.in: Quiet and no undocumented warnings.
| * | Qt: Only install public headersAndre Heinecke2016-05-101-17/+19
| | | | | | | | | | | | | | | | | | | | | | | | * lang/qt/src/Makefile.am: Do not install all headers. -- The qgpgme classes hide the implementation and thus make it easier to change it without ABI breaks. They should not be installed.
| * | Qt: Add test for async keylistingAndre Heinecke2016-05-101-0/+18
| | | | | | | | | | | | * src/lang/qt/tests/t-keylist.cpp(KeyListTest::testKeyListAsync): New.
| * | Use common error message style for qt lang checksAndre Heinecke2016-05-061-2/+5
| | | | | | | | | | | | * configure.ac: Use common error highliting for qt lang options.
| * | Qt: Fix license mentioned in READMEAndre Heinecke2016-05-061-11/+21
| | | | | | | | | | | | | | | | | | * lang/qt/README: License is GPLv2+ and not LGPL. -- The only part under lgpl is the QByteArray dataprovider.