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

gpgme_ctx_set_engine_info added as a new interface #105

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lib/gpgme/ctx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,15 @@ def add_signer(*keys)
end
end

#
# this method is supposed to not harming the global GPG status
#
def set_info_safely(proto, file_name, home_dir)
err = GPGME::gpgme_ctx_set_engine_info(proto, self, file_name, home_dir)
exc = GPGME::error_to_exception(err)
raise exc if exc
end

# Create a signature for the text.
# +plain+ is a data object which contains the text.
# +sig+ is a data object where the generated signature is stored.
Expand Down