[Opendnssec-user] Opendnssec signer Y2K bug?

Rickard Bellgrim rickard at opendnssec.org
Fri Dec 23 10:56:05 UTC 2011


> OpenDNSSEC uses ldns to write the information to the signed zone file.
> This is why you got the weird time stamp in your zone file.

ldns handles times differently depending on the architecture, but
OpenDNSSEC only use time_t.

struct tm *
ldns_serial_arithmitics_gmtime_r(int32_t time, time_t now, struct tm *result)
{
#if SIZEOF_TIME_T <= 4
        int64_t secs_since_epoch = ldns_serial_arithmitics_time(time, now);
        return  ldns_gmtime64_r(secs_since_epoch, result);
#else
        time_t  secs_since_epoch = ldns_serial_arithmitics_time(time, now);
        return  gmtime_r(&secs_since_epoch, result);
#endif
}



More information about the Opendnssec-user mailing list