aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/gpg/constants/keysign.py
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-02-17 14:44:35 +0000
committerJustus Winter <[email protected]>2017-02-17 15:28:00 +0000
commit48634e651fcd02431c0518d42ada1f3b402feb2c (patch)
tree1bb947a1e09e96982f44d47d15dd3d6b5a825964 /lang/python/gpg/constants/keysign.py
parentpython: Fix teardown of ephemeral contexts. (diff)
downloadgpgme-48634e651fcd02431c0518d42ada1f3b402feb2c.tar.gz
gpgme-48634e651fcd02431c0518d42ada1f3b402feb2c.zip
python: Support quick key signing.
* NEWS: Update. * doc/gpgme.texi (gpgme_op_keysign): Fix the description of the 'expire' argument. * lang/python/gpg/constants/__init__.py: Import new file. * lang/python/gpg/constants/keysign.py: New file. * lang/python/gpg/core.py (Context.key_sign): New function. * lang/python/tests/Makefile.am (py_tests): Add new test. * lang/python/tests/t-quick-key-signing.py: New test. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'lang/python/gpg/constants/keysign.py')
-rw-r--r--lang/python/gpg/constants/keysign.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/lang/python/gpg/constants/keysign.py b/lang/python/gpg/constants/keysign.py
new file mode 100644
index 00000000..fccdbc42
--- /dev/null
+++ b/lang/python/gpg/constants/keysign.py
@@ -0,0 +1,25 @@
+# Flags for key signing
+#
+# Copyright (C) 2017 g10 Code GmbH
+#
+# This file is part of GPGME.
+#
+# GPGME is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as
+# published by the Free Software Foundation; either version 2.1 of the
+# License, or (at your option) any later version.
+#
+# GPGME is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
+# Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, see <http://www.gnu.org/licenses/>.
+
+from __future__ import absolute_import, print_function, unicode_literals
+del absolute_import, print_function, unicode_literals
+
+from gpg import util
+util.process_constants('GPGME_KEYSIGN_', globals())
+del util