320
320
* by the command line client.
322
322
* @a non_interactive, @a username, @a password, @a config_dir,
323
* @a no_auth_cache, and @a trust_server_cert are the values of the
324
* command line options of the corresponding names.
323
* and @a no_auth_cache are the values of the command line options
324
* of the corresponding names.
326
* If @a non_interactive is @c TRUE, then the following parameters
327
* control whether an invalid SSL certificate will be accepted
328
* regardless of a specific verification failure:
330
* @a trust_server_cert_unknown_ca: If @c TRUE, accept certificates
331
* from unknown certificate authorities.
333
* @a trust_server_cert_cn_mismatch: If @c TRUE, accept certificates
334
* even if the Common Name attribute of the certificate differs from
335
* the hostname of the server.
337
* @a trust_server_cert_expired: If @c TRUE, accept certificates even
338
* if they are expired.
340
* @a trust_server_cert_not_yet_valid: If @c TRUE, accept certificates
343
* @a trust_server_cert_other_failure: If @c TRUE, accept certificates
344
* even if any other verification failure than the above occured.
326
346
* @a cfg is the @c SVN_CONFIG_CATEGORY_CONFIG configuration, and
327
347
* @a cancel_func and @a cancel_baton control the cancellation of the
330
350
* Use @a pool for all allocations.
355
svn_cmdline_create_auth_baton2(svn_auth_baton_t **ab,
356
svn_boolean_t non_interactive,
357
const char *username,
358
const char *password,
359
const char *config_dir,
360
svn_boolean_t no_auth_cache,
361
svn_boolean_t trust_server_cert_unknown_ca,
362
svn_boolean_t trust_server_cert_cn_mismatch,
363
svn_boolean_t trust_server_cert_expired,
364
svn_boolean_t trust_server_cert_not_yet_valid,
365
svn_boolean_t trust_server_cert_other_failure,
367
svn_cancel_func_t cancel_func,
371
/* Like svn_cmdline_create_auth_baton2, but with only one trust_server_cert
372
* option which corresponds to trust_server_cert_unknown_ca.
374
* @deprecated Provided for backward compatibility with the 1.8 API.
332
375
* @since New in 1.6.