summaryrefslogtreecommitdiff
path: root/src/cryptography/utils.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2023-05-07 11:01:33 -0500
committerGitHub <noreply@github.com>2023-05-07 16:01:33 +0000
commit0f2b72bb12b698e5787241a54ea9132837a1ec9c (patch)
tree06a1d9579b85b244d6f7f631608329e4ca9e078a /src/cryptography/utils.py
parent8ab4d1a58e6128f8c32981ee3f667e89d09c758b (diff)
downloadcryptography-0f2b72bb12b698e5787241a54ea9132837a1ec9c.tar.gz
invalid visible string support (#8884)
* invalid visible string support this allows utf8 in visiblestring, which is not valid DER. we raise a warning when this happens, but allow it since belgian eIDs, among others, have encoding errors. Belgium fixed this by 2021 (and possibly earlier), but their eID certificates have 10 year validity. * review comments * clippy
Diffstat (limited to 'src/cryptography/utils.py')
-rw-r--r--src/cryptography/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptography/utils.py b/src/cryptography/utils.py
index 651e8509a..719168168 100644
--- a/src/cryptography/utils.py
+++ b/src/cryptography/utils.py
@@ -23,6 +23,7 @@ class CryptographyDeprecationWarning(UserWarning):
DeprecatedIn36 = CryptographyDeprecationWarning
DeprecatedIn37 = CryptographyDeprecationWarning
DeprecatedIn40 = CryptographyDeprecationWarning
+DeprecatedIn41 = CryptographyDeprecationWarning
def _check_bytes(name: str, value: bytes) -> None: