bool isRRSIGNotExpired(const time_t now, const RRSIGRecordContent& sig)
{
- // Should use https://www.rfc-editor.org/rfc/rfc4034.txt section 3.1.5
- return sig.d_sigexpire >= now;
+ return rfc1982LessThan<uint32_t>(now, sig.d_sigexpire);
}
bool isRRSIGIncepted(const time_t now, const RRSIGRecordContent& sig)
{
- // Should use https://www.rfc-editor.org/rfc/rfc4034.txt section 3.1.5
- return sig.d_siginception - g_signatureInceptionSkew <= now;
+ return rfc1982LessThan<uint32_t>(sig.d_siginception - g_signatureInceptionSkew, now);
}
namespace {