frantisek holop


Found
r1179767

r1179767 | stsp | 2011-10-06 13:56:02 -0500 (Thu, 06 Oct 2011)

Wrap error message from SASL with a prefix which makes clear that the
error message comes from SASL, not from Subversion itself.
This avoids silly error messages such as "svn: generic failure".

Reported by: frantisek holop

* subversion/libsvn_ra_svn/cyrus_auth.c
  (get_sasl_error): New helper which wraps sasl_errdetail().
  (sasl_baton): Add SCRATCH_POOL so our sasl callbacks can call above helper.
  (new_sasl_ctx, try_auth, sasl_read_cb, sasl_write_cb,
   svn_ra_svn__enable_sasl_encryption): Call get_sasl_error() instead of
   calling sasl_errdetail().