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

Fix passphrase callback #8

Merged
merged 4 commits into from Feb 11, 2019

Conversation

Projects
None yet
2 participants
@Daniel15
Copy link
Member

Daniel15 commented Feb 10, 2019

Fixes the passphrase callback functionality.

  • Added gpgme_set_pinentry_mode call, as this is required to use the passphrase callback in GnuPG 2.1+
  • Write a newline rather than null byte after writing the passphrase
  • Mark the callback as cdecl so it doesn't corrupt the stack after being called. Fixes #4

@wget wget merged commit 31a7350 into gpgme-sharp:master Feb 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment