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