~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/auth_pam/auth_pam.cc

  • Committer: Brian Aker
  • Date: 2009-04-13 16:22:40 UTC
  • mfrom: (971.1.78 mordred)
  • Revision ID: brian@gaz-20090413162240-ugi3gvhofmcuglzl
Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
};
108
108
 
109
109
 
110
 
static int initialize(void *p)
 
110
static Authentication *auth= NULL;
 
111
 
 
112
static int initialize(PluginRegistry &registry)
111
113
{
112
 
  Authentication **auth= static_cast<Authentication **>(p);
113
 
 
114
 
  *auth= new Auth_pam();
115
 
 
 
114
  auth= new Auth_pam();
 
115
  registry.add(auth);
116
116
  return 0;
117
117
}
118
118
 
119
 
static int finalize(void *p)
 
119
static int finalize(PluginRegistry &registry)
120
120
{
121
 
  Auth_pam *auth= static_cast<Auth_pam *>(p);
122
121
 
123
122
  if (auth)
 
123
  {
 
124
    registry.remove(auth);
124
125
    delete auth;
 
126
  }
125
127
 
126
128
  return 0;
127
129
}
128
130
 
129
131
drizzle_declare_plugin(auth_pam)
130
132
{
131
 
  DRIZZLE_AUTH_PLUGIN,
132
133
  "pam",
133
134
  "0.1",
134
135
  "Brian Aker",