Add authentication plugin name to authenticator API

The authenticators can now declare the authentication plugin name. Right
now this is only relevant for MySQL authentication but for example the
HTTP module could implement both Basic and Digest authentication.
This commit is contained in:
Markus Makela
2016-09-14 14:19:44 +03:00
parent 4d1eb6fe85
commit 0ab4f04d7b
9 changed files with 23 additions and 9 deletions

View File

@ -47,6 +47,7 @@ struct servlistener;
* authenticate Carry out the authentication
* free Free extracted data
* loadusers Load or update authenticator user data
* plugin_name The protocol specific name of the authentication plugin.
* @endverbatim
*
* This forms the "module object" for authenticator modules within the gateway.
@ -60,6 +61,7 @@ typedef struct gw_authenticator
int (*authenticate)(struct dcb *);
void (*free)(struct dcb *);
int (*loadusers)(struct servlistener *);
const char* plugin_name;
} GWAUTHENTICATOR;
/** Return values for the loadusers entry point */