Skip to content

Commit

Permalink
Pass the openssl path too.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Apr 27, 2017
1 parent 76c0d9d commit fa2dca3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions imp/lib/Smime.php
Expand Up @@ -409,6 +409,8 @@ public function deletePublicKey($email)
*/
protected function _signParameters()
{
global $conf;

$pubkey = $this->getPersonalPublicKey(true);
$additional = array();
if ($pubkey) {
Expand All @@ -422,13 +424,19 @@ protected function _signParameters()
if ($secondary) {
$additional[] = $this->getAdditionalCert();
}

$sslpath = empty($conf['openssl']['path'])
? null
: $conf['openssl']['path'];

return array(
'type' => 'signature',
'pubkey' => $pubkey,
'privkey' => $this->getPersonalPrivateKey($secondary),
'passphrase' => $this->getPassphrase($secondary),
'sigtype' => 'detach',
'certs' => implode("\n", $additional),
'sslpath' => $sslpath
);
}

Expand Down

0 comments on commit fa2dca3

Please sign in to comment.