diff --git a/nmap-update/nmap-update.c b/nmap-update/nmap-update.c index e53e637f9..d3606c343 100644 --- a/nmap-update/nmap-update.c +++ b/nmap-update/nmap-update.c @@ -37,6 +37,20 @@ #include #endif +/* From svn_auth.c. */ +svn_error_t * +nmap_update_svn_cmdline_create_auth_baton(svn_auth_baton_t **ab, + svn_boolean_t non_interactive, + const char *auth_username, + const char *auth_password, + const char *config_dir, + svn_boolean_t no_auth_cache, + svn_boolean_t trust_server_cert, + svn_config_t *cfg, + svn_cancel_func_t cancel_func, + void *cancel_baton, + apr_pool_t *pool); + #include "default_channel.h" #ifdef WIN32 @@ -866,7 +880,7 @@ static svn_error_t *checkout_svn(const char *url, const char *path) APR_HASH_KEY_STRING); svn_config_set_bool(cfg, SVN_CONFIG_SECTION_GLOBAL, SVN_CONFIG_OPTION_SSL_TRUST_DEFAULT_CA, TRUE); - svn_cmdline_create_auth_baton(&ctx->auth_baton, + nmap_update_svn_cmdline_create_auth_baton(&ctx->auth_baton, FALSE, /* non_interactive */ options.username, /* username */ options.password, /* password */ diff --git a/nmap-update/nmap-update.vcxproj b/nmap-update/nmap-update.vcxproj index 091c54652..c25226c05 100755 --- a/nmap-update/nmap-update.vcxproj +++ b/nmap-update/nmap-update.vcxproj @@ -12,6 +12,7 @@ + {BBF27339-C7B6-4F52-B742-897796C1F13B} diff --git a/nmap-update/svn_auth.c b/nmap-update/svn_auth.c index cbc959d7e..2b489650d 100644 --- a/nmap-update/svn_auth.c +++ b/nmap-update/svn_auth.c @@ -11,7 +11,10 @@ These changes have been made (set off with #if 0): * Made trust_server_cert always false in svn_cmdline_create_auth_baton. (This is only to avoid having to also copy in ssl_trust_unknown_server_cert.) - * Disabled username guessing in prompt_for_simple_creds. */ + * Disabled username guessing in prompt_for_simple_creds. + * Made svn_auth_get_simple_prompt_provider have static scope. + * Renamed svn_cmdline_create_auth_baton to + nmap_update_svn_cmdline_create_auth_baton. */ /* * ==================================================================== @@ -233,7 +236,7 @@ static const svn_auth_provider_t simple_prompt_provider = { /* Public API */ -void +static void svn_auth_get_simple_prompt_provider (svn_auth_provider_object_t **provider, svn_auth_simple_prompt_func_t prompt_func, @@ -254,7 +257,7 @@ svn_auth_get_simple_prompt_provider } svn_error_t * -svn_cmdline_create_auth_baton(svn_auth_baton_t **ab, +nmap_update_svn_cmdline_create_auth_baton(svn_auth_baton_t **ab, svn_boolean_t non_interactive, const char *auth_username, const char *auth_password,