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

Question about svn_client_get_ssl_*_prompt_provider

From: Alexander Mueller <XelaRellum_at_web.de>
Date: 2003-07-31 09:15:55 CEST

This function is used to register a callback that will be called for
interactive feedback and questions.

One example:
a callback function foo that was registered via
svn_client_get_ssl_server_prompt_provider will be called if the server
ceritificate could not be verified. ("Error validating server
certificate: Unknown certificate issuer. Accept? (y/N):").

The solution of asking a question and then expecting a string with an
answer might be appropriate for a command line client, but its really
dirty when you are trying to build a GUI client. The workaround for
now is just to ask the question and let the user input a string. What
I would prefer a different/additional interface that handles this kind
of prompts:

typedef svn_error_t *
(*svn_client_prompt_opt_t) (const int *answer,
                             const char *prompt,
                             int options,
                             void *baton,
                             apr_pool_t *pool);

Options could be a bitfield of valid options:
   yes
   no
   abort
   continue
   retry

And whatever else.

Xela

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jul 31 17:01:56 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.