[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] add svn_config_clear_auth_data

From: Kouhei Sutou <kou_at_cozmixng.org>
Date: 2005-07-24 07:58:32 CEST

Hi,

In <06b601c58ec5$aff11100$5308a8c0@chimaera>
  "Re: [PATCH] add svn_config_clear_auth_data" on Fri, 22 Jul 2005 15:00:14 +0100,
  "Max Bowsher" <maxb@ukf.net> wrote:

> A simple "clear all" API doesn't seem particularly useful.
>
> For the purposes of testing, I suggest just removing the auth cache files.

I have wanted to do that in first. But an auth cache file
name generation API is not public. (Yes, I can remove auth
cache directory.) So I request clear an auth cache API.

> APIs to enumerate and selectively delete auth cache entries might be
> interesting, though...

Selectively deleting can be done with current APIs.

  apr_hash_t *hash;
  svn_config_read_auth_data (&hash, cred_kind, realmstring, config_dir, pool);
  apr_hash_set (hash, "KEY", APR_HASH_KEY_STRING, NULL);
  svn_config_write_auth_data (hash, cred_kind, realmstring, config_dir, pool);

By the way, what about the test script of
svn_config_read_auth_data() and
svn_config_write_auth_data()? The test script is included
in the attached patch of the previous mail.

Thanks,

--
kou
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jul 24 07:59:42 2005

This is an archived mail posted to the Subversion Dev mailing list.