You are here

function hosting_ssl_get_key in Hostmaster (Aegir) 6

3 calls to hosting_ssl_get_key()
hosting_ssl_hosting_site_context_options in modules/hosting/web_server/ssl/hosting_ssl.drush.inc
hosting_ssl_nodeapi_site_view in modules/hosting/web_server/ssl/hosting_ssl.nodeapi.inc
hosting_ssl_output_key in modules/hosting/web_server/ssl/hosting_ssl.nodeapi.inc

File

modules/hosting/web_server/ssl/hosting_ssl.nodeapi.inc, line 112

Code

function hosting_ssl_get_key($cid) {
  static $cache = array();
  if (!isset($cache[$cid])) {
    $cache[$cid] = db_result(db_query("SELECT ssl_key FROM {hosting_ssl_cert} WHERE cid=%d", $cid));
  }
  return $cache[$cid];
}