Module | GPGME::Engine |
In: |
lib/gpgme/engine.rb
|
Convenience methods to check different aspects of the gpg system installation.
Verify that the engine implementing the protocol proto is installed in the system. Can be one of PROTOCOL_OpenPGP or PROTOCOL_CMS.
@return [Boolean] true if the engine is installed.
@example
GPGME::Engine.check_version(GPGME::PROTOCOL_OpenPGP) # => true
Sets the home dir for the configuration options. This way one could, for example, load the keys from a customized keychain.
@example
GPGME::Engine.home_dir = '/tmp'
Return an array of {GPGME::EngineInfo} structures of enabled engines.
@example
GPGME::Engine.info.first # => #<GPGME::EngineInfo:0x00000100d4fbd8 @file_name="/usr/local/bin/gpg", @protocol=0, @req_version="1.3.0", @version="1.4.11">
Change the default configuration of the crypto engine implementing protocol proto.
@param proto
Can be one of +PROTOCOL_OpenPGP+ or +PROTOCOL_CMS+.
@param file_name
The file name of the executable program implementing the protocol.
@param home_dir
The directory name of the configuration directory.
@example
GPGME::Engine.set