Set serial number to the given \fInumber\fR, or when preceded by a sign,
offset the exisiting number with it. When giving the literal strings
\fIYYYYMMDDxx\fR or \fIunixtime\fR, the serial number is tried to be reset
-in date or in unixtime format respectively. Though is the updated serial
+in datecounter or in unixtime format respectively. Though is the updated serial
number is smaller than the original one, the original one is simply
increased by one.
" unixtime ]\n"
"\t\tSet serial number to <number> or,"
" when preceded by a sign,\n"
- "\t\toffset the exisiting number with "
+ "\t\toffset the existing number with "
"<number>. With YYYYMMDDxx\n"
- "\t\tthe serial is formatted as a date"
+ "\t\tthe serial is formatted as a datecounter"
", and with unixtime as the\n"
"\t\tnumber of seconds since 1-1-1970."
" However, on serial number"
ldns_soa_serial_identity;
} else if (!strcasecmp(optarg, "YYYYMMDDxx")){
soa_serial_increment_func =
- ldns_soa_serial_YYYYMMDDxx;
+ ldns_soa_serial_datecounter;
} else if (!strcasecmp(optarg, "unixtime")){
soa_serial_increment_func =
ldns_soa_serial_unixtime;
ldns_dnssec_trust_tree *ldns_dnssec_derive_trust_tree(
ldns_dnssec_data_chain *data_chain,
ldns_rr *rr);
+
/**
* Generates a dnssec_trust_ttree for the given rr from the
* given data_chain
ldns_dnssec_data_chain *data_chain,
ldns_rr *rr, time_t check_time);
-
/**
* Sub function for derive_trust_tree that is used for a 'normal' rrset
*
/**
* Function to be used with ldns_rr_soa_increment_func or
* ldns_rr_soa_increment_func_int to set the soa serial to the current date
- * succeeded by a two digit iteration.
+ * succeeded by a two digit iteration (datecounter).
* When data is given (i.e. the function is called via
* ldns_rr_soa_increment_func_int), it is used as the current time.
* When the resulting serial number is smaller than the current serial number,
* \param[in] s the current serial number.
* \param[in] data the time in seconds since 1-1-1970 00:00
*/
-uint32_t ldns_soa_serial_YYYYMMDDxx(uint32_t s, void *data);
+uint32_t ldns_soa_serial_datecounter(uint32_t s, void *data);
/**
* Increment the serial number of the given SOA by one.
/**
* Increment the serial number of the given SOA with the given function.
* Included functions to be used here are: ldns_rr_soa_increment,
- * ldns_soa_serial_unixtime and ldns_soa_serial_YYYYMMDDxx.
+ * ldns_soa_serial_unixtime and ldns_soa_serial_datecounter.
* \param[in] soa The soa rr to be incremented
* \param[in] f the function to use to increment the soa rr.
*/
* using data as an argument for the function.
* Included functions to be used here are: ldns_soa_serial_identity,
* ldns_rr_soa_increment_by, ldns_soa_serial_unixtime and
- * ldns_soa_serial_YYYYMMDDxx.
+ * ldns_soa_serial_datecounter.
* \param[in] soa The soa rr to be incremented
* \param[in] f the function to use to increment the soa rr.
* \param[in] data this argument will be passed to f as the second argument
ldns_sign_public_evp
ldns_sign_public_rsamd5
ldns_sign_public_rsasha1
-ldns_soa_serial_YYYYMMDDxx
+ldns_soa_serial_datecounter
ldns_soa_serial_identity
ldns_soa_serial_increment
ldns_soa_serial_increment_by
return s + (intptr_t) data;
}
-uint32_t ldns_soa_serial_YYYYMMDDxx(uint32_t s, void *data)
+uint32_t ldns_soa_serial_datecounter(uint32_t s, void *data)
{
struct tm tm;
char s_str[11];