aboutsummaryrefslogtreecommitdiffstats
path: root/lang (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-05-20Cpp: Ignore STATUS_KEY_CONSIDERED when editingAndre Heinecke1-0/+1
* lang/cpp/src/editinteractor.cpp (EditInteractor::needsNoResponse): Handle GPGME_STATUS_KEY_CONSIDERED.
2016-05-19python: Improve progress callbacks.Justus Winter3-6/+54
* lang/python/helpers.c (pyProgressCb): Stash python errors, convert 'what' to Unicode object. * lang/python/pyme/core.py (Context.set_progress_cb): Hand in 'self'. * lang/python/tests/t-callbacks.py: Test progress callbacks. Signed-off-by: Justus Winter <[email protected]>
2016-05-19python: Robust exception handling in callbacks.Justus Winter6-13/+187
* lang/python/helpers.c (pygpgme_stash_callback_exception): New function. (pygpgme_raise_callback_exception): Likewise. (pyPassphraseCb): Stash python errors. * lang/python/helpers.h (pygpgme_raise_callback_exception): New prototype. * lang/python/pyme/core.py ({Context,Data}.__init__): Move common initialization to superclass. (Context.set_progress_cb): Hand in 'self'. * lang/python/pyme/util.py (GpgmeWrapper.__init__): New function. (GpgmeWrapper.__getattr__): Raise stashed exceptions. * lang/python/tests/Makefile.am (py_tests): Add new test. * lang/python/tests/t-callbacks.py: New file. Signed-off-by: Justus Winter <[email protected]>
2016-05-19Qt: Check for graphviz and set HAVE_DOT correctlyAndre Heinecke1-1/+1
* configure.ac: Check for graphviz and define HAVE_DOT. * lang/qt/doc/Doxyfile.in (HAVE_DOT): Use variable.
2016-05-19python: Add more tests.Justus Winter6-8/+157
* lang/python/tests/Makefile.am (py_tests): Add new tests. * lang/python/tests/support.py (print_data): New function. * lang/python/tests/t-decrypt.py: Use new function. * lang/python/tests/t-encrypt.py: Likewise. * lang/python/tests/t-sign.py: New file. * lang/python/tests/t-encrypt-sym.py: Likewise. Signed-off-by: Justus Winter <[email protected]>
2016-05-19python: More type conversion fixes.Justus Winter1-2/+24
* lang/python/helpers.c (pyPassphraseCb): Cope with 'uid_hint' being NULL, convert it to an Unicode object, and cope with the callback returning both Unicode and bytes objects. Signed-off-by: Justus Winter <[email protected]>
2016-05-19python: Fix import.Justus Winter1-1/+4
* lang/python/helpers.c (pygpgme_exception_init): Make module import relative. Signed-off-by: Justus Winter <[email protected]>
2016-05-19Qt: Fix compilation of unit testsAndre Heinecke1-1/+1
* lang/qt/tests/Makefile.am (AM_CPPFLAGS): Add -DBUILDING_QGPGME. -- Without building QGpgME the headers of gpgme++ are not included corretly and taken from an already installed gpgme++.
2016-05-18python: Various fixes.Justus Winter1-1/+1
* configure.ac: Fix SWIG detection, bump required Python version. * lang/python/Makefile.am: Portability fix. Signed-off-by: Justus Winter <[email protected]>
2016-05-17Qt / Cpp: Port auto_ptr to unique_ptrAndre Heinecke8-54/+48
* lang/cpp/src/context.cpp, lang/cpp/src/context.h, lang/cpp/src/context_p.h (Context::createForEngine), (Context::edit, Context::startEditing), (Context::takeLastEditInteractor, Context::cardEdit), (Context::startCardEditing, Context::takeLastCardEditInteractor), (Context::assuanTransact, Context::startAssuanTransaction), (Context::takeLastAssuanTransaction): Port to unique_ptr. * lang/qt/src/qgpgmeadduseridjob.cpp, lang/qt/src/qgpgmechangeexpiryjob.cpp, lang/qt/src/qgpgmechangeownertrustjob.cpp, lang/qt/src/qgpgmechangepasswdjob.cpp, lang/qt/src/qgpgmesignkeyjob.cpp: Update accordingly. -- This is another API break but as we already broke API with GpgME++ and QGpgME from KDE Frameworks this is a good time to do this to avoid using a deprected C++ class in the API.
2016-05-17python: Delete duplicated license texts/Werner Koch2-848/+0
--
2016-05-17python: Clean up examples.Justus Winter10-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]>
2016-05-17python: Import GPGMEError.Justus Winter1-1/+1
* pyme/core.py: Import GPGMEError. Fixes c5d118b2. Signed-off-by: Justus Winter <[email protected]>
2016-05-17python: Port more tests.Justus Winter4-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]>
2016-05-13Qt: Add keyLocateJob and test for itAndre Heinecke4-3/+159
* 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.
2016-05-13Qt: Add missing copyright header in testAndre Heinecke1-0/+31
* lang/qt/tests/t-keylist.cpp: Add copyright header.
2016-05-12python: Share generated methods between objects.justus/pyme3Justus Winter2-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]>
2016-05-12python: Raise exceptions on write errors.Justus Winter2-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]>
2016-05-12python: Fix writing to data buffers.Justus Winter4-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]>
2016-05-12python: Add a test suite.Justus Winter3-0/+46
* 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]>
2016-05-12python: Cache generated wrapper functions.Justus Winter1-3/+6
* lang/python/util.py (GpgmeWrap.__getattr__): Cache generated wrapper functions. Signed-off-by: Justus Winter <[email protected]>
2016-05-12python: Fix function invocation.Justus Winter1-1/+1
* lang/python/pyme/core.py (Data.new_from_fd): Fix function invocation. Signed-off-by: Justus Winter <[email protected]>
2016-05-12python: Fix name of exception, make slot methods explicit.Justus Winter1-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]>
2016-05-12python: Handle interpreter shutdown.Justus Winter1-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]>
2016-05-12python: Make test case more robust.Justus Winter1-0/+4
* lang/python/examples/t-edit.py: Check if key is found. Signed-off-by: Justus Winter <[email protected]>
2016-05-12python: Fix type translation.Justus Winter3-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]>
2016-05-11Cpp: Ensure gpgme.h is taken from current buildAndre Heinecke1-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.
2016-05-11python: Fix simple example.Justus Winter1-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]>
2016-05-11python: Integrate into the build system.Justus Winter2-30/+65
* 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]>
2016-05-10Qt / Cpp: Fix make distgpgmeppAndre Heinecke2-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.
2016-05-10python: PEP8 fixes.Justus Winter4-33/+38
Cherry picked from 0267c151. Signed-off-by: Justus Winter <[email protected]>
2016-05-10Qt: Fix unkonwn doxygen keyword warningsAndre Heinecke25-73/+63
-- Reimp is not a keqword and we inherit documentation anyway.
2016-05-10Qt: Make Protocol class public APIAndre Heinecke5-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.
2016-05-10Qt: Make doxygen quieterAndre Heinecke1-2/+2
* lang/qt/doc/Doxyfile.in: Quiet and no undocumented warnings.
2016-05-10Qt: Only install public headersAndre Heinecke1-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.
2016-05-10python: Delete trailing whitespace.Justus Winter14-78/+74
-- Signed-off-by: Justus Winter <[email protected]>
2016-05-10python: Drop Debian packaging.Justus Winter7-261/+0
-- Signed-off-by: Justus Winter <[email protected]>
2016-05-10python: Rename bindings.Justus Winter54-1/+1
-- Signed-off-by: Justus Winter <[email protected]>
2016-05-10Qt: Add test for async keylistingAndre Heinecke1-0/+18
* src/lang/qt/tests/t-keylist.cpp(KeyListTest::testKeyListAsync): New.
2016-05-06Qt: Fix license mentioned in READMEAndre Heinecke1-11/+21
* lang/qt/README: License is GPLv2+ and not LGPL. -- The only part under lgpl is the QByteArray dataprovider.
2016-05-06Qt: Fix library name in Copyright headersAndre Heinecke78-156/+156
-- Files are not part of libkleopatra anymore.
2016-05-06Cpp: Handle PINENTRY_LAUNCHED status lineAndre Heinecke1-0/+1
* lang/cpp/src/editinteractor.cpp (EditInteractor::needsNoResponse): Add GPGME_STATUS_PINENTRY_LAUNCHED. -- PINENTRY_LAUNCHED needs no response in any Job. This fixes Jobs which errored out on unknown status lines.
2016-04-12Cpp: Add support for pubkey_algo_nameAndre Heinecke2-0/+30
* lang/cpp/src/key.cpp (Subkey::algoName): New. * lang/cpp/src/key.h: Declare.
2016-04-12Cpp: Add support for gpgme_data_identifyAndre Heinecke2-0/+34
* lang/cpp/src/data.cpp (Data::type): New. * lang/cpp/src/data.h (Data::Type): New enum mapping.
2016-04-11Qt / Cpp: Mention coding style in READMESAndre Heinecke2-4/+16
* src/lang/cpp/README, src/lang/qt/README: Add hacking note.
2016-04-11Qt: Add doc generation with doxygenAndre Heinecke4-6/+2386
* configure.ac: Look for doxygen if qt is built. Configure new files. * lang/qt/doc/Doxyfile.in: New. * lang/qt/doc/Makefile.am: New. * lang/qt/README: Update. -- Currently this is a standard doxyfile template without much customization.
2016-04-11Qt: Fix unit test by adding initial.test depAndre Heinecke3-4/+18
* lang/qt/tests/t-keylist.cpp: Verify that GNUPGHOME is set. * lang/qt/tests/initial.test: New dummy test. * lang/qt/tests/Makefile.am: Add dependency to initial.test -- Feels weird but this follows the pattern in tests/gpg/Makefile.am and solves the problem that the environment is dirty.
2016-04-11Qt: Remove remaining boost usageAndre Heinecke31-121/+81
* lang/qt/src/dataprovider.h, lang/qt/src/decryptjob.h, lang/qt/src/decryptverifyjob.h, lang/qt/src/encryptjob.h, lang/qt/src/qgpgmeadduseridjob.cpp, lang/qt/src/qgpgmechangeexpiryjob.cpp, lang/qt/src/qgpgmechangeownertrustjob.cpp, lang/qt/src/qgpgmechangepasswdjob.cpp, lang/qt/src/qgpgmedecryptjob.cpp, lang/qt/src/qgpgmedecryptverifyjob.cpp, lang/qt/src/qgpgmedeletejob.cpp, lang/qt/src/qgpgmedownloadjob.cpp, lang/qt/src/qgpgmeencryptjob.cpp, lang/qt/src/qgpgmeexportjob.cpp, lang/qt/src/qgpgmeimportfromkeyserverjob.cpp, lang/qt/src/qgpgmeimportjob.cpp, lang/qt/src/qgpgmekeygenerationjob.cpp, lang/qt/src/qgpgmekeylistjob.cpp, lang/qt/src/qgpgmenewcryptoconfig.cpp, lang/qt/src/qgpgmenewcryptoconfig.h, lang/qt/src/qgpgmesignencryptjob.cpp, lang/qt/src/qgpgmesignjob.cpp, lang/qt/src/qgpgmesignkeyjob.cpp, lang/qt/src/qgpgmeverifydetachedjob.cpp, lang/qt/src/qgpgmeverifyopaquejob.cpp, lang/qt/src/signencryptjob.h, lang/qt/src/signjob.h, lang/qt/src/threadedjobmixin.cpp, lang/qt/src/threadedjobmixin.h, lang/qt/src/verifydetachedjob.h, lang/qt/src/verifyopaquejob.h: Remove boost usage. -- Mostly done with search and replace.
2016-04-11Qt: Remove predicates.h and stl_util.hAndre Heinecke2-836/+0
* src/lang/qt/predicates.h, src/lang/qt/stl_util.h: Removed. -- The magic is still better placed in libkleo.
2016-04-11Qt: Remove usage of stl_util.h and predicates.hAndre Heinecke1-12/+9
* src/lang/qt/qgpgmelistallkeysjob.cpp: Use comperators from gpgmepp instead of detail. Remove boost usage.