Lines Matching defs:cur_key
27 struct db_dict_key *cur_key;
117 ctx->cur_key = array_append_space(&ctx->conn->set.keys);
118 *ctx->cur_key = default_key_settings;
119 ctx->cur_key->name = "passdb";
120 ctx->cur_key->format = "json";
121 ctx->cur_key->parsed_format = DB_DICT_VALUE_FORMAT_JSON;
122 ctx->cur_key->key = p_strdup(ctx->conn->pool, value);
124 dbkey = ctx->cur_key;
131 ctx->cur_key = array_append_space(&ctx->conn->set.keys);
132 *ctx->cur_key = default_key_settings;
133 ctx->cur_key->name = "userdb";
134 ctx->cur_key->format = "json";
135 ctx->cur_key->parsed_format = DB_DICT_VALUE_FORMAT_JSON;
136 ctx->cur_key->key = p_strdup(ctx->conn->pool, value);
138 dbkey = ctx->cur_key;
167 ctx->cur_key, key, value);
188 if (ctx->cur_key != NULL) {
189 if (strcmp(ctx->cur_key->format, "value") == 0) {
190 ctx->cur_key->parsed_format =
192 } else if (strcmp(ctx->cur_key->format, "json") == 0) {
193 ctx->cur_key->parsed_format =
197 ctx->cur_key->format, NULL);
201 ctx->cur_key = NULL;
218 ctx->cur_key = array_append_space(&ctx->conn->set.keys);
219 *ctx->cur_key = default_key_settings;
220 ctx->cur_key->name = p_strdup(ctx->conn->pool, name);