00001 /** 00002 * @copyright 00003 * ==================================================================== 00004 * Copyright (c) 2000-2004 CollabNet. All rights reserved. 00005 * 00006 * This software is licensed as described in the file COPYING, which 00007 * you should have received as part of this distribution. The terms 00008 * are also available at http://subversion.tigris.org/license-1.html. 00009 * If newer versions of this license are posted there, you may use a 00010 * newer version instead, at your option. 00011 * 00012 * This software consists of voluntary contributions made by many 00013 * individuals. For exact contribution history, see the revision 00014 * history and logs, available at http://subversion.tigris.org/. 00015 * ==================================================================== 00016 * @endcopyright 00017 * 00018 * @file svn_auth.h 00019 * @brief Interface to Subversion authentication system 00020 */ 00021 00022 #ifndef SVN_AUTH_H 00023 #define SVN_AUTH_H 00024 00025 #include <apr_pools.h> 00026 00027 #include "svn_types.h" 00028 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif /* __cplusplus */ 00032 00033 /** Overview of the svn authentication system. 00034 * 00035 * We define an authentication "provider" as a module that is able to 00036 * return a specific set of credentials. (e.g. username/password, 00037 * certificate, etc.) Each provider implements a vtable that 00038 * 00039 * - can fetch initial credentials 00040 * - can retry the fetch (or try to fetch something different) 00041 * - can store the credentials for future use 00042 * 00043 * For any given type of credentials, there can exist any number of 00044 * separate providers -- each provider has a different method of 00045 * fetching. (i.e. from a disk store, by prompting the user, etc.) 00046 * 00047 * The application begins by creating an auth baton object, and 00048 * "registers" some number of providers with the auth baton, in a 00049 * specific order. (For example, it may first register a 00050 * username/password provider that looks in disk store, then register 00051 * a username/password provider that prompts the user.) 00052 * 00053 * Later on, when any svn library is challenged, it asks the auth 00054 * baton for the specific credentials. If the initial credentials 00055 * fail to authenticate, the caller keeps requesting new credentials. 00056 * Under the hood, libsvn_auth effectively "walks" over each provider 00057 * (in order of registry), one at a time, until all the providers have 00058 * exhausted all their retry options. 00059 * 00060 * This system allows an application to flexibly define authentication 00061 * behaviors (by changing registration order), and very easily write 00062 * new authentication providers. 00063 * 00064 * An auth_baton also contains an internal hashtable of run-time 00065 * parameters; any provider or library layer can set these run-time 00066 * parameters at any time, so that the provider has access to the 00067 * data. (For example, certain run-time data may not be available 00068 * until an authentication challenge is made.) Each credential type 00069 * must document the run-time parameters that are made available to 00070 * its providers. 00071 * 00072 * @defgroup auth_fns authentication functions 00073 * @{ 00074 */ 00075 00076 00077 /** The type of a Subversion authentication object */ 00078 typedef struct svn_auth_baton_t svn_auth_baton_t; 00079 00080 /** The type of a Subversion authentication-iteration object */ 00081 typedef struct svn_auth_iterstate_t svn_auth_iterstate_t; 00082 00083 00084 /** The main authentication "provider" vtable. */ 00085 typedef struct svn_auth_provider_t 00086 { 00087 /** The kind of credentials this provider knows how to retrieve. */ 00088 const char *cred_kind; 00089 00090 /** Get an initial set of credentials. 00091 * 00092 * Set @a *credentials to a set of valid credentials within @a 00093 * realmstring, or NULL if no credentials are available. Set @a 00094 * *iter_baton to context that allows a subsequent call to @c 00095 * next_credentials, in case the first credentials fail to 00096 * authenticate. @a provider_baton is general context for the 00097 * vtable, @a parameters contains any run-time data that the 00098 * provider may need, and @a realmstring comes from the @c 00099 * svn_auth_first_credentials call. 00100 */ 00101 svn_error_t * (*first_credentials) (void **credentials, 00102 void **iter_baton, 00103 void *provider_baton, 00104 apr_hash_t *parameters, 00105 const char *realmstring, 00106 apr_pool_t *pool); 00107 00108 /** Get a different set of credentials. 00109 * 00110 * Set @a *credentials to another set of valid credentials, (using 00111 * @a iter_baton as the context from previous call to first_credentials 00112 * or next_credentials). If no more credentials are available, set 00113 * @a **credentials to NULL. If the provider only has one set of 00114 * credentials, this function pointer should simply be NULL. @a 00115 * provider_baton is general context for the vtable, @a parameters 00116 * contains any run-time data that the provider may need, and @a 00117 * realmstring comes from the @c svn_auth_first_credentials call. 00118 */ 00119 svn_error_t * (*next_credentials) (void **credentials, 00120 void *iter_baton, 00121 void *provider_baton, 00122 apr_hash_t *parameters, 00123 const char *realmstring, 00124 apr_pool_t *pool); 00125 00126 /** Save credentials. 00127 * 00128 * Store @a credentials for future use. @a provider_baton is 00129 * general context for the vtable, and @a parameters contains any 00130 * run-time data the provider may need. Set @a *saved to true if 00131 * the save happened, or false if not. The provider is not required 00132 * to save; if it refuses or is unable to save for non-fatal 00133 * reasons, return false. If the provider never saves data, then 00134 * this function pointer should simply be NULL. @a realmstring comes 00135 * from the @c svn_auth_first_credentials call. 00136 */ 00137 svn_error_t * (*save_credentials) (svn_boolean_t *saved, 00138 void *credentials, 00139 void *provider_baton, 00140 apr_hash_t *parameters, 00141 const char *realmstring, 00142 apr_pool_t *pool); 00143 00144 } svn_auth_provider_t; 00145 00146 00147 /** A provider object, ready to be put into an array and given to 00148 @c svn_auth_open. */ 00149 typedef struct svn_auth_provider_object_t 00150 { 00151 const svn_auth_provider_t *vtable; 00152 void *provider_baton; 00153 00154 } svn_auth_provider_object_t; 00155 00156 00157 00158 /** Specific types of credentials **/ 00159 00160 /** Simple username/password pair credential kind. 00161 * 00162 * The following auth parameters may be available to the providers: 00163 * 00164 * - @c SVN_AUTH_PARAM_NO_AUTH_CACHE (@c void*) 00165 * - @c SVN_AUTH_PARAM_DEFAULT_USERNAME (@c char*) 00166 * - @c SVN_AUTH_PARAM_DEFAULT_PASSWORD (@c char*) 00167 */ 00168 #define SVN_AUTH_CRED_SIMPLE "svn.simple" 00169 00170 /** @c SVN_AUTH_CRED_SIMPLE credentials. */ 00171 typedef struct svn_auth_cred_simple_t 00172 { 00173 /** Username */ 00174 const char *username; 00175 /** Password */ 00176 const char *password; 00177 /** Indicates if the credentials may be saved (to disk). For example, a 00178 * GUI prompt implementation with a remember password checkbox shall set 00179 * @a may_save to TRUE if the checkbox is checked. 00180 */ 00181 svn_boolean_t may_save; 00182 } svn_auth_cred_simple_t; 00183 00184 00185 /** Username credential kind. 00186 * 00187 * The following optional auth parameters are relevant to the providers: 00188 * 00189 * - @c SVN_AUTH_PARAM_NO_AUTH_CACHE (@c void*) 00190 * - @c SVN_AUTH_PARAM_DEFAULT_USERNAME (@c char*) 00191 */ 00192 #define SVN_AUTH_CRED_USERNAME "svn.username" 00193 00194 /** @c SVN_AUTH_CRED_USERNAME credentials. */ 00195 typedef struct svn_auth_cred_username_t 00196 { 00197 /** Username */ 00198 const char *username; 00199 /** Indicates if the credentials may be saved (to disk). For example, a 00200 * GUI prompt implementation with a remember username checkbox shall set 00201 * @a may_save to TRUE if the checkbox is checked. 00202 */ 00203 svn_boolean_t may_save; 00204 } svn_auth_cred_username_t; 00205 00206 00207 /** SSL client certificate credential type. 00208 * 00209 * The following auth parameters are available to the providers: 00210 * 00211 * - @c SVN_AUTH_PARAM_CONFIG (@c svn_config_t*) 00212 * - @c SVN_AUTH_PARAM_SERVER_GROUP (@c char*) 00213 * 00214 * The following optional auth parameters are relevant to the providers: 00215 * 00216 * - @c SVN_AUTH_PARAM_NO_AUTH_CACHE (@c void*) 00217 */ 00218 #define SVN_AUTH_CRED_SSL_CLIENT_CERT "svn.ssl.client-cert" 00219 00220 /** @c SVN_AUTH_CRED_SSL_CLIENT_CERT credentials. */ 00221 typedef struct svn_auth_cred_ssl_client_cert_t 00222 { 00223 /** Full paths to the certificate file */ 00224 const char *cert_file; 00225 /** Indicates if the credentials may be saved (to disk). For example, a 00226 * GUI prompt implementation with a remember certificate checkbox shall 00227 * set @a may_save to TRUE if the checkbox is checked. 00228 */ 00229 svn_boolean_t may_save; 00230 } svn_auth_cred_ssl_client_cert_t; 00231 00232 00233 /** SSL client certificate passphrase credential type. 00234 * 00235 * @note The realmstring used with this credential type must be a name that 00236 * makes it possible for the user to identify the certificate. 00237 * 00238 * The following auth parameters are available to the providers: 00239 * 00240 * - @c SVN_AUTH_PARAM_CONFIG (@c svn_config_t*) 00241 * - @c SVN_AUTH_PARAM_SERVER_GROUP (@c char*) 00242 * 00243 * The following optional auth parameters are relevant to the providers: 00244 * 00245 * - @c SVN_AUTH_PARAM_NO_AUTH_CACHE (@c void*) 00246 */ 00247 #define SVN_AUTH_CRED_SSL_CLIENT_CERT_PW "svn.ssl.client-passphrase" 00248 00249 /** @c SVN_AUTH_CRED_SSL_CLIENT_CERT_PW crentials. */ 00250 typedef struct svn_auth_cred_ssl_client_cert_pw_t 00251 { 00252 /** Certificate password */ 00253 const char *password; 00254 /** Indicates if the credentials may be saved (to disk). For example, a 00255 * GUI prompt implementation with a remember password checkbox shall set 00256 * @a may_save to TRUE if the checkbox is checked. 00257 */ 00258 svn_boolean_t may_save; 00259 } svn_auth_cred_ssl_client_cert_pw_t; 00260 00261 00262 /** SSL server verification credential type. 00263 * 00264 * The following auth parameters are available to the providers: 00265 * 00266 * - @c SVN_AUTH_PARAM_CONFIG (@c svn_config_t*) 00267 * - @c SVN_AUTH_PARAM_SERVER_GROUP (@c char*) 00268 * - @c SVN_AUTH_PARAM_SSL_SERVER_FAILURES (@c apr_uint32_t*) 00269 * - @c SVN_AUTH_PARAM_SSL_SERVER_CERT_INFO 00270 * (@c svn_auth_ssl_server_cert_info_t*) 00271 * 00272 * The following optional auth parameters are relevant to the providers: 00273 * 00274 * - @c SVN_AUTH_PARAM_NO_AUTH_CACHE (@c void*) 00275 */ 00276 #define SVN_AUTH_CRED_SSL_SERVER_TRUST "svn.ssl.server" 00277 00278 /** SSL server certificate information used by @c 00279 * SVN_AUTH_CRED_SSL_SERVER_TRUST providers. 00280 */ 00281 typedef struct svn_auth_ssl_server_cert_info_t 00282 { 00283 /** Primary CN */ 00284 const char *hostname; 00285 /** ASCII fingerprint */ 00286 const char *fingerprint; 00287 /** ASCII date from which the certificate is valid */ 00288 const char *valid_from; 00289 /** ASCII date until which the certificate is valid */ 00290 const char *valid_until; 00291 /** DN of the certificate issuer */ 00292 const char *issuer_dname; 00293 /** Base-64 encoded DER certificate representation */ 00294 const char *ascii_cert; 00295 } svn_auth_ssl_server_cert_info_t; 00296 00297 /** @c SVN_AUTH_CRED_SSL_SERVER_TRUST credentials. */ 00298 typedef struct svn_auth_cred_ssl_server_trust_t 00299 { 00300 /** Indicates if the credentials may be saved (to disk). For example, a 00301 * GUI prompt implementation with a checkbox to accept the certificate 00302 * permanently shall set @a may_save to TRUE if the checkbox is checked. 00303 */ 00304 svn_boolean_t may_save; 00305 /** Bit mask of the accepted failures */ 00306 apr_uint32_t accepted_failures; 00307 } svn_auth_cred_ssl_server_trust_t; 00308 00309 00310 00311 /** Credential-constructing prompt functions. **/ 00312 00313 /** These exist so that different client applications can use 00314 * different prompt mechanisms to supply the same credentials. For 00315 * example, if authentication requires a username and password, a 00316 * command-line client's prompting function might prompt first for the 00317 * username and then for the password, whereas a GUI client's would 00318 * present a single dialog box asking for both, and a telepathic 00319 * client's would read all the information directly from the user's 00320 * mind. All these prompting functions return the same type of 00321 * credential, but the information used to construct the credential is 00322 * gathered in an interface-specific way in each case. 00323 */ 00324 00325 /** Set @a *cred by prompting the user, allocating @a *cred in @a pool. 00326 * @a baton is an implementation-specific closure. 00327 * 00328 * If @a realm is non-null, maybe use it in the prompt string. 00329 * 00330 * If @a username is non-null, then the user might be prompted only 00331 * for a password, but @a *creds would still be filled with both 00332 * username and password. For example, a typical usage would be to 00333 * pass @a username on the first call, but then leave it null for 00334 * subsequent calls, on the theory that if credentials failed, it's 00335 * as likely to be due to incorrect username as incorrect password. 00336 * 00337 * If @a may_save is FALSE, the auth system does not allow the credentials 00338 * to be saved (to disk). A prompt function shall not ask the user if the 00339 * credentials shall be saved if @a may_save is FALSE. For example, a GUI 00340 * client with a remember password checkbox would grey out the checkbox if 00341 * @a may_save is FALSE. 00342 */ 00343 typedef svn_error_t * 00344 (*svn_auth_simple_prompt_func_t) (svn_auth_cred_simple_t **cred, 00345 void *baton, 00346 const char *realm, 00347 const char *username, 00348 svn_boolean_t may_save, 00349 apr_pool_t *pool); 00350 00351 00352 /** Set @a *cred by prompting the user, allocating @a *cred in @a pool. 00353 * @a baton is an implementation-specific closure. 00354 * 00355 * If @a realm is non-null, maybe use it in the prompt string. 00356 * 00357 * If @a may_save is FALSE, the auth system does not allow the credentials 00358 * to be saved (to disk). A prompt function shall not ask the user if the 00359 * credentials shall be saved if @a may_save is FALSE. For example, a GUI 00360 * client with a remember username checkbox would grey out the checkbox if 00361 * @a may_save is FALSE. 00362 */ 00363 typedef svn_error_t * 00364 (*svn_auth_username_prompt_func_t) (svn_auth_cred_username_t **cred, 00365 void *baton, 00366 const char *realm, 00367 svn_boolean_t may_save, 00368 apr_pool_t *pool); 00369 00370 00371 /** @name SSL server certificate failure bits 00372 * 00373 * @note These values are stored in the on disk auth cache by the SSL 00374 * server certificate auth provider, so the meaning of these bits must 00375 * not be changed. 00376 * @{ 00377 */ 00378 /** Certificate is not yet valid. */ 00379 #define SVN_AUTH_SSL_NOTYETVALID 0x00000001 00380 /** Certificate has expired. */ 00381 #define SVN_AUTH_SSL_EXPIRED 0x00000002 00382 /** Certificate's CN (hostname) does not match the remote hostname. */ 00383 #define SVN_AUTH_SSL_CNMISMATCH 0x00000004 00384 /** @brief Certificate authority is unknown (i.e. not trusted) */ 00385 #define SVN_AUTH_SSL_UNKNOWNCA 0x00000008 00386 /** @brief Other failure. This can happen if neon has introduced a new 00387 * failure bit that we do not handle yet. */ 00388 #define SVN_AUTH_SSL_OTHER 0x40000000 00389 /** @} */ 00390 00391 /** Set @a *cred by prompting the user, allocating @a *cred in @a pool. 00392 * @a baton is an implementation-specific closure. 00393 * 00394 * @a cert_info is a structure describing the server cert that was 00395 * presented to the client, and @a failures is a bitmask that 00396 * describes exactly why the cert could not be automatically validated. 00397 * (See the #define error flag values below.) @a realm is a string 00398 * that can be used in the prompt string. 00399 * 00400 * If @a may_save is FALSE, the auth system does not allow the credentials 00401 * to be saved (to disk). A prompt function shall not ask the user if the 00402 * credentials shall be saved if @a may_save is FALSE. For example, a GUI 00403 * client with a trust permanently checkbox would grey out the checkbox if 00404 * @a may_save is FALSE. 00405 */ 00406 typedef svn_error_t *(*svn_auth_ssl_server_trust_prompt_func_t) ( 00407 svn_auth_cred_ssl_server_trust_t **cred, 00408 void *baton, 00409 const char *realm, 00410 apr_uint32_t failures, 00411 const svn_auth_ssl_server_cert_info_t *cert_info, 00412 svn_boolean_t may_save, 00413 apr_pool_t *pool); 00414 00415 00416 /** Set @a *cred by prompting the user, allocating @a *cred in @a pool. 00417 * @a baton is an implementation-specific closure. @a realm is a string 00418 * that can be used in the prompt string. 00419 * 00420 * If @a may_save is FALSE, the auth system does not allow the credentials 00421 * to be saved (to disk). A prompt function shall not ask the user if the 00422 * credentials shall be saved if @a may_save is FALSE. For example, a GUI 00423 * client with a remember certificate checkbox would grey out the checkbox 00424 * if @a may_save is FALSE. 00425 */ 00426 typedef svn_error_t *(*svn_auth_ssl_client_cert_prompt_func_t) ( 00427 svn_auth_cred_ssl_client_cert_t **cred, 00428 void *baton, 00429 const char *realm, 00430 svn_boolean_t may_save, 00431 apr_pool_t *pool); 00432 00433 00434 /** Set @a *cred by prompting the user, allocating @a *cred in @a pool. 00435 * @a baton is an implementation-specific closure. @a realm is a string 00436 * identifying the certificate, and can be used in the prompt string. 00437 * 00438 * If @a may_save is FALSE, the auth system does not allow the credentials 00439 * to be saved (to disk). A prompt function shall not ask the user if the 00440 * credentials shall be saved if @a may_save is FALSE. For example, a GUI 00441 * client with a remember password checkbox would grey out the checkbox if 00442 * @a may_save is FALSE. 00443 */ 00444 typedef svn_error_t *(*svn_auth_ssl_client_cert_pw_prompt_func_t) ( 00445 svn_auth_cred_ssl_client_cert_pw_t **cred, 00446 void *baton, 00447 const char *realm, 00448 svn_boolean_t may_save, 00449 apr_pool_t *pool); 00450 00451 00452 00453 /** Initialize an authentication system. 00454 * 00455 * Return an authentication object in @a *auth_baton (allocated in @a 00456 * pool) that represents a particular instance of the svn 00457 * authentication system. @a providers is an array of @c 00458 * svn_auth_provider_object_t pointers, already allocated in @a pool 00459 * and intentionally ordered. These pointers will be stored within @a 00460 * *auth_baton, grouped by credential type, and searched in this exact 00461 * order. 00462 */ 00463 void svn_auth_open(svn_auth_baton_t **auth_baton, 00464 apr_array_header_t *providers, 00465 apr_pool_t *pool); 00466 00467 /** Set an authentication run-time parameter. 00468 * 00469 * Store @a name / @a value pair as a run-time parameter in @a 00470 * auth_baton, making the data accessible to all providers. @a name 00471 * and @a value will be NOT be duplicated into the auth_baton's 00472 * pool. To delete a run-time parameter, pass NULL for @a value. 00473 */ 00474 void svn_auth_set_parameter(svn_auth_baton_t *auth_baton, 00475 const char *name, 00476 const void *value); 00477 00478 /** Get an authentication run-time parameter. 00479 * 00480 * Return a value for run-time parameter @a name from @a auth_baton. 00481 * Return NULL if the parameter doesn't exist. 00482 */ 00483 const void * svn_auth_get_parameter(svn_auth_baton_t *auth_baton, 00484 const char *name); 00485 00486 /** Universal run-time parameters, made available to all providers. 00487 00488 If you are writing a new provider, then to be a "good citizen", 00489 you should notice these global parameters! Note that these 00490 run-time params should be treated as read-only by providers; the 00491 application is responsible for placing them into the auth_baton 00492 hash. */ 00493 00494 /** The auth-hash prefix indicating that the parameter is global. */ 00495 #define SVN_AUTH_PARAM_PREFIX "svn:auth:" 00496 00497 /** @brief Any 'default' credentials that came in through the application 00498 * itself, (e.g. --username and --password options). Property values are 00499 * const char *. */ 00500 #define SVN_AUTH_PARAM_DEFAULT_USERNAME SVN_AUTH_PARAM_PREFIX "username" 00501 #define SVN_AUTH_PARAM_DEFAULT_PASSWORD SVN_AUTH_PARAM_PREFIX "password" 00502 00503 /** @brief The application doesn't want any providers to prompt 00504 * users. Property value is irrelevant; only property's existence 00505 * matters. */ 00506 #define SVN_AUTH_PARAM_NON_INTERACTIVE SVN_AUTH_PARAM_PREFIX "non-interactive" 00507 00508 /** @brief The application doesn't want any providers to save credentials 00509 * to disk. Property value is irrelevant; only property's existence 00510 * matters. */ 00511 #define SVN_AUTH_PARAM_NO_AUTH_CACHE SVN_AUTH_PARAM_PREFIX "no-auth-cache" 00512 00513 /** @brief The following property is for SSL server cert providers. This 00514 * provides a pointer to an @c apr_uint32_t containing the failures 00515 * detected by the certificate validator. */ 00516 #define SVN_AUTH_PARAM_SSL_SERVER_FAILURES SVN_AUTH_PARAM_PREFIX \ 00517 "ssl:failures" 00518 00519 /** @brief The following property is for SSL server cert providers. This 00520 * provides the cert info (svn_auth_ssl_server_cert_info_t). */ 00521 #define SVN_AUTH_PARAM_SSL_SERVER_CERT_INFO SVN_AUTH_PARAM_PREFIX \ 00522 "ssl:cert-info" 00523 00524 /** Some providers need access to the @c svn_config_t configuration. */ 00525 #define SVN_AUTH_PARAM_CONFIG SVN_AUTH_PARAM_PREFIX "config" 00526 00527 /** The current server group. */ 00528 #define SVN_AUTH_PARAM_SERVER_GROUP SVN_AUTH_PARAM_PREFIX "server-group" 00529 00530 /** @brief A configuration directory that overrides the default 00531 * ~/.subversion. */ 00532 #define SVN_AUTH_PARAM_CONFIG_DIR SVN_AUTH_PARAM_PREFIX "config-dir" 00533 00534 00535 /** Get an initial set of credentials. 00536 * 00537 * Ask @a auth_baton to set @a *credentials to a set of credentials 00538 * defined by @a cred_kind and valid within @a realmstring, or NULL if 00539 * no credentials are available. Otherwise, return an iteration state 00540 * in @a *state, so that the caller can call @c 00541 * svn_auth_next_credentials, in case the first set of credentials 00542 * fails to authenticate. 00543 * 00544 * Use @a pool to allocate @a *state, and for temporary allocation. 00545 * Note that @a *credentials will be allocated in @a auth_baton's pool. 00546 */ 00547 svn_error_t * svn_auth_first_credentials(void **credentials, 00548 svn_auth_iterstate_t **state, 00549 const char *cred_kind, 00550 const char *realmstring, 00551 svn_auth_baton_t *auth_baton, 00552 apr_pool_t *pool); 00553 00554 /** Get another set of credentials, assuming previous ones failed to 00555 * authenticate. 00556 * 00557 * Use @a state to fetch a different set of @a *credentials, as a 00558 * follow-up to @c svn_auth_first_credentials or @c 00559 * svn_auth_next_credentials. If no more credentials are available, 00560 * set @a *credentials to NULL. 00561 * 00562 * Note that @a *credentials will be allocated in @c auth_baton's pool. 00563 */ 00564 svn_error_t * svn_auth_next_credentials(void **credentials, 00565 svn_auth_iterstate_t *state, 00566 apr_pool_t *pool); 00567 00568 /** Save a set of credentials. 00569 * 00570 * Ask @a state to store the most recently returned credentials, 00571 * presumably because they successfully authenticated. Use @a pool 00572 * for temporary allocation. If no credentials were ever returned, do 00573 * nothing. 00574 */ 00575 svn_error_t * svn_auth_save_credentials(svn_auth_iterstate_t *state, 00576 apr_pool_t *pool); 00577 00578 /** @} */ 00579 00580 #ifdef __cplusplus 00581 } 00582 #endif /* __cplusplus */ 00583 00584 #endif /* SVN_AUTH_H */