Hi again! Ryan Vordermann wrote on Thu, Jan 31, 2013 at 13:01:19 -0700: > Hi, > > My name is Ryan. I'm not subscribed to this list so I would appreciate > being CC'ed on responses > > I'm working on a utility that uses the svn client api. Right now it works, > but I want to add support for usernames and passwords. I do not (yet)
Have a look at subversion/tests/cmdline/atomic-ra-revprop-change.c . It supports exactly providing a (single, known-in-advance) username/password pair. > 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. > const char *config_dir = NULL; > svn_boolean_t no_auth_cache = FALSE; > svn_boolean_t trust_server_cert = FALSE; Like the corresponding arguments to the cmdline binary. > svn_config_t *cfg_config = NULL; > That's the parsed "config" file from CONFIG_DIR. I'm not quite sure why we have both this and 'const char *config_dir'. (Also, where do you see the name "cfg_config"? It's called "cfg" at the declaration and definition, in trunk.) > Which so far works, but I was just taking a WAG. > Did you read the API documentation? Was it not clear? > Thanks in advance, > Ryan Vordermann