[patch] Add support for symmetric encryption

Bug #295918 reported by Miloslav Trmac
6
Affects Status Importance Assigned to Milestone
PyGPGME
Fix Released
Undecided
James Henstridge

Bug Description

gpgme_op_encrypt supports symmetric encryption by passing NULL as the recipient
list. ctx.encrypt() in pygpgme cannot currently perform that operation.

The attached patch fixes that.

Revision history for this message
Miloslav Trmac (mitr-redhat) wrote :
Revision history for this message
Miloslav Trmac (mitr-redhat) wrote :

ping?

Revision history for this message
Toshio Kuratomi (toshio) wrote :

Hey James, would it be possible to get a yay or nay on this and on https://bugs.launchpad.net/pygpgme/+bug/295920 ?

We're deploying some software that makes use of this but we're not sure if that's a good idea given that you haven't indicated if these will be accepted upstream or not.

Thanks!

Revision history for this message
James Henstridge (jamesh) wrote :

Fixed in r68. I've also added a test for the functionality to ensure that it works correctly.

Changed in pygpgme:
assignee: nobody → James Henstridge (jamesh)
milestone: none → 0.2
status: New → Fix Committed
Changed in pygpgme:
status: Fix Committed → Fix Released
Revision history for this message
Mark Hamilton Dewey (mark-h-dewey) wrote :

Could you give an example of how to use this? Say, I want to do the eqvuivalent of gpg -c myFile. How do I do that?

Revision history for this message
Miloslav Trmac (mitr-redhat) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.