add function prototype for to be implemented functions

This commit is contained in:
Miek Gieben 2010-12-25 13:13:32 +01:00
parent d6efd37302
commit b634118257
1 changed files with 9 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import (
)
const (
// RFC1982 serial arithmetic
year68 = 2 << (32 - 1)
)
@ -21,7 +22,7 @@ func timeToDate(t uint32) string {
}
// Using RFC1982 calculate if a signature is valid
func validSignaturePeriod(start, end uint32) bool {
func ValidSignaturePeriod(start, end uint32) bool {
utc := time.UTC().Seconds() // maybe as parameter?? TODO MG
return int64(start) <= utc && utc <= int64(end)
}
@ -38,6 +39,13 @@ func KeyToDS(k *RR_DNSKEY, hash int) *RR_DS {
return nil
}
// Validate an rrset with the signature and key. Note the
// signature validate period is NOT checked. Used
// ValidSignaturePeriod for that
func Valid(rrset []RR, signature *RR_RRSIG, key *RR_DNSKEY) bool {
}
// Calculate the keytag of the DNSKEY
func KeyTag(k *RR_DNSKEY) int {
return 0