Check and update references to RFC 4871 to refer to RFC 6376.
This commit is contained in:
+4
-4
@@ -370,9 +370,9 @@ class DomainSigner(object):
|
|||||||
raise ParameterError(
|
raise ParameterError(
|
||||||
"Unsupported signature algorithm: "+signature_algorithm)
|
"Unsupported signature algorithm: "+signature_algorithm)
|
||||||
self.signature_algorithm = signature_algorithm
|
self.signature_algorithm = signature_algorithm
|
||||||
#: Header fields which should be signed. Default from RFC4871
|
#: Header fields which should be signed. Default as suggested by RFC6376
|
||||||
self.should_sign = set(DKIM.SHOULD)
|
self.should_sign = set(DKIM.SHOULD)
|
||||||
#: Header fields which should not be signed. The default is from RFC4871.
|
#: Header fields which should not be signed. The default is from RFC6376.
|
||||||
#: Attempting to sign these headers results in an exception.
|
#: Attempting to sign these headers results in an exception.
|
||||||
#: If it is necessary to sign one of these, it must be removed
|
#: If it is necessary to sign one of these, it must be removed
|
||||||
#: from this list first.
|
#: from this list first.
|
||||||
@@ -389,7 +389,7 @@ class DomainSigner(object):
|
|||||||
#: @since: 0.5
|
#: @since: 0.5
|
||||||
FROZEN = (b'from',b'date',b'subject')
|
FROZEN = (b'from',b'date',b'subject')
|
||||||
|
|
||||||
#: The rfc4871 recommended header fields to sign
|
#: The rfc6376 recommended header fields to sign
|
||||||
#: @since: 0.5
|
#: @since: 0.5
|
||||||
SHOULD = (
|
SHOULD = (
|
||||||
b'sender', b'reply-to', b'subject', b'date', b'message-id', b'to', b'cc',
|
b'sender', b'reply-to', b'subject', b'date', b'message-id', b'to', b'cc',
|
||||||
@@ -400,7 +400,7 @@ class DomainSigner(object):
|
|||||||
b'list-subscribe', b'list-post', b'list-owner', b'list-archive'
|
b'list-subscribe', b'list-post', b'list-owner', b'list-archive'
|
||||||
)
|
)
|
||||||
|
|
||||||
#: The rfc4871 recommended header fields not to sign.
|
#: The rfc6376 recommended header fields not to sign.
|
||||||
#: @since: 0.5
|
#: @since: 0.5
|
||||||
SHOULD_NOT = (
|
SHOULD_NOT = (
|
||||||
b'return-path',b'received',b'comments',b'keywords',b'bcc',b'resent-bcc',
|
b'return-path',b'received',b'comments',b'keywords',b'bcc',b'resent-bcc',
|
||||||
|
|||||||
+1
-1
@@ -51,7 +51,7 @@ class InvalidTagSpec(InvalidTagValueList):
|
|||||||
def parse_tag_value(tag_list):
|
def parse_tag_value(tag_list):
|
||||||
"""Parse a DKIM Tag=Value list.
|
"""Parse a DKIM Tag=Value list.
|
||||||
|
|
||||||
Interprets the syntax specified by RFC4871 section 3.2.
|
Interprets the syntax specified by RFC6376 section 3.2.
|
||||||
Assumes that folding whitespace is already unfolded.
|
Assumes that folding whitespace is already unfolded.
|
||||||
|
|
||||||
@param tag_list: A bytes string containing a DKIM Tag=Value list.
|
@param tag_list: A bytes string containing a DKIM Tag=Value list.
|
||||||
|
|||||||
Reference in New Issue
Block a user