Add a 2 day offset for signature creation time checking

This commit is contained in:
Kay Lukas 2018-07-31 01:00:45 +02:00
parent dcd96f512c
commit 914fc679a6
4 changed files with 65 additions and 78 deletions

View file

@ -30,3 +30,7 @@ func trimNewlines(input string) string {
var re = regexp.MustCompile(`(?m)[ \t]*$`)
return re.ReplaceAllString(input, "")
}
// Amount of seconds that a signature may be created after the verify time
// Consistent with the 2 day slack allowed in the ProtonMail Email Parser
var creationTimeOffset = int64(60 * 60 * 24 * 2)