Fix error in validate_signature_fields which prevented signature expiration from being properly evaluated (LP: #2068937)

This commit is contained in:
Scott Kitterman
2024-06-23 16:34:37 -04:00
parent ab569cc77c
commit ed5931c0c9
2 changed files with 8 additions and 4 deletions
+4
View File
@@ -1,3 +1,7 @@
UNRELEASED Version 1.1.7
- Fix error in validate_signature_fields which prevented signature
expiration from being properly evaluated (LP: #2068937)
2024-04-14 Version 1.1.6
- Use raw byte string for regex; fixes SyntaxWarning in Python 3.12 due to
invalid escape sequence (LP: #2049518) - Thanks to Simon Chopin for the
+4 -4
View File
@@ -345,10 +345,10 @@ def validate_signature_fields(sig, mandatory_fields=[b'v', b'a', b'b', b'bh', b'
if x_sign < now - slop:
raise ValidationError(
"x= value is past (%s)" % sig[b'x'])
if x_sign < t_sign:
raise ValidationError(
"x= value is less than t= value (x=%s t=%s)" %
(sig[b'x'], sig[b't']))
if x_sign < t_sign:
raise ValidationError(
"x= value is less than t= value (x=%s t=%s)" %
(sig[b'x'], sig[b't']))
def rfc822_parse(message):