Skip to content

Commit

Permalink
gpgme_ctx_set_engine_info added as a new interface
Browse files Browse the repository at this point in the history
  • Loading branch information
kei committed Nov 24, 2017
1 parent f70d026 commit ef9f1d7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/gpgme/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ def set_info(proto, file_name, home_dir)
raise exc if exc
end

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

##
# Sets the home dir for the configuration options. This way one could,
# for example, load the keys from a customized keychain.
Expand Down

0 comments on commit ef9f1d7

Please sign in to comment.