aboutsummaryrefslogtreecommitdiff
path: root/plugin/sign/signer.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/sign/signer.go')
-rw-r--r--plugin/sign/signer.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/plugin/sign/signer.go b/plugin/sign/signer.go
index 5753077c8..d1ea22356 100644
--- a/plugin/sign/signer.go
+++ b/plugin/sign/signer.go
@@ -22,7 +22,6 @@ type Signer struct {
origin string
dbfile string
directory string
- modTime time.Time
jitterIncep time.Duration
jitterExpir time.Duration
@@ -42,11 +41,6 @@ func (s *Signer) Sign(now time.Time) (*file.Zone, error) {
return nil, err
}
- // s.dbfile is a parseable zone file, track the mtime
- if fi, err := os.Stat(s.dbfile); err == nil {
- s.modTime = fi.ModTime()
- }
-
mttl := z.Apex.SOA.Minttl
ttl := z.Apex.SOA.Header().Ttl
inception, expiration := lifetime(now, s.jitterIncep, s.jitterExpir)
@@ -121,12 +115,6 @@ func (s *Signer) resign() error {
if err != nil && os.IsNotExist(err) {
return err
}
- // if modtime of the input zone file has changed, we will also resign.
- if fi, err := os.Stat(s.dbfile); err == nil {
- if !s.modTime.IsZero() && fi.ModTime() != s.modTime {
- return fmt.Errorf("zone's modification time %s; differs from last seen modification time: %s", fi.ModTime().Format(timeFmt), s.modTime.Format(timeFmt))
- }
- }
now := time.Now().UTC()
return resign(rd, now)