...
 
Commits (2)
......@@ -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>
......@@ -119,7 +119,7 @@ errmsg(VRT_CTX, const char *fmt, ...)
/* Event function */
int __match_proto__(vmod_event_f)
int v_matchproto_(vmod_event_f)
event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e)
{
(void) ctx;
......