2024-01-06 18:05:10 +00:00
|
|
|
Index: dkimpy-1.1.5/dkim/__init__.py
|
2019-12-02 11:54:07 +00:00
|
|
|
===================================================================
|
2024-01-06 18:05:10 +00:00
|
|
|
--- dkimpy-1.1.5.orig/dkim/__init__.py
|
|
|
|
|
+++ dkimpy-1.1.5/dkim/__init__.py
|
|
|
|
|
@@ -43,18 +43,9 @@ import binascii
|
|
|
|
|
# Set to False to not use async functions even though aiodns is installed.
|
|
|
|
|
USE_ASYNC = True
|
2019-12-02 11:54:07 +00:00
|
|
|
|
|
|
|
|
-# only needed for arc
|
|
|
|
|
-try:
|
2024-01-06 18:05:10 +00:00
|
|
|
- import authres
|
2019-12-02 11:54:07 +00:00
|
|
|
-except ImportError:
|
|
|
|
|
- pass
|
|
|
|
|
-
|
|
|
|
|
-# only needed for ed25519 signing/verification
|
|
|
|
|
-try:
|
|
|
|
|
- import nacl.signing
|
|
|
|
|
- import nacl.encoding
|
|
|
|
|
-except ImportError:
|
|
|
|
|
- pass
|
2024-01-06 18:05:10 +00:00
|
|
|
+import authres
|
2019-12-02 11:54:07 +00:00
|
|
|
+import nacl.signing
|
|
|
|
|
+import nacl.encoding
|
|
|
|
|
|
|
|
|
|
from dkim.canonicalization import (
|
|
|
|
|
CanonicalizationPolicy,
|
2024-01-06 18:05:10 +00:00
|
|
|
@@ -1181,7 +1172,7 @@ class ARC(DomainSigner):
|
|
|
|
|
if chain_validation_status == CV_Fail:
|
|
|
|
|
self.headers.reverse()
|
|
|
|
|
if b'h' in as_fields:
|
|
|
|
|
- raise ValidationError("h= tag not permitted in ARC-Seal header field")
|
|
|
|
|
+ raise ValidationError("h= tag not permitted in ARC-Seal header field")
|
|
|
|
|
res = self.gen_header(as_fields, as_include_headers, canon_policy,
|
|
|
|
|
b"ARC-Seal", pk, standardize)
|
|
|
|
|
|