Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GPGME Python bindings for GPG operations #266

Merged
merged 11 commits into from
Mar 13, 2017
Merged

Use GPGME Python bindings for GPG operations #266

merged 11 commits into from
Mar 13, 2017

Conversation

dephekt
Copy link
Contributor

@dephekt dephekt commented Mar 5, 2017

This PR modifies functions performing GnuPG (GPG) operations to utilize the GPGME Python bindings, rather than calling a user's GPG executable directly.

The new functions behave similarly to the old ones right now. However, more robust exception handling is now possible as more detailed and precise errors are returned. The GUI warning of a verify failure was made more detailed and specific to the nature of the failure.

Right now the verify() function performs the same action whether an error is raised due to a missing public key or a bad signature, but the conditions are now differentiated in the code, so it is a trivial matter to take different actions for either error now.

Additional feedback is needed on if we should attempt to find and import a missing signing key when encountered. It seemed obvious to do so at first, but for security reasons @micahflee may intend it to stay a manual process, so the behaviour was intentionally left the same for now, with the error details being passed on to the GUI pop-up.

See #262

@dephekt dephekt changed the title Use gpgme for crypto operations Mar 5, 2017
@dephekt dephekt changed the title Use gpgme library for crypto operations Mar 7, 2017
@micahflee
Copy link
Collaborator

This is great, thanks so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants