aboutsummaryrefslogtreecommitdiffstats
path: root/docs/x509/reference.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/x509/reference.rst')
-rw-r--r--docs/x509/reference.rst94
1 files changed, 37 insertions, 57 deletions
diff --git a/docs/x509/reference.rst b/docs/x509/reference.rst
index 238a24e5..014d1f47 100644
--- a/docs/x509/reference.rst
+++ b/docs/x509/reference.rst
@@ -1242,66 +1242,53 @@ General Name Classes
.. versionadded:: 0.9
- ..note::
+ .. versionchanged:: 2.1
- Starting with version 2.1 unicode input is deprecated. If passing an
- email address containing an internationalized domain name (IDN) you
- should first IDNA encode the hostname and then pass the resulting
- bytes.
+ .. warning::
- This corresponds to an email address. For example, ``user@example.com``.
-
- :param bytes value: The email address. If the address contains an
- internationalized domain name then it must be encoded to an
- :term:`A-label` before being passed.
+ Starting with version 2.1 :term:`U-label` input is deprecated. If
+ passing an internationalized domain name (IDN) you should first IDNA
+ encode the value and then pass the result as a string. Accessing
+ ``value`` will return the :term:`A-label` encoded form even if you pass
+ a U-label. This breaks backwards compatibility, but only for
+ internationalized domain names.
- .. attribute:: bytes_value
- .. versionadded:: 2.1
-
- :type: bytes
+ This corresponds to an email address. For example, ``user@example.com``.
- The value as a byte string. This will contain an :term:`A-label` if
- the domain in the address is an internationalized domain name.
+ :param value: The email address. If the address contains an
+ internationalized domain name then it must be encoded to an
+ :term:`A-label` string before being passed.
.. attribute:: value
- .. deprecated:: 2.1
-
- Deprecated accessor for the idna-decoded value of :attr:`bytes_value`
-
:type: :term:`text`
.. class:: DNSName(value)
.. versionadded:: 0.9
- ..note::
+ .. versionchanged:: 2.1
- Starting with version 2.1 unicode input is deprecated. If passing an
- internationalized domain name (IDN) you should first IDNA encode the
- hostname and then pass the resulting bytes.
+ .. warning::
- This corresponds to a domain name. For example, ``cryptography.io``.
+ Starting with version 2.1 :term:`U-label` input is deprecated. If
+ passing an internationalized domain name (IDN) you should first IDNA
+ encode the value and then pass the result as a string. Accessing
+ ``value`` will return the :term:`A-label` encoded form even if you pass
+ a U-label. This breaks backwards compatibility, but only for
+ internationalized domain names.
- :param bytes value: The domain name. If it is an internationalized domain
- name then it must be encoded to an :term:`A-label` before being passed.
-
- .. attribute:: bytes_value
-
- .. versionadded:: 2.1
+ This corresponds to a domain name. For example, ``cryptography.io``.
- :type: bytes
+ :param value: The domain name. If it is an internationalized domain
+ name then it must be encoded to an :term:`A-label` string before being
+ passed.
- The value as a byte string. This will contain an :term:`A-label` if
- it is an internationalized domain name.
+ :type: :term:`text`
.. attribute:: value
- .. deprecated:: 2.1
-
- Deprecated accessor for the idna-decoded value of :attr:`bytes_value`
-
:type: :term:`text`
.. class:: DirectoryName(value)
@@ -1318,33 +1305,26 @@ General Name Classes
.. versionadded:: 0.9
- ..note::
+ .. versionchanged:: 2.1
+
+ .. warning::
- Starting with version 2.1 unicode input is deprecated. If passing an
- internationalized domain name (IDN) within the URI you should first
- IDNA encode the hostname and then pass the resulting bytes.
+ Starting with version 2.1 :term:`U-label` input is deprecated. If
+ passing an internationalized domain name (IDN) you should first IDNA
+ encode the value and then pass the result as a string. Accessing
+ ``value`` will return the :term:`A-label` encoded form even if you pass
+ a U-label. This breaks backwards compatibility, but only for
+ internationalized domain names.
This corresponds to a uniform resource identifier. For example,
``https://cryptography.io``.
- :param bytes value: The URI. If it contains an internationalized domain
- name then it must be encoded to an :term:`A-label` before being passed.
-
- .. attribute:: bytes_value
-
- .. versionadded:: 2.1
-
- :type: bytes
-
- The value as a byte string. This will contain an :term:`A-label` if
- the URI contains an internationalized domain name.
+ :param value: The URI. If it contains an internationalized domain
+ name then it must be encoded to an :term:`A-label` string before
+ being passed.
.. attribute:: value
- .. deprecated:: 2.1
-
- Deprecated accessor for the idna-decoded value of :attr:`bytes_value`
-
:type: :term:`text`
.. class:: IPAddress(value)