FreeBSD/contrib/subversion/subversion/svnserve/serve.c
/* Perform an authentication request using the built-in SASL implementation. */
Perform an authentication request using the built-in SASL implementation.
Perform an authentication request using the built - in SASL implementation .
static svn_error_t *
internal_auth_request(svn_ra_svn_conn_t *conn, apr_pool_t *pool,
                      server_baton_t *b, enum access_type required,
                      svn_boolean_t needs_username)
{
  svn_boolean_t success;
  const char *mech, *mecharg;
  SVN_ERR(svn_ra_svn__write_tuple(conn, pool, "w((!", "success"));
  SVN_ERR(send_mechs(conn, pool, b, required, needs_username));
  SVN_ERR(svn_ra_svn__write_tuple(conn, pool, "!)c)", b->repository->realm));
  do
    {
      SVN_ERR(svn_ra_svn__read_tuple(conn, pool, "w(?c)", &mech, &mecharg));
      if (!*mech)
        break;
      SVN_ERR(auth(conn, pool, mech, mecharg, b, required, needs_username,
                   &success));
    }
  while (!success);
  return SVN_NO_ERROR;
}
static svn_error_t * internal_auth_request ( svn_ra_svn_conn_t * conn , apr_pool_t * pool , server_baton_t * b , enum access_type required , svn_boolean_t needs_username ) { svn_boolean_t success ; const char * mech , * mecharg ; SVN_ERR ( svn_ra_svn__write_tuple ( conn , pool , " " , " " ) ) ; SVN_ERR ( send_mechs ( conn , pool , b , required , needs_username ) ) ; SVN_ERR ( svn_ra_svn__write_tuple ( conn , pool , " " , b -> repository -> realm ) ) ; do { SVN_ERR ( svn_ra_svn__read_tuple ( conn , pool , " " , & mech , & mecharg ) ) ; if ( ! * mech ) break ; SVN_ERR ( auth ( conn , pool , mech , mecharg , b , required , needs_username , & success ) ) ; } while ( ! success ) ; return SVN_NO_ERROR ; }
Perform an authentication request using the built-in SASL implementation.
Perform an authentication request using the built - in SASL implementation .