mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
Smime W.I.P:
- Fix couple of IDE warnings
This commit is contained in:
parent
eb6fc7a366
commit
afe1459387
@ -11,10 +11,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
namespace EGroupware\Api\Mail;
|
namespace EGroupware\Api\Mail;
|
||||||
|
use Horde_Mime_Part;
|
||||||
use EGroupware\Api;
|
|
||||||
use Horde_Crypt_Smime;
|
use Horde_Crypt_Smime;
|
||||||
use Horde_Crypt;
|
|
||||||
/**
|
/**
|
||||||
* EMailAdmin generic base class for SMTP
|
* EMailAdmin generic base class for SMTP
|
||||||
*/
|
*/
|
||||||
@ -89,7 +87,7 @@ class Smime extends Horde_Crypt_Smime
|
|||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param Horde_Crypt_Smime $smime S/MIME object.
|
* @param Horde_Crypt_Smime $params S/MIME object.
|
||||||
*/
|
*/
|
||||||
public function __construct($params = array())
|
public function __construct($params = array())
|
||||||
{
|
{
|
||||||
@ -131,6 +129,7 @@ class Smime extends Horde_Crypt_Smime
|
|||||||
{
|
{
|
||||||
$this->checkForOpenSSL();
|
$this->checkForOpenSSL();
|
||||||
} catch (Exception $ex) {
|
} catch (Exception $ex) {
|
||||||
|
error_log(__METHOD__."() openssl extension is not enabled! $ex");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@ -180,7 +179,7 @@ class Smime extends Horde_Crypt_Smime
|
|||||||
*/
|
*/
|
||||||
public function extractSignedContents($data)
|
public function extractSignedContents($data)
|
||||||
{
|
{
|
||||||
return \Horde_Mime_Part::parseMessage(parent::extractSignedContents($data));
|
return Horde_Mime_Part::parseMessage(parent::extractSignedContents($data));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user