From 2ee5e3c6240721120146d6d81c70e1b900029ee0 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Sat, 4 Jul 2015 20:09:46 +0000 Subject: parse SAN otherNames into OtherName instances rather than raising an exception Test added. --- docs/x509.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'docs') diff --git a/docs/x509.rst b/docs/x509.rst index f94f50eb..eab1f53c 100644 --- a/docs/x509.rst +++ b/docs/x509.rst @@ -695,6 +695,20 @@ General Name Classes :type: :class:`ObjectIdentifier` +.. class:: OtherName + + .. versionadded:: 1.0 + + This corresponds to an "otherName." An otherName has a type identifier and a value represented in binary DER format. + + .. attribute:: type_id + + :type: :class:`ObjectIdentifier` + + .. attribute:: value + + :type: `bytes` + X.509 Extensions ~~~~~~~~~~~~~~~~ -- cgit v1.2.3 From 18b6fc84fcb671412aaaf453f623a44a30a1a2a3 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Sun, 5 Jul 2015 21:44:51 +0000 Subject: additional tests and doc spelling error fix for OtherName --- docs/x509.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/x509.rst b/docs/x509.rst index eab1f53c..7ee4516d 100644 --- a/docs/x509.rst +++ b/docs/x509.rst @@ -699,7 +699,7 @@ General Name Classes .. versionadded:: 1.0 - This corresponds to an "otherName." An otherName has a type identifier and a value represented in binary DER format. + This corresponds to an ``otherName.`` An ``otherName`` has a type identifier and a value represented in binary DER format. .. attribute:: type_id -- cgit v1.2.3 From d2afad325e2e9c52765b4a696d6f6b646c4e855b Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Mon, 6 Jul 2015 22:37:53 +0000 Subject: special-case GeneralNames.get_values_for_type to return OtherName instances directly rather than their value properties; tests updated --- docs/x509.rst | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') diff --git a/docs/x509.rst b/docs/x509.rst index 7ee4516d..2dac33bc 100644 --- a/docs/x509.rst +++ b/docs/x509.rst @@ -981,6 +981,7 @@ X.509 Extensions :ref:`general name classes `. :returns: A list of values extracted from the matched general names. + The type of the returned values depends on the :class:`GeneralName`. .. doctest:: -- cgit v1.2.3