Enigma: Add possibility to configure gpg-agent binary location (enigma_pgp_agent)

pull/5374/merge
Aleksander Machniak 8 years ago
parent d5788494a8
commit dcf877c692

@ -23,6 +23,7 @@ CHANGELOG Roundcube Webmail
- Managesieve: Support 'duplicate' extension [RFC 7352]
- Managesieve: Unhide advanced rule controls if there are inputs with errors
- Managesieve: Display warning message when filter form contains errors
- Enigma: Add possibility to configure gpg-agent binary location (enigma_pgp_agent)
RELEASE 1.2.1
-------------

@ -20,6 +20,10 @@ $config['enigma_pgp_homedir'] = null;
// This is also a way to force gpg2 use if there are both 1.x and 2.x on the system.
$config['enigma_pgp_binary'] = '';
// Location of gpg-agent binary. By default it will be auto-detected.
// It's used with GnuPG 2.x.
$config['enigma_pgp_agent'] = '';
// Enables signatures verification feature.
$config['enigma_signatures'] = true;

@ -42,6 +42,7 @@ class enigma_driver_gnupg extends enigma_driver
$homedir = $this->rc->config->get('enigma_pgp_homedir', INSTALL_PATH . 'plugins/enigma/home');
$debug = $this->rc->config->get('enigma_debug');
$binary = $this->rc->config->get('enigma_pgp_binary');
$agent = $this->rc->config->get('enigma_pgp_agent');
if (!$homedir) {
return new enigma_error(enigma_error::INTERNAL,
@ -84,6 +85,9 @@ class enigma_driver_gnupg extends enigma_driver
if ($binary) {
$options['binary'] = $binary;
}
if ($agent) {
$options['agent'] = $agent;
}
// Create Crypt_GPG object
try {

Loading…
Cancel
Save