Skip Menu |

This queue is for tickets about the Net-DNS-SEC CPAN distribution.

Report information
The Basics
Id: 101184
Status: resolved
Priority: 0/
Queue: Net-DNS-SEC

People
Owner: Nobody in particular
Requestors: FANY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: make siginception and sigexpiration available as time() values
For monitoring purposes, I need to calculate how long certain RRSIG RRs will stay valid. After finding out that Net::DNS::RR::RRSIG internally stores the dates for siginception and sigexpiration as time() values, anyway, I currently use $rr->{siginception} and $rr->{sigexpiration} to access them and compare them with my desired $min_validity. It would be great, however, if there also were official methods to access these timestamps as such or alternatively methods to get them in some other convenient format, e.g. as DateTime objects. Another idea would be to make something like sigval (as supported by the ->create method) also available as method. I can try to submit a patch for that if you like; if so, please let me know about your preferred interface. Cheers, fany
Thanks Fany, On trunk (and in the 0.21_01 developers release) the RRSIG::sigexpiration and RRSIG::siginception now utilize Scalar::Util's dualvars to return the "time" value in numeric context and the the old string var in string context. Regards, -- Willem On Mon 29 Dec 2014 02:55:55, FANY wrote: Show quoted text
> For monitoring purposes, I need to calculate how long certain RRSIG > RRs will stay valid. > After finding out that Net::DNS::RR::RRSIG internally stores the dates > for siginception and sigexpiration as time() values, anyway, I > currently use $rr->{siginception} and $rr->{sigexpiration} to access > them and compare them with my desired $min_validity. > > It would be great, however, if there also were official methods to > access these timestamps as such or alternatively methods to get them > in some other convenient format, e.g. as DateTime objects. > > Another idea would be to make something like sigval (as supported by > the ->create method) also available as method. > > I can try to submit a patch for that if you like; if so, please let me > know about your preferred interface. > > Cheers, > fany