Permalink
Browse files

check openssl

check if openssl is installed by if php know openssl functions.
  • Loading branch information...
1 parent 68b3365 commit 1516f9af7d69670ac397f88b7455ee4f8d44b781 @pocketcrocodile committed Nov 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Network/Http/HttpResponse.php
@@ -427,7 +427,7 @@ public function offsetGet($offset) {
}
public function setContext($context){
- if (get_resource_type($context) === "OpenSSL X.509"){
+ if (get_resource_type($context) === "OpenSSL X.509" && function_exists(openssl_x509_export)){
if (!isset($context))
return false;
openssl_x509_export($context, &$certstring);

0 comments on commit 1516f9a

Please sign in to comment.