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

Re: svn commit: rev 4685 - in trunk/subversion: include libsvn_wc libsvn_client libsvn_auth

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-01-31 23:46:30 CET

Greg Stein <gstein@lyra.org> writes:

> On Fri, Jan 31, 2003 at 04:11:20PM -0600, Ben Collins-Sussman wrote:
> >...
> > * To enforce this policy, delete our svn_auth_register_provider()
> > interface. Instead, when the application calls svn_auth_open(),
> > it will pass it a static array of providers, ordered exactly the
> > way it wants. This prevents any future layers from registering
> > providers later on: the ordered providers are attached to the
> > auth_baton at birth.
>
> More than likely, apps will do something like this:
>
> svn_auth.h:
> typedef struct {
> svn_auth_provider_t *provider;
> void *baton;
> };

Oh, you mean like this existing code? We just need to make it public. :-)

/* A provider object. */
typedef struct
{
  const svn_auth_provider_t *vtable;
  void *provider_baton;

} provider_t;

> > * provider implementations will look for specific runtime params
> > in the hash that they need; if not present, they simply
> > fail to return credentials (return NULL). (and obviously,
> > each provider will document what runtime params it needs.)
>
> And the providers doc these in their header.

Right, like I said above:

  (and obviously, each provider will document what runtime params it needs.)

;-)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 31 23:49:50 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.