/dovecot/src/lib-lua/ |
H A D | test-lua.c | 15 const char *error = NULL; local 20 test_assert(dlua_script_create_string(luascript, &script, &error) == 0); 22 test_assert(dlua_script_init(script, &error) == 0);
|
/dovecot/src/lib-dict-backend/ |
H A D | test-dict-sql.c | 14 const char *error = NULL; local 21 if (dict_init("mysql:" DICT_SRC_DIR "/dict.conf", &set, &dict, &error) < 0) 22 i_fatal("cannot initialize dict: %s", error); 47 const char *value = NULL, *error = NULL; local 67 test_assert(dict_lookup(dict, pool, "shared/dictmap/hello/world", &value, &error) == 1); 69 if (error != NULL) 70 i_error("dict_lookup failed: %s", error); 77 const char *error; local 95 test_assert(dict_transaction_commit(&ctx, &error) == 0); 96 if (error ! 111 const char *error; local 146 const char *error; local 182 const char *key = NULL, *value = NULL, *error; local [all...] |
/dovecot/src/lib/ |
H A D | test-path-util.c | 25 const char *npath = NULL, *error = NULL; local 26 test_assert(t_normpath_to("README.md", cwd, &npath, &error) == 0); 32 const char *npath = NULL, *error = NULL; local 33 test_assert(t_normpath_to("/", "/", &npath, &error) == 0); 36 test_assert(t_normpath_to(cwd, cwd, &npath, &error) == 0); 53 const char *error; local 54 test_assert_idx(t_normpath_to("../", npath, &npath, &error) == 0, l); 61 const char *npath = NULL, *error = NULL; local 62 test_assert(t_normpath_to(".", cwd, &npath, &error) == 0); 65 test_assert(t_normpath_to("./", cwd, &npath, &error) 74 const char *npath = NULL, *error = NULL; local 85 const char *npath = NULL, *error = NULL; local 101 const char *old_dir, *npath = NULL, *error = NULL; local 123 const char *npath = NULL, *error = NULL; local 132 const char *npath = NULL, *error = NULL; local 144 const char *norm = NULL, *error = NULL; local 238 const char *error; local 246 const char *error; local [all...] |
H A D | unlink-directory.c | 48 unlink_directory_error(const char **error, argument 55 if (*error == NULL) { 58 *error = err; 66 const char **error) 76 unlink_directory_error(error, NULL, 124 unlink_directory_error(error, NULL, ERROR_FORMAT, "fchdir", dir); 131 unlink_directory_error(error, NULL, "opendir(.) (in %s) failed: %m", dir); 141 unlink_directory_error(error, 164 unlink_directory_error(error, 173 if (unlink_directory_r(d->d_name, flags, error) < 65 unlink_directory_r(const char *dir, enum unlink_directory_flags flags, const char **error) argument 238 const char *orig_dir, *error; local [all...] |
H A D | test-hash-format.c | 38 const char *error; local 43 test_assert(hash_format_init(fail_input[i], &format, &error) < 0); 46 test_assert(hash_format_init(tests[i].input, &format, &error) == 0);
|
H A D | test-uri.c | 29 const char *uri_in, *error = NULL; local 34 ret = uri_check(uri_in, 0, &error); 63 const char *uri_in, *error = NULL; local 68 ret = uri_check(uri_in, 0, &error); 614 const char *uri_in, *error = NULL; local 619 ret = uri_check(uri_in, URI_PARSE_ALLOW_FRAGMENT_PART, &error);
|
/dovecot/src/auth/ |
H A D | test-lua.c | 29 const char *error = NULL; local 34 test_assert(dlua_script_create_string(luascript, &script, &error) == 0); 35 test_assert(auth_lua_script_init(script, &error) == 0); 37 test_assert(auth_lua_call_passdb_lookup(script, req, &scheme, &pass, &error) == 1);
|
H A D | mech-external.c | 12 const char *authzid, *error; local 24 if (!auth_request_set_username(request, "", &error)) { 32 !auth_request_set_login_username(request, authzid, &error)) { 35 "login user: %s", error);
|
H A D | test-libpassword.c | 42 const char *error, *scheme2; local 47 test_assert(password_decode(crypted, scheme, &raw_password, &siz, &error) == 1); 48 test_assert(password_verify(plaintext, ¶ms, scheme, raw_password, siz, &error) == 1); 53 test_assert(password_decode(crypted, scheme, &raw_password, &siz, &error) == 1); 54 test_assert(password_verify(plaintext, ¶ms, scheme, raw_password, siz, &error) == 1); 77 const char *error; local 83 test_assert(password_decode(crypted, scheme, &raw_password, &siz, &error) == 1); 84 test_assert(password_verify(plaintext, ¶ms, scheme, raw_password, siz, &error) == 0); 89 test_assert(password_decode(crypted, scheme, &raw_password, &siz, &error) == 0); 92 test_assert(password_verify(plaintext, ¶ms, "CRYPT", NULL, 0, &error) [all...] |
/dovecot/src/lib-fts/ |
H A D | test-fts-tokenizer.c | 82 const char *token, *error; local 88 while (fts_tokenizer_next(tok, input, input_len, &token, &error) > 0) { 92 while (fts_tokenizer_next(tok, NULL, 0, &token, &error) > 0) { 102 while (fts_tokenizer_next(tok, input+i, char_len, &token, &error) > 0) { 107 while (fts_tokenizer_final(tok, &token, &error) > 0) { 119 while (fts_tokenizer_next(tok, input+i, char_len, &token, &error) > 0) { 124 while (fts_tokenizer_final(tok, &token, &error) > 0) { 190 const char *error; local 193 test_assert(fts_tokenizer_create(fts_tokenizer_generic, NULL, NULL, &tok, &error) == 0); 248 const char *error; local 305 const char *error; local 329 const char *error; local 354 const char *error; local 393 const char *token, *error; local 462 const char *token, *error; local 483 const char *token, *error; local [all...] |
H A D | test-fts-filter.c | 37 const char *error; local 40 test_assert(fts_filter_create(fts_filter_contractions, NULL, &english_language, NULL, &filter, &error) != 0); 41 test_assert(error != NULL); 72 const char *error; local 78 test_assert(fts_filter_create(fts_filter_contractions, NULL, &french_language, NULL, &filter, &error) == 0); 82 ret = fts_filter_filter(filter, &token, &error); 104 const char *error; local 109 test_assert(fts_filter_create(fts_filter_lowercase, NULL, &english_language, NULL, &filter, &error) == 0); 113 test_assert_idx(fts_filter_filter(filter, &token, &error) > 0 && 132 const char *error; local 160 const char *error; local 181 const char *error; local 220 const char *error; local 280 const char *error; local 320 const char *error; local 369 const char *error = NULL, *token = "foobar"; local 384 const char *error = NULL, *token = "foobar"; local 400 const char *error; local 435 const char *error; local 467 const char *error; local 529 const char *error = NULL; local 562 const char *error = NULL; local 588 const char *error = NULL; local 638 const char *error; local 656 const char *token, *error; local 689 const char *error = NULL, *token = "foo"; local 705 const char *error = NULL; local 738 const char *error = NULL; local 758 const char *error; local 813 const char *error; local 875 const char *error; local 959 const char *error = NULL; local [all...] |
/dovecot/src/lib-ntlm/ |
H A D | ntlm-message.h | 9 size_t data_size, const char **error); 11 size_t data_size, const char **error);
|
/dovecot/src/log/ |
H A D | log-error-buffer.c | 4 #include "log-error-buffer.h" 24 struct log_error error; member in struct:log_error_buffer_iter 52 const struct log_error *error) 54 size_t prefix_size = strlen(error->prefix)+1; 55 size_t text_size = strlen(error->text)+1; 64 data->type = error->type; 65 data->timestamp = error->timestamp; 66 memcpy(data->prefix_text, error->prefix, prefix_size); 67 memcpy(data->prefix_text + prefix_size, error->text, text_size); 107 iter->error 51 log_error_buffer_add(struct log_error_buffer *buf, const struct log_error *error) argument [all...] |
H A D | doveadm-connection.c | 8 #include "log-error-buffer.h" 25 const struct log_error *error; local 30 while ((error = log_error_buffer_iter_next(iter)) != NULL) { 33 failure_log_type_names[error->type], 34 (long)error->timestamp); 35 str_append_tabescaped(str, error->prefix); 37 str_append_tabescaped(str, error->text); 54 /* error / finished */
|
/dovecot/src/doveadm/ |
H A D | doveadm-dump-dcrypt-key.c | 22 const char *error = NULL; local 25 bool ret = dcrypt_key_load_public(&pub_key, buf, &error); 27 i_error("dcrypt_key_load_public failed: %s", error); 37 if (!dcrypt_key_id_public(pub_key, "sha256", hash, &error)) { 38 i_error("dcrypt_key_id_public failed: %s", error); 45 if (!dcrypt_key_id_public_old(pub_key, hash, &error)) { 47 error); 60 const char *error = NULL; local 64 &error); 66 i_error("dcrypt_key_load_private failed: %s", error); 121 const char *error; local 203 const char *error = NULL; local [all...] |
/dovecot/src/plugins/mail-crypt/ |
H A D | test-mail-key.c | 133 const char *error; local 159 &test_service_user, &error) < 0) 161 i_error("Cannot lookup test user: %s", error); 177 &test_mail_user, &error) < 0) 179 i_error("Cannot lookup test user: %s", error); 189 const char *error; local 194 &error) < 0) 195 i_error("unlink_directory(%s) failed: %s", mail_home, error); 202 const char *error = NULL; local 208 &pubid, &error) < 238 const char *error = NULL, *pubid = NULL; local 273 const char *error = NULL; local 297 const char *value = "", *error = NULL; local 401 const char *error = NULL; local [all...] |
H A D | mail-crypt-global-key.c | 17 const char *error; local 21 &kind, NULL, NULL, NULL, &error)) { 24 &kind, NULL, NULL, NULL, &error)) { 26 set_key, error); 34 if (!dcrypt_key_load_public(&global_keys->public_key, key_data, &error)) { 36 set_key, error); 47 const char *error; local 55 if (!dcrypt_key_id_private(key, MAIL_CRYPT_KEY_ID_ALGORITHM, key_id, &error)) { 56 *error_r = t_strdup_printf("Failed to get private key ID: %s", error); 67 if (!dcrypt_key_id_private_old(key, key_id, &error)) { 84 const char *error; local [all...] |
/dovecot/src/plugins/var-expand-crypt/ |
H A D | test-var-expand-crypt.c | 48 const char *error; local 50 int ret = var_expand(dest, test_cases[i].input, table, &error); 53 i_info("Expected: var_expand(%s): %s", test_cases[i].input, error); 55 i_error("var_expand(%s): %s", test_cases[i].input, error); 69 const char *error; local 73 test_assert_idx(var_expand(input, "%{encrypt;algo=aes-128-cbc,key=%{key}:decrypted}", table, &error) == 1, i); 75 test_assert_idx(var_expand(output, "%{decrypt;algo=aes-128-cbc,key=%{key}:encrypted2}", table, &error) == 1, i);
|
/dovecot/src/lib-smtp/ |
H A D | smtp-server-cmd-vrfy.c | 16 const char *param, *error; local 20 if ((ret=smtp_string_parse(params, ¶m, &error)) <= 0) { 24 "Invalid string parameter: %s", error); 51 or 500 (Syntax error, command unrecognized) SHOULD be returned. As
|
/dovecot/src/config/ |
H A D | main.c | 19 const char *path, *error; local 32 if (config_parse_file(path, TRUE, NULL, &error) <= 0) 33 i_fatal("%s", error);
|
/dovecot/src/imap/ |
H A D | cmd-close.c | 13 enum mail_error error = MAIL_ERROR_NONE; local 22 errstr = mailbox_get_last_error(mailbox, &error); 23 if (error != MAIL_ERROR_PERM)
|
H A D | cmd-x-state.c | 17 const char *str, *error; 35 state->data, state->used, &error); 39 "NO Failed to restore state: %s", error)); 42 "BAD Broken state: %s", error)); 48 if (!imap_state_export_external(cmd->client, state, &error)) { 50 "NO Can't save state: %s", error));
|
/dovecot/src/lib-dcrypt/ |
H A D | test-crypto.c | 107 const char *error = NULL; local 111 if (!dcrypt_ctx_sym_create("aes-128-gcm", DCRYPT_MODE_ENCRYPT, &ctx, &error)) { 136 test_assert(dcrypt_ctx_sym_init(ctx, &error)); 137 test_assert(dcrypt_ctx_sym_update(ctx, pt->data, pt->used, res, &error)); 138 test_assert(dcrypt_ctx_sym_final(ctx, res, &error)); 146 if (!dcrypt_ctx_sym_create("aes-128-gcm", DCRYPT_MODE_DECRYPT, &ctx, &error)) { 156 test_assert(dcrypt_ctx_sym_init(ctx, &error)); 157 test_assert(dcrypt_ctx_sym_update(ctx, ct->data, ct->used, res, &error)); 158 test_assert(dcrypt_ctx_sym_final(ctx, res, &error)); 203 const char *error local 292 const char *error = NULL; local 335 const char* error = NULL; local 385 const char *error = NULL; local 426 const char *error; local 456 const char *error = NULL; local 479 const char *error = NULL; local 559 const char *error = NULL; local 573 const char *error = NULL; local 601 const char *error = NULL; local 642 const char *error; local 678 const char *error = NULL; local 735 const char *error = NULL; local 758 const char *error; local [all...] |
/dovecot/src/lib-settings/ |
H A D | test-settings-parser.c | 121 const char *error; local 125 test_assert_idx(settings_get_time(tests[i].input, &secs, &error) == 0, i); 128 test_assert_idx(settings_get_time_msecs(tests[i].input, &msecs, &error) == 0, i); 132 test_assert_idx(settings_get_time_msecs(msecs_tests[i].input, &msecs, &error) == 0, i); 136 test_assert_idx(settings_get_time(secs_errors[i], &secs, &error) < 0, i); 138 test_assert_idx(settings_get_time_msecs(msecs_errors[i], &msecs, &error) < 0, i);
|
/dovecot/src/lib-fs/ |
H A D | test-fs-metawrap.c | 18 const char *error; local 23 if (fs_init("metawrap", "test", &fs_set, &fs, &error) < 0) 24 i_fatal("fs_init() failed: %s", error); 58 const char *error; local 61 if (fs_init("metawrap", "test", &fs_set, &fs, &error) < 0) 62 i_fatal("fs_init() failed: %s", error);
|