Skip to content

Commit

Permalink
Add changelog entry and documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Oct 19, 2021
1 parent 9fc9762 commit 91d7e66
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Changelog
:func:`~cryptography.hazmat.primitives.serialization.pkcs12.load_pkcs12`,
which will return an object of type
:class:`~cryptography.hazmat.primitives.serialization.pkcs12.PKCS12KeyAndCertificates`.
* Extension values can now be serialized to a DER byte string by calling
:func:`~cryptography.x509.ExtensionType.to_der_string`.

.. _v35-0-0:

Expand Down
8 changes: 8 additions & 0 deletions docs/x509/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1589,6 +1589,14 @@ X.509 Extensions

Returns the OID associated with the given extension type.

.. method:: to_der_string

.. versionadded:: 36.0

:return bytes:

A bytes string representing the extension's DER encoded value.

.. class:: KeyUsage(digital_signature, content_commitment, key_encipherment, data_encipherment, key_agreement, key_cert_sign, crl_sign, encipher_only, decipher_only)

.. versionadded:: 0.9
Expand Down

0 comments on commit 91d7e66

Please sign in to comment.