~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/authentication.h

  • Committer: Eric Day
  • Date: 2009-08-27 07:26:22 UTC
  • mto: This revision was merged to the branch mainline in revision 1131.
  • Revision ID: eday@oddments.org-20090827072622-72te13ua0wdlc2ky
Reworked listen interface to not require binding of TCP ports.

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
 
 *  Copyright (C) 2008 Brian Aker
 
7
 *  Copyright (C) 2008 Sun Microsystems
5
8
 *
6
9
 *  This program is free software; you can redistribute it and/or modify
7
10
 *  it under the terms of the GNU General Public License as published by
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 */