aboutsummaryrefslogtreecommitdiffstats
path: root/lang (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-12-03qt,cpp: Consistently use nullptr and overrideAndre Heinecke56-333/+336
* lang/cpp/src/Makefile.am, lang/qt/src/Makefile.am (AM_CPPFLAGS): Add suggest-override and zero-as-null-pointer-constant warnings. * lang/cpp/src/*, lang/qt/src/*: Consistenly use nullptr and override. -- This was especially important for the headers so that downstream users of GpgME++ or QGpgME do not get flooded by warnings if they have these warnings enabled. It also improves compiler errors/warnings in case of accidental mistakes.
2018-12-03doc: Minor comment cleanups.Werner Koch1-9/+3
-- Signed-off-by: Werner Koch <[email protected]>
2018-11-30python: documentation fixesBen McGinnes4-3/+9
* Typographic and whitespace error correction pertaining to the previous update. Signed-off-by: Ben McGinnes <[email protected]>
2018-11-30python: documentationBen McGinnes19-124/+542
* Added long description to setup.py.in. * Added maintenance mode details with clarification for what type of things would be a bug as far as MM is concerned and what wouldn't be. ** Includes a not too subtle hint directed towards the donations page. * Miscellaneous tightening of documentation. Signed-off-by: Ben McGinnes <[email protected]>
2018-11-26python docs: checking key signaturesBen McGinnes3-25/+260
* Added instructions for checking key certifications or key signatures (depending on preferred terminology). * Added pendulum module to recommended installations, but not to requirements. Tested-by: Ben McGinnes <[email protected]> Signed-off-by: Ben McGinnes <[email protected]>
2018-11-22python: docs updateBen McGinnes6-24/+287
* Added documentation for the new methods added to gpgme.version. * Removed the Flask based advanced use case from the what-is-new section as that type of code will not be added here.
2018-11-22python: version as integersBen McGinnes1-0/+20
* lang/python/version.py.in: added gpg.version.versionintlist * If gpg.version.versionintlist[2] ever returns -1 then there's a serious problem with the build and it should be lodged as a bug if it's repeatable. Seeing this should never happen, but checking for it is better than not doing so.
2018-11-19python: import typeBen McGinnes1-7/+0
* Fixed bug T4242 and tested that dropping "Import" in favour of "import_type" does indeed work just fine. Tested-by: Ben McGinnes <[email protected]> Signed-off-by: Ben McGinnes <[email protected]>
2018-11-19python: import constantBen McGinnes3-14/+14
* lang/python/src/constants/__init__.py: dropped use of Import capitalisation and renamed lang/python/src/constants/import.py to lang/python/src/constants/import_type.py to address bug T4242. * lang/python/doc/src/gpgme-python-howto: minor docs updates.
2018-11-16Add SPDX identifiers to most source filesWerner Koch6-19/+16
-- Signed-off-by: Werner Koch <[email protected]>
2018-11-08spelling: fix misspellingsDaniel Kahn Gillmor19-49/+49
Signed-off-by: Daniel Kahn Gillmor <[email protected]>
2018-11-06docs: python bindingsBen McGinnes14-215/+504
* Continued restructuring as part of moving beyond mere;y the HOWTO file. * Generated the alternative source files for reST and Texinfo. * Fixed some errors and updated links after moving the what's new section to two new files (yes, two).
2018-11-06python examples: another importerBen McGinnes1-4/+8
* Fixed a similar type of bug with the non-protonmail importer.
2018-11-06python examples: protonmail hkp scriptsBen McGinnes2-28/+22
* fixed a bug in the import try statement for both versions.
2018-11-03docs: typoBen McGinnes1-1/+1
* lang/python/doc/src/gpgme-python-howto: s/Revokinging/Revoking/g
2018-10-30docs: python docs restructureBen McGinnes4-71/+168
* Moved the what's new section out of the HOWTO (mostly), in anticipation of expanding the docs to be more than merely a HOWTO.
2018-10-30docs: pythonBen McGinnes3-1/+14
* dropped the ".org" extension and added a mode line for each file as this will make scripting format conversions a lot easier.
2018-10-29cpp,tests: Add another test runnerAndre Heinecke2-1/+188
* lang/cpp/tests/run-verify.cpp: New. * lang/cpp/tests/Makefile.am: Update accordingly. -- Add another test runner which helps to find problems on windows.
2018-10-25cpp: Add some convenience functionsAndre Heinecke4-0/+41
* lang/cpp/src/context.cpp (Context::create): New. * lang/cpp/src/context.h: Update accordingly. * lang/cpp/src/key.cpp, lang/cpp/src/key.h: (Key::isBad, Subkey::isBad, UserID::isBad) (UserID::Signature::isBad): Add shorthand for the isX checks. * NEWS: Mention it. -- I don't know how often I wrote: if (key.isNull() || key.isExpired() || key.isRevoked() ... And for the context it is good practice to use a unique ptr so the API should make it easy.
2018-10-23docs: python howtoBen McGinnes1-5/+5
* Fixed a few spelling and grammatical errors.
2018-10-21Python: docs tweaksBen McGinnes2-15/+39
* Fixed a minor error in how the reST version of the HOWTO is generated. * Updated the help() in __init__.py with a little more detail as to why not to use the lower level functions.
2018-10-20python bindings: callback testBen McGinnes1-2/+30
* lang/python/tests/t-callbacks.py: Updated test logic to try generating a key which expires in 2099 and if that fails then fallback to an expiration in 2037 in an attempt to catch the 32-bit systems.
2018-10-18python: do not export HAVE_CXX11 definitionDaniel Kahn Gillmor1-0/+4
* lang/python/gpgme.i: ignore HAVE_CXX11 in SWIG interface -- If there are two distinct builds (a) and (b) of gpgme which both build python bindings, and build (a) also happens to build the C++ bindings, then the generated gpg/gpgme.py file from build (a) will not be usable with the .so generated in build (b), despite them being exactly the same, and having nothing to do with C++. In particular, it will fail with: ----------- File "…/gpg/__init__.py", line 99, in <module> from . import core File "…/gpg/core.py", line 10, in <module> from . import gpgme File "…/gpg/gpgme.py", line 152, in <module> HAVE_CXX11 = _gpgme.HAVE_CXX11 AttributeError: module 'gpg._gpgme' has no attribute 'HAVE_CXX11' ----------- By asking SWIG to ignore this definition, we stabilize the generated .py and the .so, ensuring that they are more cleanly interoperable.
2018-10-18doc: convert more http:// links to https://Daniel Kahn Gillmor8-12/+12
-- Signed-off-by: Daniel Kahn Gillmor <[email protected]>
2018-10-18doc: use https:// for www.gnu.orgDaniel Kahn Gillmor119-122/+122
-- Signed-off-by: Daniel Kahn Gillmor <[email protected]>
2018-10-17js: increase default startup timeoutMaximilian Krambach1-1/+1
-- * src/index.js: change the init default if none is given, so that all initialization defaults line up to 1000 miliseconds
2018-10-12cl: Add missing fileWerner Koch1-0/+31
-- Fixes-commit: 85d7af8ff2f6afd63701079e23f31be08d58a15d My fault, sorry. Signed-off-by: Werner Koch <[email protected]>
2018-10-12cl: Several fixesGuillaume LE VAILLANT5-173/+386
-- * Use wrapper types calling translation functions instead of TRANSLATE-{FROM,TO}-FOREIGN methods as they seem not to be called in some cases. * Use the (:STRUCT SOME-C-STRUCT) notation instead of the deprecated direct reference to SOME-C-STRUCT. * Add missing values in enums and bit fields. * Use cffi-grovel to define system types (SIZE-T, OFF-T, etc). * Wrap GPGME-DATA-T in a class (like contexts). * Use the FINALIZE function from trivial-garbage to free the C objects for contexts, keys and data automatically. * Make DATA-READ-CB and DATA-WRITE-CB run faster. * Update the README file. Signed-off-by: Guillaume LE VAILLANT <[email protected]>
2018-10-09cpp: Add KeyListMode::LocateAndre Heinecke1-0/+1
* cpp/src/global.h (KeyListMode): Add Locate. -- Similar to locate in core.
2018-10-09cpp: Add first manual testsAndre Heinecke5-1/+335
* lang/cpp/Makefile.am: Add tests subdir. * lang/cpp/tests/Makefile.am: New. * lang/cpp/tests/README, lang/cpp/tests/run-getkey.cpp, lang/cpp/tests/run-keylist.cpp: New. * configure.ac: Configure tests makefile. -- The autotests for c++ live in lang/qt/tests these tests are more for manual experiments to validate some functionality.
2018-10-09cpp: Initialize all gpgme_key_t's in contextAndre Heinecke1-3/+3
* lang/cpp/src/context.cpp (Context::startKeyListing), (Context::keyListResult, Context::signingKeys): Initialize key. -- "Should" not be neccessary but it's cleaner and would have covered the case of the previous commit.
2018-10-09qt, tests: Add test for single get keyAndre Heinecke1-0/+33
* lang/qt/tests/t-keylist.cpp (testGetKey): New. -- Added this to check if there was a memleak in that function.
2018-10-08Release 1.12.0gpgme-1.12.0Werner Koch1-1/+1
* configure.ac: Bump core LT version to C32/A21/R0. Bump C++ LT version to C14/A8/R0. * lang/qt/tests/Makefile.am (CLEANFILES): Add reader status files. * Makefile.am (EXTRA_DIST): Add conf/whatisthis. Signed-off-by: Werner Koch <[email protected]>
2018-10-05build: Move config.h to conf/config.hWerner Koch1-1/+1
* conf/: New dir. * configure.ac (AC_CONFIG_HEADER): Move header to conf dir. * doc/Makefile.am (mkdefsinc): Adjust rule. * lang/python/Makefile.am (copystamp): Ditto. -- C++ uses those stupid files without a suffix and thus the new standard header <version> as included by newer other libc++ versions may conflict with the VERSION file in out top directory. This change should solve the problem. GnuPG-bug-id: 4168 Signed-off-by: Werner Koch <[email protected]>
2018-10-04docs: whitespace bugBen McGinnes2-15/+15
* Same as before, but exported.
2018-10-04docs: org to texinfo whitspace bugBen McGinnes1-2/+2
* replaced "." in headings with "·" to prevent whitspace being appended by texinfo and breaking git.
2018-10-04docs: pythonBen McGinnes7-35/+90
* Fixed an error in the new index page and then exported to the other two "source" formats.
2018-10-04docs: pythonBen McGinnes2-0/+58
* lang/python/doc/meta/TODO.org: Added the two major documentation build system tasks to the TODO list. * Added an index page in preparation for sorting out the second of those TODO lists (Docutils is a lot easier to handle than Texinfo). * Meanwhile, have confirmed that it all builds just fine under GNU/Linux, OS X and FreeBSD while retaining the documentation, so that's a nice improvement from 1.11.1. Tested-by: Ben McGinnes <[email protected]> Signed-off-by: Ben McGinnes <[email protected]>
2018-10-04python: makefilesBen McGinnes12-8/+6
* doc/Makefile.am: Removed a bit I forgot about. * Renamed lang/python/docs to lang/python/doc bvecause apparently automake cares about that too. * Decided to be extra explicit in the manifest because if I don't then all sorts of things get deleted ... like lang/python * Tested on an external linux system just in case my osx workstation introduces too much weirdness. Tested-by: Ben McGinnes <[email protected]> Signed-off-by: Ben McGinnes <[email protected]>
2018-10-04python: make fileBen McGinnes1-1/+0
* lang/python/Makefile.am: Attempting to remove the docs/meta directory did a lot worse than I thought it was doing, so better to just be sure the documentation is available than destroy the entire bindings directory. Tested-by: Ben McGinnes <[email protected]> Signed-off-by: Ben McGinnes <[email protected]>
2018-10-04python: make fileBen McGinnes1-1/+2
* lang/python/Makefile.am: Now that gpg2 has been renamed back to gpg and gpg1 is semi-deprecated, we should check what the actual gpg binary is with gpgconf and use that rather than make assumptions per system. * Also, it means less worry if gpg3 is ever a thing. (Trust me, I remember the Python 1 to 2 transition as well as the current 2 to 3 transition). ;) Signed-off-by: Ben McGinnes <[email protected]>
2018-10-03docs: more whitespace checksBen McGinnes1-5/+5
* lang/python/docs/texinfo/short-history.texi:
2018-10-03dpcs: python howtoBen McGinnes5-8/+6545
* More updates to the docs themselves and the versions to be available with the next release. * .texi and .rst copies of the HOWTO and the short history of (this part) of the project.
2018-10-03docs: pythonBen McGinnes4-1/+9020
* More restructuring. Also the painstaking task of deciphering some of the more eclectic aspects of Texinfo and make.
2018-10-03docs: python bindingsBen McGinnes4-0/+0
* Restructured the docs directory to account for the GNU preferred source doc format (.texi) and the Python preferred source doc format (.rst) and the real source doc format (.org). * Both the perceived source formats will need to be generated from the .org files and included at this stage. Unfortunately there is not yet a native org-to-rst transformation method in the org-mode software in Emacs nor is there a a direct means of going from reST to Org-mode from Docutils. There's only third party packages like Pandoc and, while very good, there is no guarantee of consistency; so we can't entirely automate this bit (yet).
2018-10-03docs: pre-python preparationBen McGinnes1-0/+0
* doc/Makefile.am: removed the python howto from this file, restoring it to just the main project and the newer .js files. * deleted: doc/gpgme-python-howto.texi * renamed the Short_History.org file to short-history.org to keep the naming conventions similar. * All the Python files can (and should) live together.
2018-10-02python bindings: CPython orderBen McGinnes1-8/+26
* Changed the order of python versions the configure/make process checks for, placing Python 3.7 ahead of 3.6. * Updated the HOWTO documentation to reflect this change. Tested-by: Ben McGinnes <[email protected]> Signed-off-by: Ben McGinnes <[email protected]>
2018-09-30docs: python bindingsBen McGinnes1-2/+27
* Tightened up the docs a little bit, updated the "what's new" section, dropped the "-draft" version in preparation for GPGME 1.12.0's release. * Exported another .texi version (and updated the draft copies to this commit (which ought to be 1.11.1-beta313). Signed-off-by: Ben McGinnes <[email protected]>
2018-09-30python bindings: fixing decrypt-verifyBen McGinnes2-6/+7
* lang/python/src/core.py: First restoring the exception to the being just that. * The means to manipulate the error output is temporarily in commented out code, but ought to be added to a proper test later. * In the mean time the original test, with a very slight change, works again. Tested-by: Ben McGinnes <[email protected]> Signed-off-by: Ben McGinnes <[email protected]>
2018-09-30python bindings: ctx.decryptBen McGinnes1-9/+53
* lang/python/src/core.py: Fixed methods of detecting whether verify is a boolean variable or a list. * Added methods of catching the missing keys exceptions. * Still retained PEP8 compliance (which might have been where one or two problems crept in). * Though this is essentially the correct behaviour, it still does not quite fit the otiginal test; so that will also require some adjustment. Tested-by: Ben McGinnes <[email protected]> Signed-off-by: Ben McGinnes <[email protected]>