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

Re: Default values for args to svn_cmdline_create_auth_baton

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Sun, 17 Feb 2013 20:30:04 +0200

Ryan Vordermann wrote on Sun, Feb 17, 2013 at 11:13:36 -0700:
> On Sun, Feb 17, 2013 at 2:51 AM, Daniel Shahaf <d.s_at_daniel.shahaf.name> wrote:
> >> On Fri, Feb 1, 2013 at 11:31 AM, Daniel Shahaf <d.s_at_daniel.shahaf.name> wrote:
> >> > Daniel Shahaf wrote on Fri, Feb 01, 2013 at 19:15:04 +0200:
> >> >> > want to support any of the other security features. What are the
> >> >> > appropriate values for the following arguments to this function?
> >> >> >
> >> >> > svn_cmdline_create_auth_baton
> >> >> >
> >> >> > Currently I have this:
> >> >> > svn_boolean_t non_interactive = FALSE;
> >>
> >> >> Basically this is "may prompt". The "plaintext" and "SSL certificate"
> >> >> prompt depend on this.
> >>
> >> OH. Does this part depend a call back then for the prompt?
> >>
> >
> > Your English doesn't parse. Anyway, the code (somewhere in libsvn_subr)
> > will not call the "plaintext prompt" if "non_interactive" is TRUE.
>
> Sorry, what I should have said was, if non-interactive is false, do I
> have the plain
> text prompt (like when providing a message for commits), or is that a
> function somewhere?

If you work at the libsvn_client level, and don't use any svn_cmdline_*
functions, you won't get the default plaintext prompt that svn uses
(becauses that one uses /dev/tty or stderr, and libsvn_client may use
neither of them). I don't recall what's the canonical way to set the
svn_auth_plaintext_prompt_func_t --- whether you should use svn_auth_*
directly, or whether libsvn_client wraps it for you somehow. But I
guess it's the former.
Received on 2013-02-17 19:30:47 CET

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

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