/* Check if we have enough auth data and capabilities to authenticate.  */
bool Curl_sasl_can_authenticate(struct SASL *sasl, struct connectdata *conn)
/* Check if we have enough auth data and capabilities to authenticate.  */
bool Curl_sasl_can_authenticate(struct SASL *sasl, struct connectdata *conn)
{
  if(conn->bits.user_passwd)
    return TRUE;
  if(sasl->authmechs & sasl->prefmech & SASL_MECH_EXTERNAL)
    return TRUE;
  return FALSE;
}