aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/primitives/interfaces.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cryptography/hazmat/primitives/interfaces.py b/src/cryptography/hazmat/primitives/interfaces.py
index 561be972..18a62601 100644
--- a/src/cryptography/hazmat/primitives/interfaces.py
+++ b/src/cryptography/hazmat/primitives/interfaces.py
@@ -504,6 +504,12 @@ class X509Certificate(object):
Returns certificate serial number
"""
+ @abc.abstractproperty
+ def version(self):
+ """
+ Returns the certificate version
+ """
+
@abc.abstractmethod
def public_key(self):
"""