|
Subversion
|
Go to the documentation of this file.
33 #include <apr_pools.h>
34 #include <apr_getopt.h>
36 #ifndef DOXYGEN_SHOULD_SKIP_THIS
37 #define APR_WANT_STDIO
105 __attribute__((format(printf, 2, 3)));
119 __attribute__((format(printf, 3, 4)));
171 const char *config_dir;
193 const char *prompt_str,
205 const char *prompt_str,
219 const char *username,
251 apr_uint32_t failures,
300 const char *realmstring,
313 const char *realmstring,
357 const char *username,
358 const char *password,
359 const char *config_dir,
381 const char *username,
382 const char *password,
383 const char *config_dir,
407 const char *username,
408 const char *password,
409 const char *config_dir,
Subversion's authentication system.
const char * svn_cmdline_output_encoding(apr_pool_t *pool)
Return the name of the output encoding allocated in pool, or APR_LOCALE_CHARSET if the output encodin...
svn_error_t * svn_cmdline_cstring_from_utf8(const char **dest, const char *src, apr_pool_t *pool)
Set *dest to an output-encoded C string from UTF-8 C string src; allocate *dest in pool.
int svn_cmdline_init(const char *progname, FILE *error_stream)
Set up the locale for character conversion, and initialize APR.
svn_error_t * svn_cmdline_auth_plaintext_passphrase_prompt(svn_boolean_t *may_save_plaintext, const char *realmstring, void *baton, apr_pool_t *pool)
An implementation of svn_auth_plaintext_passphrase_prompt_func_t that prompts the user whether storin...
svn_error_t * svn_cmdline_printf(apr_pool_t *pool, const char *fmt,...)
Write to stdout, using a printf-like format string fmt, passed through apr_pvsprintf().
svn_error_t * svn_cmdline_auth_ssl_server_trust_prompt(svn_auth_cred_ssl_server_trust_t **cred_p, void *baton, const char *realm, apr_uint32_t failures, const svn_auth_ssl_server_cert_info_t *cert_info, svn_boolean_t may_save, apr_pool_t *pool)
An implementation of svn_auth_ssl_server_trust_prompt_func_t that asks the user if they trust a speci...
svn_error_t * svn_cmdline_path_local_style_from_utf8(const char **dest, const char *src, apr_pool_t *pool)
Set *dest to an output-encoded natively-formatted path string from canonical path src; allocate *dest...
svn_error_t * svn_cmdline_prompt_user2(const char **result, const char *prompt_str, svn_cmdline_prompt_baton_t *baton, apr_pool_t *pool)
Prompt the user for input, using prompt_str for the prompt and baton (which may be NULL) for cancella...
const char * svn_cmdline_cstring_from_utf8_fuzzy(const char *src, apr_pool_t *pool)
Like svn_utf_cstring_from_utf8_fuzzy(), but converts to an output-encoded C string.
svn_error_t * svn_cmdline_prompt_user(const char **result, const char *prompt_str, apr_pool_t *pool)
Similar to svn_cmdline_prompt_user2, but without cancellation support.
svn_error_t * svn_cmdline_fflush(FILE *stream)
Flush output buffers of the stdio stream, returning an error if that fails.
svn_error_t * svn_cmdline_cstring_to_utf8(const char **dest, const char *src, apr_pool_t *pool)
Set *dest to a UTF-8-encoded C string from input-encoded C string src; allocate *dest in pool.
svn_error_t * svn_cmdline_auth_ssl_client_cert_prompt(svn_auth_cred_ssl_client_cert_t **cred_p, void *baton, const char *realm, svn_boolean_t may_save, apr_pool_t *pool)
An implementation of svn_auth_ssl_client_cert_prompt_func_t that prompts the user for the filename of...
Like svn_cmdline_prompt_baton2_t, but without the path to the configuration directory.
svn_error_t * svn_cmdline_auth_simple_prompt(svn_auth_cred_simple_t **cred_p, void *baton, const char *realm, const char *username, svn_boolean_t may_save, apr_pool_t *pool)
An implementation of svn_auth_simple_prompt_func_t that prompts the user for keyboard input on the co...
SVN_AUTH_CRED_SSL_SERVER_TRUST credentials.
struct svn_cmdline_prompt_baton2_t svn_cmdline_prompt_baton2_t
A prompt function/baton pair, and the path to the configuration directory.
svn_error_t * svn_cmdline_fprintf(FILE *stream, apr_pool_t *pool, const char *fmt,...)
Write to the stdio stream, using a printf-like format string fmt, passed through apr_pvsprintf().
struct svn_config_t svn_config_t
Opaque structure describing a set of configuration options.
SVN_AUTH_CRED_SIMPLE credentials.
int svn_cmdline_handle_exit_error(svn_error_t *error, apr_pool_t *pool, const char *prefix)
Handle error in preparation for immediate exit from a command-line client.
Accessing SVN configuration files.
svn_error_t * svn_cmdline_auth_username_prompt(svn_auth_cred_username_t **cred_p, void *baton, const char *realm, svn_boolean_t may_save, apr_pool_t *pool)
An implementation of svn_auth_username_prompt_func_t that prompts the user for their username via the...
svn_error_t * svn_cmdline_auth_ssl_client_cert_pw_prompt(svn_auth_cred_ssl_client_cert_pw_t **cred_p, void *baton, const char *realm, svn_boolean_t may_save, apr_pool_t *pool)
An implementation of svn_auth_ssl_client_cert_pw_prompt_func_t that prompts the user for their SSL ce...
svn_error_t * svn_cmdline_create_auth_baton2(svn_auth_baton_t **ab, svn_boolean_t non_interactive, const char *username, const char *password, const char *config_dir, svn_boolean_t no_auth_cache, svn_boolean_t trust_server_cert_unknown_ca, svn_boolean_t trust_server_cert_cn_mismatch, svn_boolean_t trust_server_cert_expired, svn_boolean_t trust_server_cert_not_yet_valid, svn_boolean_t trust_server_cert_other_failure, svn_config_t *cfg, svn_cancel_func_t cancel_func, void *cancel_baton, apr_pool_t *pool)
Set *ab to an authentication baton allocated from pool and initialized with the standard set of authe...
SVN_AUTH_CRED_SSL_CLIENT_CERT_PW credentials.
svn_error_t * svn_cmdline_setup_auth_baton(svn_auth_baton_t **ab, svn_boolean_t non_interactive, const char *username, const char *password, const char *config_dir, svn_boolean_t no_auth_cache, svn_config_t *cfg, svn_cancel_func_t cancel_func, void *cancel_baton, apr_pool_t *pool)
Similar to svn_cmdline_create_auth_baton(), but with trust_server_cert always set to false.
SVN_AUTH_CRED_USERNAME credentials.
int svn_boolean_t
YABT: Yet Another Boolean Type.
#define SVN_DEPRECATED
Macro used to mark deprecated functions.
svn_error_t * svn_cmdline_fputs(const char *string, FILE *stream, apr_pool_t *pool)
Output the string to the stdio stream, converting from UTF-8 to the output encoding.
svn_error_t *(* svn_cancel_func_t)(void *cancel_baton)
A user defined callback that subversion will call with a user defined baton to see if the current ope...
struct svn_cmdline_prompt_baton_t svn_cmdline_prompt_baton_t
Like svn_cmdline_prompt_baton2_t, but without the path to the configuration directory.
A prompt function/baton pair, and the path to the configuration directory.
struct svn_auth_baton_t svn_auth_baton_t
The type of a Subversion authentication object.
SSL server certificate information used by SVN_AUTH_CRED_SSL_SERVER_TRUST providers.
svn_error_t * svn_cmdline_auth_plaintext_prompt(svn_boolean_t *may_save_plaintext, const char *realmstring, void *baton, apr_pool_t *pool)
An implementation of svn_auth_plaintext_prompt_func_t that prompts the user whether storing unencrypt...
SVN_AUTH_CRED_SSL_CLIENT_CERT credentials.