aboutsummaryrefslogtreecommitdiffstats
path: root/src/cryptography/hazmat/backends/openssl/x509.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-11-03 22:00:41 +0900
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-11-03 22:00:41 +0900
commitd2898052ade019788ca146cfcced44c5a6b0e54b (patch)
treeb6ebf902f4538e275207fee0a310b61ebcc23b61 /src/cryptography/hazmat/backends/openssl/x509.py
parentaa74abbfc3f0656c9ad09b46f7afc37339c9036c (diff)
downloadcryptography-d2898052ade019788ca146cfcced44c5a6b0e54b.tar.gz
cryptography-d2898052ade019788ca146cfcced44c5a6b0e54b.tar.bz2
cryptography-d2898052ade019788ca146cfcced44c5a6b0e54b.zip
rename tbs_certificate to tbs_certificate_bytes, add a comment
Diffstat (limited to 'src/cryptography/hazmat/backends/openssl/x509.py')
-rw-r--r--src/cryptography/hazmat/backends/openssl/x509.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/x509.py b/src/cryptography/hazmat/backends/openssl/x509.py
index 0e5ab914..3afbc40f 100644
--- a/src/cryptography/hazmat/backends/openssl/x509.py
+++ b/src/cryptography/hazmat/backends/openssl/x509.py
@@ -327,8 +327,9 @@ class _Certificate(object):
return self._backend._asn1_string_to_bytes(self._x509.signature)
@property
- def tbs_certificate(self):
+ def tbs_certificate_bytes(self):
pp = self._backend._ffi.new("unsigned char **")
+ # the X509_CINF struct holds the tbsCertificate data
res = self._backend._lib.i2d_X509_CINF(self._x509.cert_info, pp)
self._backend.openssl_assert(res > 0)
pp = self._backend._ffi.gc(