5 * itkacl control library, version 2.2
7 * (C) 2004-2022 Steinar H. Gunderson
11 int itkacl_check(const char * const realm, const char * const user,
12 char *errmsg, size_t errmsg_size);
15 * Opaque context. A context is created with itkacl_create_ctx()
16 * and freed with itkacl_free_ctx(), and is thread-safe.
17 * If you are making multiple calls to itkacl_check(), it is faster
18 * to reuse the same context over and over (since libunbound can
19 * have rather high setup times depending on configuration).
21 * Configuration is only reread when the context is created.
25 struct itkacl_ctx *itkacl_create_ctx(char *errmsg, size_t errmsg_size); // Returns NULL on failure.
26 void itkacl_free_ctx(struct itkacl_ctx *ctx);
28 int itkacl_check_with_ctx(struct itkacl_ctx *ctx,
29 const char * const realm, const char * const user,
30 char *errmsg, size_t errmsg_size);
32 #endif /* !defined(_ITKACL_H) */