Comparison

util/dependencies.lua @ 7359:a5a080c12c96

Update every link to the documentation to use HTTPS
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 16 Apr 2016 21:08:05 +0100
parent 7264:6d97895c2bd7
child 7686:8d6f367bed8c
comparison
equal deleted inserted replaced
7358:d0390bc9c5d1 7359:a5a080c12c96
26 for platform, source in pairs(sources) do 26 for platform, source in pairs(sources) do
27 print("", platform..":"..(" "):rep(4+longest_platform-#platform)..source); 27 print("", platform..":"..(" "):rep(4+longest_platform-#platform)..source);
28 end 28 end
29 print(""); 29 print("");
30 print(msg or (name.." is required for Prosody to run, so we will now exit.")); 30 print(msg or (name.." is required for Prosody to run, so we will now exit."));
31 print("More help can be found on our website, at http://prosody.im/doc/depends"); 31 print("More help can be found on our website, at https://prosody.im/doc/depends");
32 print("**************************"); 32 print("**************************");
33 print(""); 33 print("");
34 end 34 end
35 35
36 -- COMPAT w/pre-0.8 Debian: The Debian config file used to use 36 -- COMPAT w/pre-0.8 Debian: The Debian config file used to use
38 -- is to log an error for people who still use it, so they can 38 -- is to log an error for people who still use it, so they can
39 -- update their configs. 39 -- update their configs.
40 package.preload["util.ztact"] = function () 40 package.preload["util.ztact"] = function ()
41 if not package.loaded["core.loggingmanager"] then 41 if not package.loaded["core.loggingmanager"] then
42 error("util.ztact has been removed from Prosody and you need to fix your config " 42 error("util.ztact has been removed from Prosody and you need to fix your config "
43 .."file. More information can be found at http://prosody.im/doc/packagers#ztact", 0); 43 .."file. More information can be found at https://prosody.im/doc/packagers#ztact", 0);
44 else 44 else
45 error("module 'util.ztact' has been deprecated in Prosody 0.8."); 45 error("module 'util.ztact' has been deprecated in Prosody 0.8.");
46 end 46 end
47 end; 47 end;
48 48
91 91
92 local ssl = softreq "ssl" 92 local ssl = softreq "ssl"
93 93
94 if not ssl then 94 if not ssl then
95 missingdep("LuaSec", { 95 missingdep("LuaSec", {
96 ["Debian/Ubuntu"] = "http://prosody.im/download/start#debian_and_ubuntu"; 96 ["Debian/Ubuntu"] = "https://prosody.im/download/start#debian_and_ubuntu";
97 ["luarocks"] = "luarocks install luasec"; 97 ["luarocks"] = "luarocks install luasec";
98 ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/"; 98 ["Source"] = "http://www.inf.puc-rio.br/~brunoos/luasec/";
99 }, "SSL/TLS support will not be available"); 99 }, "SSL/TLS support will not be available");
100 end 100 end
101 101
141 end 141 end
142 local ssl = softreq"ssl"; 142 local ssl = softreq"ssl";
143 if ssl then 143 if ssl then
144 local major, minor, veryminor, patched = ssl._VERSION:match("(%d+)%.(%d+)%.?(%d*)(M?)"); 144 local major, minor, veryminor, patched = ssl._VERSION:match("(%d+)%.(%d+)%.?(%d*)(M?)");
145 if not major or ((tonumber(major) == 0 and (tonumber(minor) or 0) <= 3 and (tonumber(veryminor) or 0) <= 2) and patched ~= "M") then 145 if not major or ((tonumber(major) == 0 and (tonumber(minor) or 0) <= 3 and (tonumber(veryminor) or 0) <= 2) and patched ~= "M") then
146 prosody.log("error", "This version of LuaSec contains a known bug that causes disconnects, see http://prosody.im/doc/depends"); 146 prosody.log("error", "This version of LuaSec contains a known bug that causes disconnects, see https://prosody.im/doc/depends");
147 end 147 end
148 end 148 end
149 local lxp = softreq"lxp"; 149 local lxp = softreq"lxp";
150 if lxp then 150 if lxp then
151 if not pcall(lxp.new, { StartDoctypeDecl = false }) then 151 if not pcall(lxp.new, { StartDoctypeDecl = false }) then
152 prosody.log("error", "The version of LuaExpat on your system leaves Prosody " 152 prosody.log("error", "The version of LuaExpat on your system leaves Prosody "
153 .."vulnerable to denial-of-service attacks. You should upgrade to " 153 .."vulnerable to denial-of-service attacks. You should upgrade to "
154 .."LuaExpat 1.3.0 or higher as soon as possible. See " 154 .."LuaExpat 1.3.0 or higher as soon as possible. See "
155 .."http://prosody.im/doc/depends#luaexpat for more information."); 155 .."https://prosody.im/doc/depends#luaexpat for more information.");
156 end 156 end
157 if not lxp.new({}).getcurrentbytecount then 157 if not lxp.new({}).getcurrentbytecount then
158 prosody.log("error", "The version of LuaExpat on your system does not support " 158 prosody.log("error", "The version of LuaExpat on your system does not support "
159 .."stanza size limits, which may leave servers on untrusted " 159 .."stanza size limits, which may leave servers on untrusted "
160 .."networks (e.g. the internet) vulnerable to denial-of-service " 160 .."networks (e.g. the internet) vulnerable to denial-of-service "
161 .."attacks. You should upgrade to LuaExpat 1.3.0 or higher as " 161 .."attacks. You should upgrade to LuaExpat 1.3.0 or higher as "
162 .."soon as possible. See " 162 .."soon as possible. See "
163 .."http://prosody.im/doc/depends#luaexpat for more information."); 163 .."https://prosody.im/doc/depends#luaexpat for more information.");
164 end 164 end
165 end 165 end
166 end 166 end
167 167
168 return { 168 return {