Searched defs:script (Results 1 - 7 of 7) sorted by relevance

/dovecot/src/lib-lua/
H A Dtest-lua.c4 #include "dlua-script-private.h"
10 " dovecot.i_debug(\"lua script init called\")\n"
16 struct dlua_script *script = NULL; local
18 test_begin("lua script");
20 test_assert(dlua_script_create_string(luascript, &script, &error) == 0);
21 dlua_dovecot_register(script);
22 test_assert(dlua_script_init(script, &error) == 0);
23 test_assert(dlua_script_has_function(script, "lua_function"));
25 dlua_script_unref(&script);
H A Ddlua-dovecot.c4 #include "dlua-script-private.h"
10 struct dlua_script *script = dlua_script_from_state(L); local
11 const char *msg = luaL_checkstring(script->L, 1);
18 struct dlua_script *script = dlua_script_from_state(L); local
19 const char *msg = luaL_checkstring(script->L, 1);
26 struct dlua_script *script = dlua_script_from_state(L); local
27 const char *msg = luaL_checkstring(script->L, 1);
34 struct dlua_script *script = dlua_script_from_state(L); local
35 const char *msg = luaL_checkstring(script->L, 1);
48 void dlua_getdovecot(struct dlua_script *script) argument
53 dlua_dovecot_register(struct dlua_script *script) argument
[all...]
H A Ddlua-script.c9 #include "dlua-script-private.h"
51 struct dlua_script *script = local
55 p_free(script->pool, ptr);
58 return p_realloc(script->pool, ptr, osize, nsize);
64 struct dlua_script *script = local
67 i_stream_skip(script->in, script->last_read);
68 if (i_stream_read_more(script->in, &data, size_r) == -1 &&
69 script->in->stream_errno != 0) {
71 script
82 struct dlua_script *script; local
89 dlua_script_init(struct dlua_script *script, const char **error_r) argument
123 struct dlua_script *script = p_new(pool, struct dlua_script, 1); local
137 dlua_run_script(struct dlua_script *script, const char **error_r) argument
153 struct dlua_script *script; local
161 dlua_script_create_finish(struct dlua_script *script, struct dlua_script **script_r, const char **error_r) argument
179 struct dlua_script *script; local
208 struct dlua_script *script; local
241 struct dlua_script *script; local
266 dlua_script_destroy(struct dlua_script *script) argument
287 dlua_script_ref(struct dlua_script *script) argument
295 struct dlua_script *script = *_script; local
307 dlua_script_has_function(struct dlua_script *script, const char *fn) argument
316 dlua_setmembers(struct dlua_script *script, const struct dlua_table_values *values, int idx) argument
[all...]
/dovecot/src/auth/
H A Dtest-lua.c30 struct dlua_script *script = NULL; local
34 test_assert(dlua_script_create_string(luascript, &script, &error) == 0);
35 test_assert(auth_lua_script_init(script, &error) == 0);
36 if (script != NULL) {
37 test_assert(auth_lua_call_passdb_lookup(script, req, &scheme, &pass, &error) == 1);
39 dlua_script_unref(&script);
H A Duserdb-lua.c13 struct dlua_script *script; member in struct:dlua_userdb_module
25 auth_lua_call_userdb_lookup(module->script, auth_request, &error);
83 if (dlua_script_create_file(module->file, &module->script, &error) < 0 ||
84 auth_lua_script_init(module->script, &error) < 0)
92 dlua_script_unref(&module->script);
103 return auth_lua_call_userdb_iterate_init(module->script, auth_request,
H A Dpassdb-lua.c13 struct dlua_script *script; member in struct:dlua_passdb_module
24 auth_lua_call_password_verify(module->script, request,
46 result = auth_lua_call_passdb_lookup(module->script, request, scheme_r,
156 if (dlua_script_create_file(module->file, &module->script, &error) < 0 ||
157 auth_lua_script_init(module->script, &error) < 0)
160 dlua_script_has_function(module->script, AUTH_LUA_PASSWORD_VERIFY);
167 dlua_script_unref(&module->script);
H A Ddb-lua.c28 #include "dlua-script-private.h"
38 auth_lua_check_auth_request(struct dlua_script *script, int arg);
55 struct dlua_script *script = dlua_script_from_state(L); local
56 struct auth_request *req = auth_lua_check_auth_request(script, 1);
89 struct dlua_script *script = dlua_script_from_state(L); local
90 struct auth_request *req = auth_lua_check_auth_request(script, 1);
126 struct dlua_script *script = dlua_script_from_state(L); local
127 struct auth_request *request = auth_lua_check_auth_request(script, 1);
136 struct dlua_script *script = dlua_script_from_state(L); local
137 struct auth_request *request = auth_lua_check_auth_request(script,
145 struct dlua_script *script = dlua_script_from_state(L); local
154 struct dlua_script *script = dlua_script_from_state(L); local
163 struct dlua_script *script = dlua_script_from_state(L); local
185 struct dlua_script *script = dlua_script_from_state(L); local
216 struct dlua_script *script = dlua_script_from_state(L); local
252 auth_lua_push_auth_request(struct dlua_script *script, struct auth_request *req) argument
276 auth_lua_check_auth_request(struct dlua_script *script, int arg) argument
290 auth_lua_auth_request_register(struct dlua_script *script) argument
330 auth_lua_dovecot_auth_register(struct dlua_script *script) argument
353 auth_lua_script_init(struct dlua_script *script, const char **error_r) argument
361 auth_lua_call_lookup(struct dlua_script *script, const char *fn, struct auth_request *req, const char **error_r) argument
436 auth_lua_export_table(struct dlua_script *script, struct auth_request *req, const char **scheme_r, const char **password_r) argument
475 auth_lua_export_userdb_table(struct dlua_script *script, struct auth_request *req, const char **error_r) argument
492 auth_lua_export_passdb_table(struct dlua_script *script, struct auth_request *req, const char **scheme_r, const char **password_r, const char **error_r) argument
510 auth_lua_call_lookup_finish(struct dlua_script *script, struct auth_request *req, const char **scheme_r, const char **password_r, const char **error_r) argument
537 auth_lua_call_password_verify(struct dlua_script *script, struct auth_request *req, const char *password, const char **error_r) argument
588 auth_lua_call_passdb_lookup(struct dlua_script *script, struct auth_request *req, const char **scheme_r, const char **password_r, const char **error_r) argument
603 auth_lua_call_userdb_lookup(struct dlua_script *script, struct auth_request *req, const char **error_r) argument
630 auth_lua_call_userdb_iterate_init(struct dlua_script *script, struct auth_request *req, userdb_iter_callback_t *callback, void *context) argument
[all...]

Completed in 756 milliseconds