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

Re: Semantics of svn_auth_save_credentials?

From: <gstein_at_lyra.org>
Date: 2003-01-24 19:22:20 CET

On Thu, Jan 23, 2003 at 09:46:42PM -0800, Justin Erenkrantz wrote:
...
 I have to say that the implied semantics trouble me. Exactly what
 provider should 'save' a particular credential? The first provider?
 All of them?

The first one that saves it. Presumably, that implies that on a read, it
will be the early one that responds with the credentials.

 I'd also suggest that a provider be allowed to have a NULL function
 pointer to save_credentials rather than implement a stub that returns
 false. That makes it much easier for providers - a little more work
 for the caller perhaps. -- justin

Yup.

We talked about that, along with a NULL func ptr for next. Many providers
will only have a single set of credentials, so it is a bit silly to
implement a next that only returns NULL.

(this is also the reason why I conflated get-iterator and the first call to
 the iterator; get-first-cred performs those two, then you have NULL for the
 next func)

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 14 02:14:43 2006

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