function hosting_ssl_get_key in Hosting 6.2
Same name and namespace in other branches
- 7.4 web_server/ssl/hosting_ssl.nodeapi.inc \hosting_ssl_get_key()
- 7.3 web_server/ssl/hosting_ssl.nodeapi.inc \hosting_ssl_get_key()
4 calls to hosting_ssl_get_key()
- hosting_nginx_ssl_hosting_site_context_options in web_server/
nginx/ ssl/ hosting_nginx_ssl.drush.inc - hosting_ssl_hosting_site_context_options in web_server/
ssl/ hosting_ssl.drush.inc - hosting_ssl_nodeapi_site_view in web_server/
ssl/ hosting_ssl.nodeapi.inc - hosting_ssl_output_key in web_server/
ssl/ hosting_ssl.nodeapi.inc
File
- web_server/
ssl/ hosting_ssl.nodeapi.inc, line 111
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];
}