You are here

function commerce_ups_encryption_available in Commerce UPS 7.2

Same name and namespace in other branches
  1. 7 commerce_ups.module \commerce_ups_encryption_available()

Check whether encryption is available.

2 calls to commerce_ups_encryption_available()
commerce_ups_decrypt_vars in ./commerce_ups.module
Decrypt all api variables in one function call.
commerce_ups_settings_form in includes/commerce_ups.admin.inc
Implements hook_settings_form().

File

./commerce_ups.module, line 303
Handles main functionality for Commerce UPS module.

Code

function commerce_ups_encryption_available($options = array()) {

  // The old (insecure) AES module exists.
  if (module_exists('aes')) {
    return TRUE;
  }
  elseif (module_exists('real_aes')) {
    return TRUE;
  }
  return FALSE;
}