You are here

function aes_requirements in AES encryption 6

Same name and namespace in other branches
  1. 8.2 aes.install \aes_requirements()
  2. 7 aes.install \aes_requirements()

File

./aes.install, line 3

Code

function aes_requirements($phase) {
  $aes_implementations = aes_get_available_aes_implementations();
  if ($aes_implementations['mcrypt'] === false && $aes_implementations['phpseclib'] === false) {
    $requirement_severity = REQUIREMENT_ERROR;
  }
  else {
    $requirement_severity = REQUIREMENT_OK;
  }
  $requirements = array(
    array(
      'title' => 'AES encryption implementation',
      'description' => 'The AES encryption module requires at least one of two things to function: Either the PHP Mcrypt extension has to be installed on the web server. Or the PHP Secure Communications Library (phpseclib) needs to be installed in the AES directory. Check the README.txt for more information.',
      'severity' => $requirement_severity,
    ),
  );
  return $requirements;
}