summaryrefslogtreecommitdiffstats
path: root/example.lua
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-12-12 11:04:07 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2012-12-12 11:04:07 +0100
commit5fef443b54a26a69be9ccdd22b44c62ecb133abc (patch)
treebcb3118c37451f41a87339990a076eb89ea33133 /example.lua
downloadprivsep-5fef443b54a26a69be9ccdd22b44c62ecb133abc.tar.bz2
privsep-5fef443b54a26a69be9ccdd22b44c62ecb133abc.tar.xz
initial prototype
Diffstat (limited to 'example.lua')
-rw-r--r--example.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/example.lua b/example.lua
new file mode 100644
index 0000000..324df49
--- /dev/null
+++ b/example.lua
@@ -0,0 +1,9 @@
+
+privsep = require("privsep")
+
+mymod = privsep.wrap("mymod", "mysessionid")
+
+print(mymod.myfunc("foo", false))
+
+
+