aboutsummaryrefslogtreecommitdiffstats
path: root/lang (unfollow)
Commit message (Collapse)AuthorFilesLines
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-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-10python: PEP8 fixes.Justus Winter4-33/+38
Cherry picked from 0267c151. Signed-off-by: Justus Winter <[email protected]>
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]>
2015-08-02More GTK2 removalpyme3Ben McGinnes2-7003/+0
* Missed a couple of files, these 2 go for the same reason as the previous 3.
2015-08-02Removed GUI examplesBen McGinnes3-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.).
2015-05-16Python 3 port of PyMEBen McGinnes2-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.
2015-05-16Explaining why not all scripts workBen McGinnes1-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.
2015-05-16Byte encodingBen McGinnes4-10/+10
* More string updates. * verifydetails.py still fails, but as Bernhard is still contactable, it might be worth him checking on it instead.
2015-05-16No change, note added to explain why.Ben McGinnes1-0/+4
2015-05-16Strings vs. BytesBen McGinnes1-1/+1
* CLI input must be byte encoded.
2015-05-16More byte changes and passphrase changesBen McGinnes3-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.
2015-05-16More bytes goodBen McGinnes1-1/+1
* Another string to byte change.
2015-05-16Updated encrypt-to-allBen McGinnes1-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.
2015-05-16Passphrase updateBen McGinnes2-2/+2
* Changed example passphrase to something that meets the current minimum requirements.
2015-05-16example emailBen McGinnes4-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.
2015-05-16Updated string and key dataBen McGinnes1-6/+6
* Text changed to byte literals. * Changed key type to RSA/RSA. * Changed expiry to the future (2020).
2015-05-08String typeBen McGinnes1-1/+1
* the plain text string must be bytes and not unicode. * Expect most of the example code to have similar issues at present.
2015-05-05Python 3 port of PyMEBen McGinnes57-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).
2012-09-25Remove all trailing whitespace from source filesWerner Koch1-4/+4
-- Command used: sed -i 's,[ \t]*$,,' FILE
2012-04-20.gitignore: flesh out rules and add subdirectory-.gitignores.W. Trevor King1-0/+1
2011-12-02Generate the ChangeLog from commit logs.Werner Koch2-7/+21
* build-aux/gitlog-to-changelog: New script. Taken from gnulib. * build-aux/git-log-fix: New file. * build-aux/git-log-footer: New file. * build-aux/git-hook/commit-msg: New script. * doc/HACKING: New file. * ChangeLog: New file. * Makefile.am (EXTRA_DIST): Add new files. (gen-ChangeLog): New. (dist-hook): Run gen-ChangeLog. * autogen.sh: Install commit-msg hook for git. Rename all ChangeLog files to ChangeLog-2011.
2008-11-232008-11-08 Moritz <[email protected]>Moritz Schulte2-36/+58
* gpgme.lisp (size-t): Wrong call to defctype: function accepts optional, not keyword argument. (ssize-t): Likewise. (off-t): Likewise. (gpgme-data-t, gpgme-ctx-t): Likewise. (gpgme-error-t): Likewise. (gpgme-error-no-signal-t): Likewise. (gpgme-err-code-t): Likewise. (gpgme-err-source-t): Likewise. (gpgme-sig-notation-t, gpgme-engine-info-t): Likewise. (gpgme-subkey-t): Likewise. (gpgme-key-sig-t): Likewise. (gpgme-user-id-t): Likewise. (gpgme-key-t): Likewise. (gpgme-data-cbs-t): Likewise. (gpgme-invalid-key-t): Likewise. (gpgme-op-encrypt-result-t): Likewise. (gpgme-recipient-t): Likewise. (gpgme-op-decrypt-result-t): Likewise. (gpgme-new-signature-t): Likewise. (gpgme-op-sign-result-t): Likewise. (gpgme-signature-t): Likewise. (gpgme-op-verify-result-t): Likewise. (gpgme-import-status-t): Likewise. (gpgme-op-import-result-t): Likewise. (gpgme-op-genkey-result-t): Likewise. (gpgme-op-keylist-result-t): Likewise.
2006-07-062006-07-06 Marcus Brinkmann <[email protected]>Marcus Brinkmann8-0/+2268
* lang, lang/cl: New subdirectories. * lang/Makefile.am, lang/README: New files. * configure.ac (AC_CONFIG_FILES): Add lang/Makefile, lang/cl/Makefile and lang/cl/gpgme.asd. * Makefile.am (SUBDIRS): Add lang. lang/cl/ 2006-07-06 Marcus Brinkmann <[email protected]> * Initial release.