mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
* Mail: fix S/MIME encrypted only composed mail fails
This commit is contained in:
parent
1ef14cc4c8
commit
229752b4dd
@ -3821,11 +3821,12 @@ class mail_compose
|
||||
|
||||
try
|
||||
{
|
||||
$sender_cert = $AB->get_smime_keys($sender);
|
||||
if (!$sender_cert) throw new Exception("S/MIME Encryption failed because no certificate has been found for sender address: " . $sender);
|
||||
$params['senderPubKey'] = $sender_cert[$sender];
|
||||
|
||||
if (isset($sender) && ($type == Mail\Smime::TYPE_SIGN || $type == Mail\Smime::TYPE_SIGN_ENCRYPT))
|
||||
{
|
||||
$sender_cert = $AB->get_smime_keys($sender);
|
||||
if (!$sender_cert) throw new Exception("S/MIME Encryption failed because no certificate has been found for sender address: " . $sender);
|
||||
$params['senderPubKey'] = $sender_cert[$sender];
|
||||
$acc_smime = Mail\Smime::get_acc_smime($this->mail_bo->profileID, $params['passphrase']);
|
||||
$params['senderPrivKey'] = $acc_smime['pkey'];
|
||||
$params['extracerts'] = $acc_smime['extracerts'];
|
||||
|
Loading…
Reference in New Issue
Block a user