Skip to content

Commit 69fceb7

Browse files
committed
svnbrowse: Plug in command-line specified parameters into authentication baton.
* subversion/svnbrowse/svnbrowse.c (sub_main): Use those in svn_cmdline_create_auth_baton2(). git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1932868 13f79535-47bb-0310-9956-ffa450edef68
1 parent 0194fca commit 69fceb7

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

subversion/svnbrowse/svnbrowse.c

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,20 @@ sub_main(int *code, int argc, const char *argv[], apr_pool_t *pool)
330330
SVN_ERR(svn_config_ensure(opt_state.config_dir, pool));
331331

332332
/* Set up Authentication stuff. */
333-
SVN_ERR(svn_cmdline_create_auth_baton2(&auth, FALSE, NULL, NULL, NULL, FALSE,
334-
FALSE, FALSE, FALSE, FALSE, FALSE,
335-
NULL, NULL, NULL, pool));
333+
SVN_ERR(svn_cmdline_create_auth_baton2(
334+
&auth,
335+
FALSE /* non_interactive */,
336+
opt_state.auth_username,
337+
opt_state.auth_password,
338+
opt_state.config_dir,
339+
opt_state.no_auth_cache,
340+
opt_state.trust_server_cert_unknown_ca,
341+
opt_state.trust_server_cert_cn_mismatch,
342+
opt_state.trust_server_cert_expired,
343+
opt_state.trust_server_cert_not_yet_valid,
344+
opt_state.trust_server_cert_other_failure,
345+
NULL, NULL, NULL,
346+
pool));
336347

337348
SVN_ERR(svn_client_create_context2(&client, NULL, pool));
338349
client->auth_baton = auth;

0 commit comments

Comments
 (0)