diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-12-27 15:57:57 -0500 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-12-27 15:57:57 -0500 |
commit | b25888daba748af45bc96afbd08a25f3820ece52 (patch) | |
tree | 53e6907487555181f84f90e3644b5cc56b9b9248 /src | |
parent | b04b67e06ea638e23e06f3fde151a6912c184025 (diff) | |
parent | b39af8d7195757b5025417187376b04e387264a1 (diff) | |
download | cryptography-b25888daba748af45bc96afbd08a25f3820ece52.tar.gz cryptography-b25888daba748af45bc96afbd08a25f3820ece52.tar.bz2 cryptography-b25888daba748af45bc96afbd08a25f3820ece52.zip |
Merge pull request #2594 from reaperhulk/hash-bc
implement hash on basicconstraints
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/x509/extensions.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptography/x509/extensions.py b/src/cryptography/x509/extensions.py index 4dee72f0..ca323a3b 100644 --- a/src/cryptography/x509/extensions.py +++ b/src/cryptography/x509/extensions.py @@ -342,6 +342,9 @@ class BasicConstraints(object): def __ne__(self, other): return not self == other + def __hash__(self): + return hash((self.ca, self.path_length)) + @utils.register_interface(ExtensionType) class CRLDistributionPoints(object): |