Comparison

plugins/mod_saslauth.lua @ 13286:8b3da19b0aea

mod_saslauth: Actively close cert file after reading Explicit > implicit
author Matthew Wild <mwild1@gmail.com>
date Tue, 24 Oct 2023 09:24:01 +0100
parent 13285:63419a628c69
child 13288:9a371b046e58
comparison
equal deleted inserted replaced
13285:63419a628c69 13286:8b3da19b0aea
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("*a"); 277 local certdata = f:read("*a");
278 f:close();
278 cert = ssl.loadcertificate(certdata); 279 cert = ssl.loadcertificate(certdata);
279 end 280 end
280 281
281 -- Hash function selection, see RFC 5929 §4.1 282 -- Hash function selection, see RFC 5929 §4.1
282 local hash = hashes.sha256; 283 local hash = hashes.sha256;