Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2016-03-26 23:50:48 +0100
committerArthur de Jong <arthur@arthurdejong.org>2016-03-28 17:33:17 +0200
commit0c57335d533cbaa7e331ab3d7e876a22710890bb (patch)
tree1178aae7a0c1c2406cdca653efae1dbb9be7376b
parentb4a6c720cb202f44b07ad2d0f9d8812ab7212ea5 (diff)
Document may_use() policy function
-rw-r--r--docs/policy.rst8
1 files 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: