subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Shahaf <...@daniel.shahaf.name>
Subject Re: Default values for args to svn_cmdline_create_auth_baton
Date Sun, 17 Feb 2013 18:30:04 GMT
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@daniel.shahaf.name> wrote:
> >> On Fri, Feb 1, 2013 at 11:31 AM, Daniel Shahaf <d.s@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.

Mime
View raw message