aboutsummaryrefslogtreecommitdiffstats
path: root/lang (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* doc-howto: fundamental aspects of GPGME vs PythonBen McGinnes2018-03-081-1/+55
| | | | | | | | | * Added a section for those pythonistas who are too used to web programming. Stressed that it's not simply not RESTful, it's not even REST-like. * Letting me move on to drawing a very loose parallel between a session and a context. The differences should become obvious in the subsequent sections.
* doc: Added multiple TODOs for inclusion in the HOWTOBen McGinnes2018-03-081-1/+43
| | | | | | | | | | | | | | * Some instructions to include are fairly obvious; as with encryption, decryption and signature verification. * Some are a little less obvious. * This includes the requests received to specifically include subkey management (adding and revoking subkeys on a primary key that's being retained. * Added the UID equivalents to the list, as well as key selection matters (and may or may not include something for handling group lines since that involves wrapping a CLI binary). * Key control documentation and examples requested by Mike Ingle of confidantmail.org.
* GPL compatible license for documentationBen McGinnes2018-03-071-3/+9
| | | | | * Added the same, slightly modified GPL based license that is used in other parts of GnuPG.
* HOWTO updateBen McGinnes2018-03-071-5/+5
| | | | | | | | * removed one bit of whitespace. * Marked up references to gpgme.h. * Fixed one spelling error. * Removed py2.6 from python search order since even if it is supported, it shouldn't be encouraged.
* GPGME Python bindings HOWTOBen McGinnes2018-03-071-0/+221
| | | | | | | * Started work on the GPGME Python bindings HOWTO. * 1,050 words to begin with at approx. 7.5KB. * Got as far as installation. * Includes instruction not to use PyPI for this.
* TODO - HOWTOBen McGinnes2018-03-071-1/+2
| | | | | * Added suv-entry for the new HOWTO being started and, since it has been started, checked it off.
* TODOBen McGinnes2018-03-071-0/+6
| | | | * Slightly expanded the list.
* WS removalBen McGinnes2018-02-261-1/+1
| | | | * Whitespace removal.
* Merge branch 'ben/python-docs-01'Ben McGinnes2018-02-266-119/+432
|\ | | | | | | | | | | * Documentation and the first brush strokes towards the future. Signed-off-by: Ben McGinnes <[email protected]>
| * LaTeX headersben/python-docs-01Ben McGinnes2018-02-262-0/+8
| | | | | | | | | | | | | | * Set LaTeX headers to enable ligatures and a 12pt font by default. * Paper size left for regional defaults. * Using XeLaTeX for easier font control. * Using default LaTeX font of Latin Main, but that's easy enough to change.
| * Renaming ad infinitum ...Ben McGinnes2018-02-191-0/+0
| | | | | | | | * Dropped the .txt from the end of the file ...
| * Text conversionBen McGinnes2018-02-191-0/+77
| | | | | | | | | | * Exported from Org Mode to UTF-8 text. * Removed my name from just under the title.
| * Title fixBen McGinnes2018-02-191-1/+1
| | | | | | | | * Fixed title.
| * Conflict with Phabricator filesBen McGinnes2018-02-191-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The developers of Phabricator, the web front-end on dev.gnupg.org have not implemented renderers for Markdown, Org-Mode or any other common markdown like language. * They also refuse to do so. * Instead they re-invented the wheel and implemented their own version of Markdown-like thing which is incompatible with everything else. It is called Remarkup. * The developers of Phabricator and Remarkup have refused to provide conversion tools to move files to/from any format to/from Remarkup. * They expect everyone to learn their new favourite pet project. * Remarkup may or may not display Org Mode files, but if so then it is likely to only want to do so as plain text. * There is an unaffiliated and unofficial project to convert Github Markdown to Remarkup via Pandoc. This might be adapted for our use, but requires testing. * Until then exporting from Org Mode to UTF-8 text is likely the least worst plan. * Which means renaming this file to README.org first.
| * Schizophrenic file typesBen McGinnes2018-02-191-2/+2
| | | | | | | | | | | | * Removed Markdown style heading underlining. * Removed in-line file type declaration (which is not correctly parsed by the web interface on dev.gnupg.org).
| * History pathBen McGinnes2018-02-161-7/+10
| | | | | | | | | | | | * Fixed a typo in a filepath reference. * Moved conjecture regarding the first version of Python used to a footnote.
| * Merge branch 'master' of /Users/ben/dev/hgit/mine/gnupg/gpgme/master into ↵Ben McGinnes2018-02-152-18/+13
| |\ | | | | | | | | | ben/python-docs-01
| * | LaTeX marginsBen McGinnes2018-02-152-0/+67
| | | | | | | | | | | | | | | * Added LaTeX header for 1 inch margins in the quite likely event that all PDF output ultimately uses LaTeX.
| * | TODO DocumentationBen McGinnes2018-02-151-1/+2
| | | | | | | | | | | | * Checked off the decision to stick with Org Mode.
| * | TODOBen McGinnes2018-02-151-7/+34
| | | | | | | | | | | | | | | * Beginning to turn the first part of this into something kind of like an actual TODO list as Org Mode uses it (maybe).
| * | Short HistoryBen McGinnes2018-02-141-20/+96
| | | | | | | | | | | | | | | | | | * Fixed or updated the most fundamental errors. * Also included some details on which modules are available on PyPI, as well as what happened to the PyME commit log.
| * | Subsectioned historyBen McGinnes2018-02-141-0/+15
| | | | | | | | | | | | | | | | | | * Split the main parts down into subsections. * Still need to cull the incorrect stuff towards the end and add more recent changes.
| * | HistoryBen McGinnes2018-02-141-52/+68
| | | | | | | | | | | | | | | | | | * Reshaping the history file to fit Org Mode's structuring for docs. * Also said history needs to be a bit more clear (it was kind of unfinished).
| * | TODOBen McGinnes2018-02-141-20/+45
| | | | | | | | | | | | | | | | | | | | | | | | * Updated TODO. * The entirety of the old TODO has been replaced with either more relevant tasks or goals for the examples and a more measured approach to the docs and why, in this project, Org Mode trumps reST, even though it's Python through and through.
| * | TODOBen McGinnes2018-02-141-23/+0
| | | | | | | | | | | | * Removed reST version of file.
| * | TODOBen McGinnes2018-02-141-0/+22
| | | | | | | | | | | | * Converted document from reST to org-mode.
| * | Short HistoryBen McGinnes2018-02-141-57/+0
| | | | | | | | | | | | * Removed reST version.
| * | Short HistoryBen McGinnes2018-02-141-0/+56
| | | | | | | | | | | | * Converted document from reST to org-mode.
* | | cpp: Add shorthand for key locateAndre Heinecke2018-02-162-0/+35
| |/ |/| | | | | | | * lang/cpp/src/key.cpp (Key::locate): New static helper. * lang/cpp/src/key.h: Update accordingly.
* | tests: Makefile portability.NIIBE Yutaka2018-02-152-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | * tests/gpg/Makefile.am: Don't use "export" directive. * tests/gpgsm/Makefile.am: Ditto. * lang/qt/tests/Makefile.am: Ditto. * lang/python/tests/Makefile.am: Ditto. -- GnuPG-bug-id: 3056 Signed-off-by: NIIBE Yutaka <[email protected]>
* | build: More Makefile fix.NIIBE Yutaka2018-02-151-6/+5
|/ | | | | | * lang/python/tests/Makefile.am: Avoid target with '/'. Signed-off-by: NIIBE Yutaka <[email protected]>
* cpp: Add SpawnShowWindow flagAndre Heinecke2018-02-091-1/+2
| | | | * lang/cpp/src/context.h (SpawnShowWindow): New.
* cpp: Add conveniance Data::toStringAndre Heinecke2018-02-092-0/+17
| | | | | | | * lang/cpp/src/data.h, lang/cpp/src/data.cpp: Add Data::toString. -- I'm lazy and like to waste memory.
* qt: Don't use QDateTime::toSecsSinceEpochAndre Heinecke2017-12-111-2/+2
| | | | | | | | * lang/qt/src/qgpgmequickjob.cpp (addSubkeyWorker) (createWorker): Use toMSecsSinceEpoch instead toSecsSinceEpoch. -- toSecsSinceEpoch was only introduced in Qt 5.8.
* Spelling fixes for comments and docAndre Heinecke2017-12-084-5/+5
| | | | | | | -- Patch provided by ka7 in dev.gnupg.org Differential D423
* cpp: Fix handling of lsig promotionAndre Heinecke2017-12-071-0/+4
| | | | | | | | | | | | * src/gpgsignkeyeditinteractor.cpp (SignKeyState): Add second CONFIRM state. (makeTable): Properly handle local_promote_okay. (action): Handle CONFIRM2. -- This fixes changing a local signature to a "public" signature. GnuPG-Bug-Id: T1649
* python: Default whence argument for Data() to SEEK_SET.Tobias Mueller2017-12-042-0/+11
| | | | | | | | | | | | | | * lang/python/gpgme.i: copied signature from gpgme.h and defaulted the value to SEEK_SET. * lang/python/tests/t-data.py: Added a test for no second argument -- Having to import the os package when wanting to read a Data object is a slight annoyance. With SWIG, we can define default parameters. This change defaults the whence argument to SEEK_SET which is how StringIO and BytesIO behave. Signed-off-by: Tobias Mueller <[email protected]>
* qt: Add job for quick commandsAndre Heinecke2017-12-017-2/+315
| | | | | | | | | | | | | | | * lang/qt/src/qgpgmequickjob.cpp, lang/qt/src/qgpgmequickjob.h, lang/qt/src/quickjob.h: New. * lang/qt/src/Makefile.am, lang/qt/src/protocol.h, lang/qt/src/protocol_p.h, lang/qt/src/job.cpp: Update accordingly. -- Keeping it in line with the Job for everything pattern. Although it's reduced to one job for four commands as the commands all behave the same.
* cpp: Wrap create_key and create_subkeyAndre Heinecke2017-12-012-0/+76
| | | | | | | * lang/cpp/src/context.cpp, lang/cpp/src/context.h (Context::startCreateKey) (Context::createKey, Context::createSubkey) (Context::startCreateSubkey): New.
* tests: Make portability fix.NIIBE Yutaka2017-11-211-4/+4
| | | | | | | | | | | | | | * lang/python/tests/Makefile.am: Distinguish target and path. * tests/gpg/Makefile.am: Ditto. * tests/gpgsm/Makefile.am: Ditto. -- GNU Make is powerful enough to match path to target (and vice versa), but BSD make is not. GnuPG-bug-id: 3056 Signed-off-by: NIIBE Yutaka <[email protected]>
* qt: Fix IODeviceDataProvider with ProcessAndre Heinecke2017-11-141-1/+5
| | | | | | | | | * lang/qt/src/dataprovider.cpp (blocking_read): Keep reading if process is not atEnd. -- This fixes a regression in Kleopatra that uses this dataprovider to chain the gpgtar process to the encryption / signing.
* qt: Add test for version infoAndre Heinecke2017-09-041-0/+13
| | | | | | | * lang/qt/tests/t-various.cpp (TestVarious::testVersion): New. -- If it's not tested it does not work ;-)
* cpp: Fix version info comparisonAndre Heinecke2017-09-041-7/+16
| | | | | | | | | | | * lang/cpp/src/engineinfo.h (EngineInfo::Version::operator<): Fix logic. * lang/cpp/src/engineinfo.h (EngineInfo::Version::operator>): New. * NEWS: Mention added API -- This fixes a logic error that 2.2.0 < 2.1.19 would return true.
* python: Support parallel build in testsAlon Bar-Lev2017-08-211-1/+1
| | | | | | | * lang/python/tests/Makefile.am: Depend xcheck with all which was lost due to the check hack. Signed-off-by: Alon Bar-Lev <[email protected]>
* python: Improve keylist test.Justus Winter2017-08-211-0/+3
| | | | | | * lang/python/tests/t-keylist.py: Check a keylist matching no keys. Signed-off-by: Justus Winter <[email protected]>
* cpp: Fix Key::isDeVs for subkeysAndre Heinecke2017-07-261-1/+12
| | | | | | | * lang/cpp/src/key.cpp (Key::isDeVs): Check all subkeys. -- Previosly only the primary key was checked and not all subkeys.
* python: Improve error handling.Justus Winter2017-07-112-65/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | * NEWS: Update. * lang/python/src/core.py (Context.__read__): New helper function. (Context.encrypt): Attach partial results to exceptions. (Context.decrypt): Likewise. (Context.sign): Likewise. (Context.verify): Likewise. * lang/python/src/errors.py (GpgError): Move the core of GPGMEError to this class, add a nicer interface for it. This makes the errors thrown by this library more uniform, and allows us to track the underlying error in synthesized high-level errors. (GPGMEError): Simplify. (...): Make sure to call the parent classes' constructor in all other classes. -- Attach partial results to errors. Some operations return results even though they signal an error. Of course this information must be taken with a grain of salt. But often, this information is useful for diagnostic uses or to give the user feedback. Since the normal control flow is disrupted by the exception, the callee can no longer return results, hence we attach them to the exception objects. GnuPG-bug-id: 3271 Signed-off-by: Justus Winter <[email protected]>
* Add isDeVs to ostream operatorAndre Heinecke2017-07-102-0/+2
| | | | | | * lang/cpp/src/decryptionresult.cpp, lang/cpp/src/verificationresult.cpp: Extend ostream operator to include isDeVs.
* Fix some shadow warningsAndre Heinecke2017-07-101-4/+4
| | | | | -- Warnings in headers hurt downstream.
* cpp: Fix CMake config library name for GPGMEAndre Heinecke2017-06-121-1/+1
| | | | | | | | * lang/cpp/src/GpgmeppConfig.cmake.in.in: The link library is of course also dynamic. -- GnuPG-Bug-Id: T3181