Commit 5a9d1f49 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Don't check epoch boundary in MetadataAttribute.setExpiryDate

parent 850fa020
......@@ -190,9 +190,6 @@ func (attr *MetadataAttribute) setValidityDuration(weeks int) {
func (attr *MetadataAttribute) setExpiryDate(timestamp *Timestamp) error {
expiry := time.Time(*timestamp).Unix()
if expiry%ExpiryFactor != 0 {
return errors.New("Expiry date does not match an epoch boundary")
}
signing := attr.SigningDate().Unix()
attr.setValidityDuration(int((expiry - signing) / ExpiryFactor))
return nil
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment