diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-08-05 16:22:51 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-08-05 16:22:51 +0000 |
commit | cf46733632c7279a9fd0fe6ce26f9185a4ae82a9 (patch) | |
tree | da27775a2161723ef342e91af41a8b51fedef405 /subversion/libsvn_subr/username_providers.c | |
parent | bb0ef45f7c46b0ae221b26265ef98a768c33f820 (diff) | |
download | subversion-tarball-master.tar.gz |
subversion-1.9.7HEADsubversion-1.9.7master
Diffstat (limited to 'subversion/libsvn_subr/username_providers.c')
-rw-r--r-- | subversion/libsvn_subr/username_providers.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/subversion/libsvn_subr/username_providers.c b/subversion/libsvn_subr/username_providers.c index a6ef5b3..7a4095b 100644 --- a/subversion/libsvn_subr/username_providers.c +++ b/subversion/libsvn_subr/username_providers.c @@ -40,12 +40,6 @@ /* File provider */ /*-----------------------------------------------------------------------*/ -/* The key that will be stored on disk. Serves the same role as similar - constants in other providers. */ -#define AUTHN_USERNAME_KEY "username" - - - /*** Username-only Provider ***/ static svn_error_t * username_first_creds(void **credentials, @@ -77,7 +71,8 @@ username_first_creds(void **credentials, svn_error_clear(err); if (! err && creds_hash) { - svn_string_t *str = svn_hash_gets(creds_hash, AUTHN_USERNAME_KEY); + svn_string_t *str = svn_hash_gets(creds_hash, + SVN_CONFIG_AUTHN_USERNAME_KEY); if (str && str->data) username = str->data; } @@ -125,7 +120,7 @@ username_save_creds(svn_boolean_t *saved, /* Put the credentials in a hash and save it to disk */ creds_hash = apr_hash_make(pool); - svn_hash_sets(creds_hash, AUTHN_USERNAME_KEY, + svn_hash_sets(creds_hash, SVN_CONFIG_AUTHN_USERNAME_KEY, svn_string_create(creds->username, pool)); err = svn_config_write_auth_data(creds_hash, SVN_AUTH_CRED_USERNAME, realmstring, config_dir, pool); |