ueno / ruby-gpgme

a ruby interface to GnuPG Made Easy (GPGME).
GNU Lesser General Public License v2.1
231 stars 99 forks source link

Set engine info on a per-context basis #77

Open schneiderderek opened 8 years ago

schneiderderek commented 8 years ago

I've found this gem to be very useful, but i'm looking to set engine info on a per-context basis.

Is there any way to set engine info on a per-context basis? I've looked through the source extensively, but I couldn't find anything. GPGME::Engine.set_info sets the engine information, but doesn't scope to a specific context.

From doing some research it looks like there is a function in the gpgme C library called gpgme_ctx_set_engine_info. But, it doesn't look like it's exposed in ruby-gpgme.

Are there any plans to add support for this?

Thanks!

ueno commented 8 years ago

it seems like an oversight, thanks for the reporting that. would you mind proposing a patch?