comparison mod_checkcerts/mod_checkcerts.lua @ 1672:d9fcf9d8e787

mod_checkcerts: Fix for removal of globals in LuaSec
author Kim Alvefur <zash@zash.se>
date Sun, 12 Apr 2015 18:19:41 +0200
parents cbbeac61f1ab
children 18123e0f5d58
comparison
equal deleted inserted replaced
1671:c813b69ae279 1672:d9fcf9d8e787
1 local ssl = require"ssl"; 1 local ssl = require"ssl";
2 local datetime_parse = require"util.datetime".parse; 2 local datetime_parse = require"util.datetime".parse;
3 local load_cert = ssl.x509 and ssl.x509.load; 3 local load_cert = ssl.loadcertificate;
4 local st = require"util.stanza" 4 local st = require"util.stanza"
5 5
6 -- These are in days. 6 -- These are in days.
7 local nag_time = module:get_option_number("checkcerts_notify", 7) * 86400; 7 local nag_time = module:get_option_number("checkcerts_notify", 7) * 86400;
8 8