- Update changelog and versions to start 0.5.3.
- Improve key error messages to help troubleshooting.
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
2012-06-13 Verion 0.5.2
|
UNRELEASED Version 0.5.3
|
||||||
|
- Make key parsing error messages more specific to help troubleshooting
|
||||||
|
(Based on user feedback)
|
||||||
|
|
||||||
|
2012-06-13 Version 0.5.2
|
||||||
- Change canonicalization defaults to work around issues with different
|
- Change canonicalization defaults to work around issues with different
|
||||||
verification implementations <https://launchpad.net/bugs/939128>
|
verification implementations <https://launchpad.net/bugs/939128>
|
||||||
- Fully fold DKIM-Signature on sign, and ignore FWS in b= value on verify
|
- Fully fold DKIM-Signature on sign, and ignore FWS in b= value on verify
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Metadata-Version: 1.0
|
Metadata-Version: 1.0
|
||||||
Name: dkimpy
|
Name: dkimpy
|
||||||
Version: 0.5.2
|
Version: 0.5.3
|
||||||
Summary: DKIM (DomainKeys Identified Mail)
|
Summary: DKIM (DomainKeys Identified Mail)
|
||||||
Home-page: https://launchapd.net/dkimpy
|
Home-page: https://launchapd.net/dkimpy
|
||||||
Author: Scott Kitterman
|
Author: Scott Kitterman
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ signing and verification.
|
|||||||
|
|
||||||
VERSION
|
VERSION
|
||||||
|
|
||||||
This is dkimpy 0.5.2.
|
This is dkimpy 0.5.3.
|
||||||
|
|
||||||
REQUIREMENTS
|
REQUIREMENTS
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -112,7 +112,7 @@ def parse_public_key(data):
|
|||||||
x = asn1_parse(ASN1_Object, data)
|
x = asn1_parse(ASN1_Object, data)
|
||||||
pkd = asn1_parse(ASN1_RSAPublicKey, x[0][1][1:])
|
pkd = asn1_parse(ASN1_RSAPublicKey, x[0][1][1:])
|
||||||
except ASN1FormatError as e:
|
except ASN1FormatError as e:
|
||||||
raise UnparsableKeyError(str(e))
|
raise UnparsableKeyError('Unparsable public key: ' + str(e))
|
||||||
pk = {
|
pk = {
|
||||||
'modulus': pkd[0][0],
|
'modulus': pkd[0][0],
|
||||||
'publicExponent': pkd[0][1],
|
'publicExponent': pkd[0][1],
|
||||||
@@ -129,7 +129,7 @@ def parse_private_key(data):
|
|||||||
try:
|
try:
|
||||||
pka = asn1_parse(ASN1_RSAPrivateKey, data)
|
pka = asn1_parse(ASN1_RSAPrivateKey, data)
|
||||||
except ASN1FormatError as e:
|
except ASN1FormatError as e:
|
||||||
raise UnparsableKeyError(str(e))
|
raise UnparsableKeyError('Unparsable private key: ' + str(e))
|
||||||
pk = {
|
pk = {
|
||||||
'version': pka[0][0],
|
'version': pka[0][0],
|
||||||
'modulus': pka[0][1],
|
'modulus': pka[0][1],
|
||||||
|
|||||||
Reference in New Issue
Block a user