checkForOpenSsl() public method

Checks for the presence of the OpenSSL extension to PHP.
public checkForOpenSsl ( )
Exemplo n.º 1
0
 /**
  * Init the S/MIME Horde_Crypt object.
  */
 protected function _initSmime()
 {
     if (is_null($this->_impsmime) && IMP_Smime::enabled()) {
         try {
             $this->_impsmime = $GLOBALS['injector']->getInstance('IMP_Smime');
             $this->_impsmime->checkForOpenSsl();
         } catch (Horde_Exception $e) {
             $this->_impsmime = null;
         }
     }
 }