Commit ff301c26 authored by Nils Goroll's avatar Nils Goroll

vmodtool now filters out the PRIV_* args

parent ca0c809d
Pipeline #405 skipped
......@@ -229,7 +229,7 @@ by that call.
CONTENTS
========
* policy(PRIV_TASK, ENUM {OPEN,DENY,TOKEN}, DURATION, STRING, BLOB, INT)
* policy(ENUM {OPEN,DENY,TOKEN}, DURATION, STRING, BLOB, INT)
* hosts()
* STRING version()
......@@ -240,7 +240,7 @@ policy
::
new OBJ = policy(PRIV_TASK, ENUM {OPEN,DENY,TOKEN} type, DURATION ttl=0, STRING description=0, BLOB secret=0, INT start_offset=0)
new OBJ = policy(ENUM {OPEN,DENY,TOKEN} type, DURATION ttl=0, STRING description=0, BLOB secret=0, INT start_offset=0)
Create a policy. The ``type`` enum is required, to classify the policy
as ``OPEN``, ``DENY`` or ``TOKEN``.
......@@ -316,7 +316,7 @@ hosts.add
::
VOID hosts.add(PRIV_TASK, STRING host, STRING policy, STRING path=0, STRING description=0)
VOID hosts.add(STRING host, STRING policy, STRING path=0, STRING description=0)
Associate ``policy`` with the ``host``, optionally restricted to the
path pattern described by ``path``. The ``host`` and ``policy``
......@@ -456,7 +456,7 @@ hosts.policy
::
INT hosts.policy(PRIV_TASK, STRING host=0, STRING path=0)
INT hosts.policy(STRING host=0, STRING path=0)
Determine the policy type that holds for ``host`` and ``path``. The
return values are:
......@@ -527,7 +527,7 @@ hosts.token
::
STRING hosts.token(PRIV_TASK, STRING acl=0, DURATION ttl=0, STRING data=0)
STRING hosts.token(STRING acl=0, DURATION ttl=0, STRING data=0)
If the previous invocation of ``.policy()`` determined policy type
``TOKEN`` (return value 2 from ``.policy()``), then return the
......@@ -584,7 +584,7 @@ hosts.secret
::
BLOB hosts.secret(PRIV_TASK)
BLOB hosts.secret()
Return the shared secret stored for the policy determined by the
previous invocation of ``.policy()``. Returns NULL if no such shared
......@@ -631,7 +631,7 @@ hosts.explain
::
STRING hosts.explain(PRIV_TASK)
STRING hosts.explain()
Returns a string describing the policy that was determined for a host
and path by the most recent invocation of ``.policy()`` in the current
......@@ -758,4 +758,3 @@ COPYRIGHT
Author: Geoffrey Simmons <geoffrey.simmons@uplex.de>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment