Commit a3abd1a1 authored by Pekka Pessi's avatar Pekka Pessi

auth_module.c: added auth_mod_name().

darcs-hash:20061128195604-65a35-77640e46a1325b40762637f0734c43ea57f709f0.gz
parent c530fb1e
......@@ -278,6 +278,11 @@ void auth_mod_unref(auth_mod_t *am)
auth_mod_destroy(am);
}
/** Get authenticatin module name */
char const *auth_mod_name(auth_mod_t *am)
{
return am ? am->am_scheme->asch_method : "<nil>";
}
/** Initialize a auth_status_t stucture.
*
......
......@@ -174,6 +174,8 @@ SOFIAPUBFUN void auth_mod_destroy(auth_mod_t *);
SOFIAPUBFUN auth_mod_t *auth_mod_ref(auth_mod_t *am);
SOFIAPUBFUN void auth_mod_unref(auth_mod_t *am);
SOFIAPUBFUN char const *auth_mod_name(auth_mod_t *am);
SOFIAPUBFUN auth_status_t *auth_status_init(void *, isize_t size);
SOFIAPUBFUN auth_status_t *auth_status_init_with(void *, isize_t size,
int status,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment