From 14fd697c5c4a2435b2113e425c95ac9c05702cc2 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Wed, 30 Dec 2015 10:58:25 -0600 Subject: add UnrecognizedExtension class --- docs/x509/reference.rst | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'docs') diff --git a/docs/x509/reference.rst b/docs/x509/reference.rst index bbea490e..14727e76 100644 --- a/docs/x509/reference.rst +++ b/docs/x509/reference.rst @@ -1880,6 +1880,27 @@ X.509 Extensions :type: int +.. class:: UnrecognizedExtension + + .. versionadded:: 1.2 + + A generic extension class used to hold the raw value of **non-critical** + extensions that ``cryptography`` does not know how to parse. Extensions + marked critical will still raise + :class:`~cryptography.x509.UnsupportedExtension`. + + .. attribute:: oid + + :type: :class:`ObjectIdentifier` + + Returns the OID associated with this extension. + + .. attribute:: value + + :type: byte + + Returns the DER encoded bytes payload of the extension. + .. class:: CertificatePolicies(policies) .. versionadded:: 0.9 -- cgit v1.2.3 From 1628b5c33f92cdfdb77125782095f3028044939f Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Wed, 30 Dec 2015 14:59:44 -0600 Subject: language update --- docs/x509/reference.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/x509/reference.rst b/docs/x509/reference.rst index 14727e76..df17f954 100644 --- a/docs/x509/reference.rst +++ b/docs/x509/reference.rst @@ -1886,7 +1886,7 @@ X.509 Extensions A generic extension class used to hold the raw value of **non-critical** extensions that ``cryptography`` does not know how to parse. Extensions - marked critical will still raise + marked critical will raise :class:`~cryptography.x509.UnsupportedExtension`. .. attribute:: oid -- cgit v1.2.3