Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-hoailona
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-hoailona
Compare Revisions
1f219ee723344b95801afc446f2293188f7306fd...ff301c266593d43f07224d5aef02082109c07f50
Source
ff301c266593d43f07224d5aef02082109c07f50
Select Git revision
...
Target
1f219ee723344b95801afc446f2293188f7306fd
Select Git revision
Compare
Commits (2)
reflect __match_proto__() -> v_matchproto_() rename in varnish-cache
· ca0c809d
Nils Goroll
authored
Nov 30, 2017
Ref: 2061f887203ec454719fe760419f4562ca8876e6
ca0c809d
vmodtool now filters out the PRIV_* args
· ff301c26
Nils Goroll
authored
Nov 30, 2017
ff301c26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
README.rst
README.rst
+7
-8
vmod_hoailona.c
src/vmod_hoailona.c
+1
-1
No files found.
README.rst
View file @
ff301c26
...
...
@@ -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>
src/vmod_hoailona.c
View file @
ff301c26
...
...
@@ -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
;
...
...