~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/authentication.cc

  • Committer: Brian Aker
  • Date: 2009-03-27 00:14:08 UTC
  • mto: This revision was merged to the branch mainline in revision 967.
  • Revision ID: brian@tangent.org-20090327001408-n6uxtfiymazy1pgf
Refactor plugin loading to remove mask (one step closer to getting rid of
malloc!)

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
  if (are_plugins_loaded != true)
48
48
    return true;
49
49
 
50
 
  return plugin_foreach(session, authenticate_by,
51
 
                        DRIZZLE_AUTH_PLUGIN, (void *)password);
 
50
  return plugin_foreach(session, authenticate_by, DRIZZLE_AUTH_PLUGIN, (void *)password);
52
51
}
53
52
 
54
53
 
74
73
  plugin->data= static_cast<void *>(authen);
75
74
  are_plugins_loaded= true;
76
75
 
77
 
  plugin->state= PLUGIN_IS_READY;
78
 
 
79
76
  return(0);
80
77
err:
81
78
  delete authen;