aboutsummaryrefslogtreecommitdiffstats
path: root/lang (unfollow)
Commit message (Collapse)AuthorFilesLines
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.
2016-04-11Cpp: Add string comparators for keysAndre Heinecke2-0/+56
* lang/cpp/src/global.h (GPGMEPP_MAKE_STRCMP): New. (_gpgmepp_strcmp): NULL save wrapper around std::strcmp. * lang/cpp/src/key.h: Add comparators for various attributes. -- This was taken from libkleo predicates.h. Appears generally useful.
2016-04-11Cpp: Remove last usages of boostAndre Heinecke3-23/+24
* lang/cpp/src/configuration.cpp: Use std::remove_pointer. (Configuration::operator<<): std::for_each. * lang/cpp/src/context.cpp: Delete manually instead of scoped ptr. * lang/cpp/src/scdgetinfoassuantransaction.cpp: Use static_assert. (to_reader_list): Tokenize with getline.
2016-04-04Add pthread in gpgmepp configAndre Heinecke1-2/+2
* lang/cpp/src/GpgmeppConfig.cmake.in.in: Add pthread.
2016-04-03Cpp / Qt: Reduce boost usage (memory and tuple)Andre Heinecke69-264/+232
* cpp/src/assuanresult.h, cpp/src/configuration.cpp, cpp/src/configuration.h, cpp/src/data.h, cpp/src/decryptionresult.h, cpp/src/defaultassuantransaction.cpp, cpp/src/encryptionresult.cpp, cpp/src/encryptionresult.h, cpp/src/engineinfo.h, cpp/src/gpgagentgetinfoassuantransaction.cpp, cpp/src/gpgsignkeyeditinteractor.cpp, cpp/src/importresult.cpp, cpp/src/importresult.h, cpp/src/key.h, cpp/src/keygenerationresult.h, cpp/src/keylistresult.h, cpp/src/notation.h, cpp/src/signingresult.cpp, cpp/src/signingresult.h, cpp/src/verificationresult.cpp, cpp/src/verificationresult.h, cpp/src/vfsmountresult.h, qt/src/dataprovider.cpp, qt/src/dataprovider.h, qt/src/decryptjob.h, qt/src/decryptverifyjob.h, qt/src/downloadjob.h, qt/src/encryptjob.h, qt/src/qgpgmeadduseridjob.cpp, qt/src/qgpgmechangeexpiryjob.cpp, qt/src/qgpgmechangeownertrustjob.cpp, qt/src/qgpgmechangepasswdjob.cpp, qt/src/qgpgmedecryptjob.cpp, qt/src/qgpgmedecryptjob.h, qt/src/qgpgmedecryptverifyjob.cpp, qt/src/qgpgmedecryptverifyjob.h, qt/src/qgpgmedeletejob.cpp, qt/src/qgpgmedownloadjob.cpp, qt/src/qgpgmedownloadjob.h, qt/src/qgpgmeencryptjob.cpp, qt/src/qgpgmeencryptjob.h, qt/src/qgpgmeexportjob.cpp, qt/src/qgpgmeexportjob.h, qt/src/qgpgmeimportfromkeyserverjob.cpp, qt/src/qgpgmeimportfromkeyserverjob.h, qt/src/qgpgmeimportjob.cpp, qt/src/qgpgmeimportjob.h, qt/src/qgpgmekeygenerationjob.cpp, qt/src/qgpgmekeygenerationjob.h, qt/src/qgpgmekeylistjob.cpp, qt/src/qgpgmekeylistjob.h, qt/src/qgpgmelistallkeysjob.cpp, qt/src/qgpgmelistallkeysjob.h, qt/src/qgpgmenewcryptoconfig.cpp, qt/src/qgpgmenewcryptoconfig.h, qt/src/qgpgmesignencryptjob.cpp, qt/src/qgpgmesignencryptjob.h, qt/src/qgpgmesignjob.cpp, qt/src/qgpgmesignjob.h, qt/src/qgpgmesignkeyjob.cpp, qt/src/qgpgmeverifydetachedjob.cpp, qt/src/qgpgmeverifydetachedjob.h, qt/src/qgpgmeverifyopaquejob.cpp, qt/src/qgpgmeverifyopaquejob.h, qt/src/signencryptjob.h, qt/src/signjob.h, qt/src/threadedjobmixin.h, qt/src/verifydetachedjob.h, qt/src/verifyopaquejob.h: Reduce boost usage. -- This was mostly done with search and replace to change the templates / classes from memory and tuple to their c++11 equivalents.
2016-04-03Qt: Add static factor methods for protocolAndre Heinecke3-2/+33
* lang/qt/src/qgpgmebackend.cpp (QGpgME::openpgp, QGpgME::smime): New. * lang/qt/src/qgpgmebackend.h: Declare. * lang/qt/tests/t-keylist.cpp (KeyListTest::testSingleKeyListSync): Use new functions. -- This replaces the cryptobackendfactory functionality from libkleo.
2016-04-03Qt: Add a unit test for qgpgmeAndre Heinecke3-1/+98
* configure.ac: Configure test Makefile. * m4/qt.m4: Look up Qt5Test flags. * lang/qt/tests/t-keylist.cpp: New. Simple keylist check. * lang/qt/tests/Makefile.am: New. General test framework. -- This test mostly checks that it basically compiles / works and adds a test framework.
2016-04-03Qt: Add missing MOC includesAndre Heinecke22-0/+24
* qgpgmeadduseridjob.cpp, qgpgmechangeexpiryjob.cpp, qgpgmechangeownertrustjob.cpp, qgpgmechangepasswdjob.cpp, qgpgmedecryptjob.cpp, qgpgmedecryptverifyjob.cpp, qgpgmedeletejob.cpp, qgpgmedownloadjob.cpp, qgpgmeencryptjob.cpp, qgpgmeexportjob.cpp, qgpgmeimportfromkeyserverjob.cpp, qgpgmeimportjob.cpp, qgpgmekeygenerationjob.cpp, qgpgmekeylistjob.cpp, qgpgmelistallkeysjob.cpp, qgpgmerefreshkeysjob.cpp, qgpgmesecretkeyexportjob.cpp, qgpgmesignencryptjob.cpp, qgpgmesignjob.cpp, qgpgmesignkeyjob.cpp, qgpgmeverifydetachedjob.cpp, qgpgmeverifyopaquejob.cpp: Add missing MOC includes. -- In the CMake world this was handled by cmake automoc suppport and not neccessary.
2016-04-03Qt: Declare pure virtuals as suchAndre Heinecke1-5/+5
* lang/qt/src/qgpgmebackend.h (Protocol): Make all functions pure virtual. -- Fixes errors when linking with QGpgME.
2016-04-03Qt: Don't declare showErrorDialog anymoreAndre Heinecke1-2/+0
* cpp/qt/src/job.h: Remove showErrorDialog. -- If additional error handling is neccessary emitting signals to a gui application would be better API for qgpgme.
2016-04-03Qt: Only use GpgME based config classAndre Heinecke3-1200/+1
* lang/qt/src/qgpgmecryptoconfig.cpp, lang/qt/src/qgpgmecryptoconfig.h: Removed. * lang/qt/src/qgpgmebackend.cpp: Return newcryptoconfig. -- The GpgME based config class is the way forward and the old class was using KDE Code. Probably needs some bugfixes as previously the new class was only used for Windows CE