Comparison

plugins/mod_saslauth.lua @ 13285:63419a628c69

mod_saslauth: Fix read format string (thanks tmolitor)
author Matthew Wild <mwild1@gmail.com>
date Tue, 24 Oct 2023 09:23:31 +0100
parent 13281:288ddca37639
child 13286:8b3da19b0aea
comparison
equal deleted inserted replaced
13284:ffd3dadf6247 13285:63419a628c69
272 -- disk since we started. 272 -- disk since we started.
273 local certfile = self.userdata["tls-server-end-point-cert"]; 273 local certfile = self.userdata["tls-server-end-point-cert"];
274 if not certfile then return end 274 if not certfile then return end
275 local f = io.open(certfile); 275 local f = io.open(certfile);
276 if not f then return end 276 if not f then return end
277 local certdata = f:read("*"); 277 local certdata = f:read("*a");
278 cert = ssl.loadcertificate(certdata); 278 cert = ssl.loadcertificate(certdata);
279 end 279 end
280 280
281 -- Hash function selection, see RFC 5929 §4.1 281 -- Hash function selection, see RFC 5929 §4.1
282 local hash = hashes.sha256; 282 local hash = hashes.sha256;