diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2018-03-20 13:12:13 -0400 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2018-03-20 13:12:13 -0400 |
commit | 79748a9e84b8084559e9a2794ed2d88e05259611 (patch) | |
tree | 977efc17aa7cd369fee5b13f480f3907980a08f5 /src | |
parent | 9b4423b254d0c4b1e5eba25d1188ebaaf8a863b5 (diff) | |
download | cryptography-79748a9e84b8084559e9a2794ed2d88e05259611.tar.gz cryptography-79748a9e84b8084559e9a2794ed2d88e05259611.tar.bz2 cryptography-79748a9e84b8084559e9a2794ed2d88e05259611.zip |
Revert "don't allow GeneralNames to be an empty list (#4128)" (#4161)
This breaks the urllib3 tests, as well as several in-the-wild certs
This reverts commit 388d1bd3e9cd953fcc948edbc152d5d140c87eb8.
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/x509/extensions.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/cryptography/x509/extensions.py b/src/cryptography/x509/extensions.py index af12fa9c..eb4b927f 100644 --- a/src/cryptography/x509/extensions.py +++ b/src/cryptography/x509/extensions.py @@ -1160,9 +1160,6 @@ class Extension(object): class GeneralNames(object): def __init__(self, general_names): general_names = list(general_names) - if len(general_names) == 0: - raise ValueError("Must supply at least one general name") - if not all(isinstance(x, GeneralName) for x in general_names): raise TypeError( "Every item in the general_names list must be an " |