projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae038fe
)
Test for open_ssl in extensions.
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Fri, 29 Sep 2017 11:29:49 +0000
(13:29 +0200)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Fri, 29 Sep 2017 11:29:49 +0000
(13:29 +0200)
includes/packages.inc
patch
|
blob
|
history
diff --git
a/includes/packages.inc
b/includes/packages.inc
index 99b620d30eae15a87b8429adbdb47d52cb876f6e..2e1b92e3445d91c9ca3fa90dd8b4159736371a1b 100644
(file)
--- a/
includes/packages.inc
+++ b/
includes/packages.inc
@@
-299,6
+299,10
@@
function get_pkg_or_list($type = null, $pkgname = null, $filter=array(), $outkey
$sig = url_get_contents($repo.'/Release.sig');
$data = file_get_contents($loclist);
$cert = file_get_contents(PUBKEY_PATH.'/FA.pem');
+ if (!function_exists('openssl_verify')) {
+ display_error(_("OpenSSL have to be available on your server to use extension repository system."));
+ return null;
+ }
if (openssl_verify($data, $sig, $cert) <= 0) {
if ($refresh) {
if (!@unlink($loclist))