FreeBSD/contrib/subversion/subversion/svnserve/serve.c
/* Send authentication mechs for ACCESS_TYPE to the client.  If NEEDS_USERNAME
   is true, don't send anonymous mech even if that would give the desired
   access. */
Send authentication mechs for ACCESS_TYPE to the client.  If NEEDS_USERNAME
is true, don't send anonymous mech even if that would give the desired
access.
Send authentication mechs for ACCESS_TYPE to the client . If NEEDS_USERNAME is true don ' t send anonymous mech even if that would give the desired access .
static svn_error_t *send_mechs(svn_ra_svn_conn_t *conn, apr_pool_t *pool,
                               server_baton_t *b, enum access_type required,
                               svn_boolean_t needs_username)
{
  if (!needs_username && b->repository->anon_access >= required)
    SVN_ERR(svn_ra_svn__write_word(conn, pool, "ANONYMOUS"));
  if (b->client_info->tunnel_user && b->repository->auth_access >= required)
    SVN_ERR(svn_ra_svn__write_word(conn, pool, "EXTERNAL"));
  if (b->repository->pwdb && b->repository->auth_access >= required)
    SVN_ERR(svn_ra_svn__write_word(conn, pool, "CRAM-MD5"));
  return SVN_NO_ERROR;
}
static svn_error_t * send_mechs ( svn_ra_svn_conn_t * conn , apr_pool_t * pool , server_baton_t * b , enum access_type required , svn_boolean_t needs_username ) { if ( ! needs_username && b -> repository -> anon_access >= required ) SVN_ERR ( svn_ra_svn__write_word ( conn , pool , " " ) ) ; if ( b -> client_info -> tunnel_user && b -> repository -> auth_access >= required ) SVN_ERR ( svn_ra_svn__write_word ( conn , pool , " " ) ) ; if ( b -> repository -> pwdb && b -> repository -> auth_access >= required ) SVN_ERR ( svn_ra_svn__write_word ( conn , pool , " " ) ) ; return SVN_NO_ERROR ; }
Send authentication mechs for ACCESS_TYPE to the client.
Send authentication mechs for ACCESS_TYPE to the client .