Fix #3852: Error when OpenSSL extension is not installed

This commit is contained in:
Lucas Bartholemy 2020-02-08 19:57:36 +01:00
parent 74ecf7cf1a
commit 840cd84c58
3 changed files with 24 additions and 1 deletions

View File

@ -16,7 +16,7 @@ namespace humhub\components\mail;
*/
class Message extends \yii\swiftmailer\Message
{
public function setSmimeSigner($signingCertificatePath, $signingPrivateKeyPath, $signingOptions = PKCS7_DETACHED, $extraCerts = null)
public function setSmimeSigner($signingCertificatePath, $signingPrivateKeyPath, $signingOptions = 64, $extraCerts = null)
{
$signer = \Swift_Signers_SMimeSigner::newInstance();

View File

@ -1,6 +1,12 @@
HumHub Change Log
=================
1.4.1 (Unreleased)
------------------
- Fix #3852: Error when OpenSSL extension is not installed
1.4.0 (February 4, 2020)
------------------------

View File

@ -269,6 +269,22 @@ class SelfTest
];
}
// Checks OpenSSL Extension
$title = 'PHP - OpenSSL Extension';
if (function_exists('openssl_encrypt')) {
$checks[] = [
'title' => Yii::t('base', $title),
'state' => 'OK'
];
} else {
$checks[] = [
'title' => Yii::t('base', $title),
'state' => 'WARNING',
'hint' => 'Optional - Install OpenSSL Extension for e-mail S/MIME support.'
];
}
// Checks LDAP Extension
$title = 'LDAP Support';
@ -285,6 +301,7 @@ class SelfTest
];
}
// Checks APC(u) Extension
$title = 'PHP - APC(u) Support';