<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gpgme/lang/python/src/core.py, branch gpgme-1.24.2</title>
<subtitle>GnuPG Made Easy.</subtitle>
<id>http://git.bktus.com/gpgfrontend/gpgme/atom?h=gpgme-1.24.2</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/gpgme/atom?h=gpgme-1.24.2'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/'/>
<updated>2023-10-13T07:22:36Z</updated>
<entry>
<title>python,doc: Fix typos in documentation and source code comments</title>
<updated>2023-10-13T07:22:36Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2023-10-13T07:18:45Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=131384b107fb54e37e31f8fc19be8ab8fcffd929'/>
<id>urn:sha1:131384b107fb54e37e31f8fc19be8ab8fcffd929</id>
<content type='text'>
--

Anonymous contribution

Signed-off-by: Ingo Klöcker &lt;dev@ingo-kloecker.de&gt;
</content>
</entry>
<entry>
<title>python: Don't call __del__ from __exit__ method.</title>
<updated>2022-08-09T00:57:28Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2022-08-09T00:36:04Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=f8d99bb9e4a7f6229c19c4fbd951ccad6fa97bde'/>
<id>urn:sha1:f8d99bb9e4a7f6229c19c4fbd951ccad6fa97bde</id>
<content type='text'>
* lang/python/src/core.py (Context, Data): Don't call __del__
from __exit__ method, as the object may be still in use.
* lang/python/tests/t-idiomatic.py: Fix the test.

--

GnuPG-bug-id: 6060
Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
<entry>
<title>python: Don't access gpgme with wrapped=None.</title>
<updated>2022-08-05T05:57:32Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2022-08-05T05:57:32Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=180899c7c313335128606bfff738da00dce4f5c9'/>
<id>urn:sha1:180899c7c313335128606bfff738da00dce4f5c9</id>
<content type='text'>
* lang/python/src/core.py (GpgmeWrapper, Context): Check self.wrapped
is valid.

--

GnuPG-bug-id: 6060
Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
<entry>
<title>python: Reset passphrase callback correctly.</title>
<updated>2022-08-05T02:02:44Z</updated>
<author>
<name>Jasper Spaans</name>
<email>jasper@startmail.com</email>
</author>
<published>2022-08-05T02:02:44Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=b2f224a471fecce566443bf0f0e554de6f567f4e'/>
<id>urn:sha1:b2f224a471fecce566443bf0f0e554de6f567f4e</id>
<content type='text'>
* lang/python/src/core.py (Context(GpgmeWrapper)): Reset passphrase
callback correctly, for encrypt, decrypt, create_key, and
create_subkey methods.

--

Signed-off-by: Jasper Spaans &lt;jasper@startmail.com&gt;
</content>
</entry>
<entry>
<title>python: Allow returning signatures made by unknown keys in `decrypt`</title>
<updated>2021-06-24T16:09:55Z</updated>
<author>
<name>Jasper Spaans</name>
<email>jasper@startmail.com</email>
</author>
<published>2021-02-09T10:29:07Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=14b148b7d34038fac863ab882de29c6d35d425f1'/>
<id>urn:sha1:14b148b7d34038fac863ab882de29c6d35d425f1</id>
<content type='text'>
--
This functionality got dropped somewhere after 1.12, as part of the
cleanup of the `Context.decrypt` call signature. Reintroduce it again,
now using an explicit keyword argument `filter_signatures` (which
defaults to hiding signatures by unknown keys).

GnuPG-bug-id: 5292
</content>
</entry>
<entry>
<title>python: Fix key_export*.</title>
<updated>2020-12-03T02:35:24Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2020-12-03T02:35:24Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=7a4fe82a017b751ad756c93d2b9e31d7be045275'/>
<id>urn:sha1:7a4fe82a017b751ad756c93d2b9e31d7be045275</id>
<content type='text'>
* lang/python/src/core.py (key_export): Just raise an error.
(key_export_minimal, key_export_secret): Ditto.

--

GnuPG-bug-id: 5149
Fixes-commit: 7faef33d13fa8efce152ca7aa6e9d39030c1cf08
Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
<entry>
<title>python: Handle the when case __doc__ is None.</title>
<updated>2020-10-27T23:49:33Z</updated>
<author>
<name>NIIBE Yutaka</name>
<email>gniibe@fsij.org</email>
</author>
<published>2020-10-27T23:49:33Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=089164a0c0d6024cbb133327d47a28ca3716cd56'/>
<id>urn:sha1:089164a0c0d6024cbb133327d47a28ca3716cd56</id>
<content type='text'>
* lang/python/src/core.py (GpgmeWrapper): Check if None.

--

GnuPG-bug-id: 5075
Signed-off-by: NIIBE Yutaka &lt;gniibe@fsij.org&gt;
</content>
</entry>
<entry>
<title>Python, doc: Minor style improvement</title>
<updated>2019-05-06T06:36:26Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@gnupg.org</email>
</author>
<published>2019-05-06T06:36:26Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=63055f13407760c877e5a3a94e564dfb3077dd47'/>
<id>urn:sha1:63055f13407760c877e5a3a94e564dfb3077dd47</id>
<content type='text'>
* lang/python/src/core.py (Context): Retab and shorten
max line length.
</content>
</entry>
<entry>
<title>python: stop raising BadSignatures from decrypt(verify=True)</title>
<updated>2019-05-03T03:28:11Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2019-05-03T03:28:11Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=4100794e305ba22241ea5a4f7b42bb5189fbd948'/>
<id>urn:sha1:4100794e305ba22241ea5a4f7b42bb5189fbd948</id>
<content type='text'>
* src/core.py (decrypt): filter out signatures with errors from the
returned verify_result, but avoid raising BadSignatures
* tests/t-decrypt-verify.py: ensure that only a single signature is
returned when evaluating cipher-3.asc, since the other signature is
unknown.

--

This change preserves the invariant that decrypt() only ever returns
valid signatures in the verify_result, but it avoids unnecessary
errors in the face of the presence of an additional bad signature.

GnuPG-bug-id: 4276
Signed-off-by: Daniel Kahn Gillmor &lt;dkg@fifthhorseman.net&gt;
</content>
</entry>
<entry>
<title>python: overhaul logic of Context.decrypt()</title>
<updated>2018-12-05T10:46:10Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2018-12-04T17:44:35Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=65c28da4e49a8778607fdcf6f51a840166616d9f'/>
<id>urn:sha1:65c28da4e49a8778607fdcf6f51a840166616d9f</id>
<content type='text'>
* lang/python/src/core.py (Context.decrypt): simplify and clarify the
logic behind handling verify=False.
* lang/python/tests/t-decrypt.py: ensure that we test verify=False

--

The function-internal variables were pretty unclear to the reader, and
the logic caused pretty nasty breakage when verify=False.

GnuPG-Bug-Id: 4271
Signed-off-by: Daniel Kahn Gillmor &lt;dkg@fifthhorseman.net&gt;
</content>
</entry>
</feed>
