diff options
Diffstat (limited to 'modules/detect_time_skew')
-rw-r--r-- | modules/detect_time_skew/detect_time_skew.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/detect_time_skew/detect_time_skew.lua b/modules/detect_time_skew/detect_time_skew.lua index 2dd900af..90ff5642 100644 --- a/modules/detect_time_skew/detect_time_skew.lua +++ b/modules/detect_time_skew/detect_time_skew.lua @@ -1,6 +1,5 @@ -- Module interface local ffi = require('ffi') -local knot = ffi.load(libknot_SONAME) local mod = {} local event_id = nil @@ -26,8 +25,8 @@ local function check_time_callback(pkt, req) if rr.type == kres.type.RRSIG then for k = 0, rr.rrs.rr_count - 1 do seen_rrsigs = seen_rrsigs + 1 - inception = knot.knot_rrsig_sig_inception(rr.rrs, k) - expiration = knot.knot_rrsig_sig_expiration(rr.rrs, k) + inception = ffi.C.kr_rrsig_sig_inception(rr.rrs, k) + expiration = ffi.C.kr_rrsig_sig_expiration(rr.rrs, k) if now > expiration then -- possitive value = in the future time_diff = now - expiration |