Lines Matching refs:pool
108 static svn_error_t *initialize(void *baton, apr_pool_t *pool)
111 SVN_ERR(svn_ra_svn__sasl_common_init(pool));
126 svn_error_t *cyrus_init(apr_pool_t *pool)
129 initialize, NULL, pool));
136 fail_auth(svn_ra_svn_conn_t *conn, apr_pool_t *pool, sasl_conn_t *sasl_ctx)
139 SVN_ERR(svn_ra_svn__write_tuple(conn, pool, "w(c)", "failure", msg));
140 return svn_ra_svn__flush(conn, pool);
146 write_failure(svn_ra_svn_conn_t *conn, apr_pool_t *pool, svn_error_t **err_p)
148 svn_error_t *write_err = svn_ra_svn__write_cmd_failure(conn, pool, *err_p);
156 fail_cmd(svn_ra_svn_conn_t *conn, apr_pool_t *pool, sasl_conn_t *sasl_ctx)
160 SVN_ERR(write_failure(conn, pool, &err));
161 return svn_ra_svn__flush(conn, pool);
166 apr_pool_t *pool,
179 SVN_ERR(svn_ra_svn__read_tuple(conn, pool, "w(?s)", &mech, &in));
182 in = svn_string_create(b->client_info->tunnel_user, pool);
184 in = svn_base64_decode_string(in, pool);
200 return fail_auth(conn, pool, sasl_ctx);
206 arg = svn_string_ncreate(out, outlen, pool);
209 arg = svn_base64_encode_string2(arg, TRUE, pool);
211 SVN_ERR(svn_ra_svn__write_tuple(conn, pool, "w(s)", "step", arg));
214 SVN_ERR(svn_ra_svn__read_item(conn, pool, &item));
220 in = svn_base64_decode_string(in, pool);
231 return fail_auth(conn, pool, sasl_ctx);
235 arg = svn_base64_encode_string2(svn_string_ncreate(out, outlen, pool), TRUE,
236 pool);
241 SVN_ERR(svn_ra_svn__write_tuple(conn, pool, "w(?s)", "success", arg));
254 apr_pool_t *pool,
270 conn, pool));
271 apr_err = apr_gethostname(hostname, sizeof(hostname), pool);
275 SVN_ERR(write_failure(conn, pool, &err));
276 return svn_ra_svn__flush(conn, pool);
290 SVN_ERR(write_failure(conn, pool, &err));
291 return svn_ra_svn__flush(conn, pool);
295 apr_pool_cleanup_register(b->pool, sasl_ctx, sasl_dispose_cb,
312 return fail_cmd(conn, pool, sasl_ctx);
319 return fail_cmd(conn, pool, sasl_ctx);
326 return fail_cmd(conn, pool, sasl_ctx);
333 SVN_ERR(write_failure(conn, pool, &err));
334 return svn_ra_svn__flush(conn, pool);
338 SVN_ERR(svn_ra_svn__write_cmd_response(conn, pool, "(w)c",
342 subpool = svn_pool_create(pool);
351 SVN_ERR(svn_ra_svn__enable_sasl_encryption(conn, sasl_ctx, pool));
362 return fail_cmd(conn, pool, sasl_ctx);
367 b->client_info->user = apr_pstrndup(b->pool, user,
376 SVN_ERR(write_failure(conn, pool, &err));
377 return svn_ra_svn__flush(conn, pool);