~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/authentication.h

  • Committer: Monty Taylor
  • Date: 2009-04-25 20:29:54 UTC
  • mto: (997.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 1003.
  • Revision ID: mordred@inaugust.com-20090425202954-slopmkjj7vxal5lk
Migrated archive.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 
3
 
 
4
 *  Definitions required for Authentication plugin
 
5
 
3
6
 *
4
7
 *  Copyright (C) 2008 Brian Aker
5
8
 *
24
27
#ifndef DRIZZLED_PLUGIN_AUTHENTICATION_H
25
28
#define DRIZZLED_PLUGIN_AUTHENTICATION_H
26
29
 
27
 
typedef struct authentication_st
 
30
class Authentication
28
31
{
29
 
  bool (*authenticate)(THD *thd, const char *password);
30
 
} authentication_st;
 
32
public:
 
33
  Authentication() {}
 
34
  virtual ~Authentication() {}
 
35
 
 
36
  virtual bool authenticate(Session *, const char *)= 0;
 
37
 
 
38
};
31
39
 
32
40
#endif /* DRIZZLED_PLUGIN_AUTHENTICATION_H */