aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/backends
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2016-11-13 14:30:11 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2016-11-13 17:30:11 -0500
commit3a15b03e92c9fdeadff04ddd2ce505028b279b86 (patch)
treee314732deed27d3f3f4dba9b4c1f40dcca3e54fa /docs/hazmat/backends
parentd862933de5c344fcdf99ab2f43f3bf8da65f3e41 (diff)
downloadcryptography-3a15b03e92c9fdeadff04ddd2ce505028b279b86.tar.gz
cryptography-3a15b03e92c9fdeadff04ddd2ce505028b279b86.tar.bz2
cryptography-3a15b03e92c9fdeadff04ddd2ce505028b279b86.zip
Add a bytes method to get the DER ASN.1 encoding of an X509 name. (#3236)
* Add a bytes method to get the DER ASN.1 encoding of an X509 name. This is useful for creating an OpenSSL style subject_name_hash (#3011) * add to backend interface and update multibackend * bytes -> public_bytes
Diffstat (limited to 'docs/hazmat/backends')
-rw-r--r--docs/hazmat/backends/interfaces.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/hazmat/backends/interfaces.rst b/docs/hazmat/backends/interfaces.rst
index 0a0d1456..942a359c 100644
--- a/docs/hazmat/backends/interfaces.rst
+++ b/docs/hazmat/backends/interfaces.rst
@@ -585,6 +585,14 @@ A specific ``backend`` may provide one or more of these interfaces.
:returns: A new instance of
:class:`~cryptography.x509.RevokedCertificate`.
+ .. method:: x509_name_bytes(name)
+
+ .. versionadded:: 1.6
+
+ :param name: An instance of :class:`~cryptography.x509.Name`.
+
+ :return bytes: The DER encoded bytes.
+
.. class:: DHBackend
.. versionadded:: 0.9