gpgme.Context().export() does not allow arbitrary modes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyGPGME |
New
|
Undecided
|
Unassigned |
Bug Description
I need to export secret keys from my keyring.
GPGME provides the function `gpgme_op_export()` which allows the user to provide an export mode (see https:/
This is particularly useful to export secret keys (e.g. using mode `GPGME_
Currently, `pygpgme` does not expose this flag in the `Context.export()` function.
Snippet from `pygpgme` implementing the export function (from `src/pygpgme-
1202 Py_BEGIN_
1203 err = gpgme_op_
1204 Py_END_
Here we see that the mode flags is hardcoded to 0.