~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/authentication.cc

  • Committer: Brian Aker
  • Date: 2010-12-02 21:58:09 UTC
  • mto: This revision was merged to the branch mainline in revision 1973.
  • Revision ID: brian@tangent.org-20101202215809-761e1wk2nhyuvt9r
This is from the catalog patch (I'm pushing it up as its own little thing
just because it is fairly invasive).

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
    return true;
73
73
 
74
74
  /* Use find_if instead of foreach so that we can collect return codes */
75
 
  vector<plugin::Authentication *>::iterator iter=
76
 
    find_if(all_authentication.begin(), all_authentication.end(),
77
 
            AuthenticateBy(sctx, password));
 
75
  std::vector<plugin::Authentication *>::iterator iter=
 
76
    std::find_if(all_authentication.begin(), all_authentication.end(),
 
77
                 AuthenticateBy(sctx, password));
78
78
 
79
79
  /* We only require one plugin to return success in order to authenticate.
80
80
   * If iter is == end() here, that means that all of the plugins returned