mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix #3852: Error when OpenSSL extension is not installed
This commit is contained in:
parent
74ecf7cf1a
commit
840cd84c58
@ -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();
|
||||
|
||||
|
@ -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)
|
||||
------------------------
|
||||
|
@ -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';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user