--- /dev/null
+#include <stdio.h>
+#include "itkacl.h"
+
+int main()
+{
+ char errmsg[1024];
+ int ret;
+ struct itkacl_ctx *ctx;
+
+ ctx = itkacl_create_ctx(errmsg, sizeof(errmsg));
+ if (ctx == NULL) {
+ printf("Error while creating context: %s\n", errmsg);
+ return 1;
+ }
+
+ ret = itkacl_check_with_ctx(ctx, "/login/unix-servers/cirkus", "sesse", errmsg, sizeof(errmsg));
+
+ itkacl_free_ctx(ctx);
+
+ if (ret == 0) {
+ printf("OK\n");
+ } else if (ret == -1) {
+ printf("Error: %s\n", errmsg);
+ } else {
+ printf("Not OK\n");
+ }
+ return 0;
+}