From 0c57335d533cbaa7e331ab3d7e876a22710890bb Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 26 Mar 2016 23:50:48 +0100 Subject: Document may_use() policy function --- docs/policy.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/policy.rst b/docs/policy.rst index 97f9250..cad018f 100644 --- a/docs/policy.rst +++ b/docs/policy.rst @@ -92,11 +92,11 @@ The Policy class value is ``True`` to ensure that the lack of understanding of certain extensions does not lead to unintended key usage. - .. function:: may_use(usage) - - Check whether the key may be used for the provided purpose. See - :ref:`key-use-constants` below. + .. function:: may_use(usage=None, now=None) + Check whether the key may be used for the provided purpose. The key + :attr:`start_date` and :attr:`expiry_date` are also checked. The `now` + argument can be used to specify another point in time to check against. .. _key-use-constants: -- cgit v1.2.3