Skip to content

Commit

Permalink
Module methods are mod_foo
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Apr 4, 2014
1 parent d42ea4b commit e82defa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/modules/rlm_krb5/rlm_krb5.c
Expand Up @@ -37,7 +37,7 @@ static const CONF_PARSER module_config[] = {
{ NULL, -1, 0, NULL, NULL }
};

static int krb5_detach(void *instance)
static int mod_detach(void *instance)
{
rlm_krb5_t *inst = instance;

Expand Down Expand Up @@ -66,7 +66,7 @@ static int krb5_detach(void *instance)
return 0;
}

static int krb5_instantiate(CONF_SECTION *conf, void *instance)
static int mod_instantiate(CONF_SECTION *conf, void *instance)
{
rlm_krb5_t *inst = instance;
krb5_error_code ret;
Expand Down Expand Up @@ -334,7 +334,7 @@ static rlm_rcode_t krb5_process_error(REQUEST *request, rlm_krb5_handle_t *conn,
/*
* Validate user/pass (Heimdal)
*/
static rlm_rcode_t krb5_auth(void *instance, REQUEST *request)
static rlm_rcode_t mod_authenticate(void *instance, REQUEST *request)
{
rlm_krb5_t *inst = instance;
rlm_rcode_t rcode;
Expand Down Expand Up @@ -411,7 +411,7 @@ static rlm_rcode_t krb5_auth(void *instance, REQUEST *request)
/*
* Validate userid/passwd (MIT)
*/
static rlm_rcode_t krb5_auth(void *instance, REQUEST *request)
static rlm_rcode_t mod_authenticate(void *instance, REQUEST *request)
{
rlm_krb5_t *inst = instance;
rlm_rcode_t rcode;
Expand Down Expand Up @@ -490,10 +490,10 @@ module_t rlm_krb5 = {
,
sizeof(rlm_krb5_t),
module_config,
krb5_instantiate, /* instantiation */
krb5_detach, /* detach */
mod_instantiate, /* instantiation */
mod_detach, /* detach */
{
krb5_auth, /* authenticate */
mod_authenticate, /* authenticate */
NULL, /* authorize */
NULL, /* pre-accounting */
NULL, /* accounting */
Expand Down

0 comments on commit e82defa

Please sign in to comment.