Fix error in validate_signature_fields which prevented signature expiration from being properly evaluated (LP: #2068937)
This commit is contained in:
@@ -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
|
2024-04-14 Version 1.1.6
|
||||||
- Use raw byte string for regex; fixes SyntaxWarning in Python 3.12 due to
|
- 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
|
invalid escape sequence (LP: #2049518) - Thanks to Simon Chopin for the
|
||||||
|
|||||||
+4
-4
@@ -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:
|
if x_sign < now - slop:
|
||||||
raise ValidationError(
|
raise ValidationError(
|
||||||
"x= value is past (%s)" % sig[b'x'])
|
"x= value is past (%s)" % sig[b'x'])
|
||||||
if x_sign < t_sign:
|
if x_sign < t_sign:
|
||||||
raise ValidationError(
|
raise ValidationError(
|
||||||
"x= value is less than t= value (x=%s t=%s)" %
|
"x= value is less than t= value (x=%s t=%s)" %
|
||||||
(sig[b'x'], sig[b't']))
|
(sig[b'x'], sig[b't']))
|
||||||
|
|
||||||
|
|
||||||
def rfc822_parse(message):
|
def rfc822_parse(message):
|
||||||
|
|||||||
Reference in New Issue
Block a user