mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-29 14:06:32 +02:00
removed maxlength message on ds data digest
This commit is contained in:
parent
5145e3782e
commit
fa72f31d24
3 changed files with 4 additions and 33 deletions
|
@ -122,17 +122,15 @@ class DsDataErrorCodes(IntEnum):
|
|||
- 1 BAD_DATA bad data input in ds data
|
||||
- 2 INVALID_DIGEST_SHA1 invalid digest for digest type SHA-1
|
||||
- 3 INVALID_DIGEST_SHA256 invalid digest for digest type SHA-256
|
||||
- 4 INVALID_DIGEST_LENGTH invalid digest length exceeds 64
|
||||
- 5 INVALID_DIGEST_CHARS invalid chars in digest
|
||||
- 6 INVALID_KEYTAG_SIZE invalid key tag size > 65535
|
||||
- 4 INVALID_DIGEST_CHARS invalid chars in digest
|
||||
- 5 INVALID_KEYTAG_SIZE invalid key tag size > 65535
|
||||
"""
|
||||
|
||||
BAD_DATA = 1
|
||||
INVALID_DIGEST_SHA1 = 2
|
||||
INVALID_DIGEST_SHA256 = 3
|
||||
INVALID_DIGEST_LENGTH = 4
|
||||
INVALID_DIGEST_CHARS = 5
|
||||
INVALID_KEYTAG_SIZE = 6
|
||||
INVALID_DIGEST_CHARS = 4
|
||||
INVALID_KEYTAG_SIZE = 5
|
||||
|
||||
|
||||
class DsDataError(Exception):
|
||||
|
@ -147,7 +145,6 @@ class DsDataError(Exception):
|
|||
),
|
||||
DsDataErrorCodes.INVALID_DIGEST_SHA1: ("SHA-1 digest must be exactly 40 characters."),
|
||||
DsDataErrorCodes.INVALID_DIGEST_SHA256: ("SHA-256 digest must be exactly 64 characters."),
|
||||
DsDataErrorCodes.INVALID_DIGEST_LENGTH: ("Digest must be at most 64 characters."),
|
||||
DsDataErrorCodes.INVALID_DIGEST_CHARS: ("Digest must contain only alphanumeric characters [0-9,a-f]."),
|
||||
DsDataErrorCodes.INVALID_KEYTAG_SIZE: ("Key tag must be less than 65535"),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue