Skip to content

Commit

Permalink
auth_identity: converted to the new module interface
Browse files Browse the repository at this point in the history
  • Loading branch information
grumvalski authored and linuxmaniac committed Sep 28, 2018
1 parent c81dbfc commit bab6d46
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
2 changes: 0 additions & 2 deletions src/modules/auth_identity/Makefile
Expand Up @@ -42,7 +42,5 @@ LIBS+= $(TLS_EXTRA_LIBS)
#
#LIBS+= /usr/lib/libcurl.a /usr/lib/libssl.a /usr/lib/libcrypto.a -lkrb5 -lidn -lz -lgssapi_krb5 -lrt -lldap

DEFS+=-DSER_MOD_INTERFACE

include ../../Makefile.modules

27 changes: 14 additions & 13 deletions src/modules/auth_identity/auth_identity.c
Expand Up @@ -119,14 +119,14 @@ ttimeparams glb_ttimeparams={0,0,0};
* Exported functions
*/
static cmd_export_t glb_cmds[] = {
{"auth_date_proc", date_proc, 0, 0, REQUEST_ROUTE},
{"auth_add_identity", add_identity, 0, 0, REQUEST_ROUTE},
{"vrfy_get_certificate", get_certificate, 0, 0, REQUEST_ROUTE},
{"vrfy_check_msgvalidity", check_validity, 0, 0, REQUEST_ROUTE},
{"vrfy_check_certificate", check_certificate, 0, 0, REQUEST_ROUTE},
{"vrfy_check_date", check_date, 0, 0, REQUEST_ROUTE},
{"vrfy_check_callid", check_callid, 0, 0, REQUEST_ROUTE},
{0, 0, 0, 0, 0}
{"auth_date_proc", date_proc, 0, 0, 0, REQUEST_ROUTE},
{"auth_add_identity", add_identity, 0, 0, 0, REQUEST_ROUTE},
{"vrfy_get_certificate", get_certificate, 0, 0, 0, REQUEST_ROUTE},
{"vrfy_check_msgvalidity", check_validity, 0, 0, 0, REQUEST_ROUTE},
{"vrfy_check_certificate", check_certificate, 0, 0, 0, REQUEST_ROUTE},
{"vrfy_check_date", check_date, 0, 0, 0, REQUEST_ROUTE},
{"vrfy_check_callid", check_callid, 0, 0, 0, REQUEST_ROUTE},
{0, 0, 0, 0, 0, 0}
};


Expand All @@ -152,14 +152,15 @@ static param_export_t glb_params[] = {
*/
struct module_exports exports = {
"auth_identity",
DEFAULT_DLFLAGS, /* dlopen flags */
glb_cmds, /* Exported functions */
0, /* RPC methods */
glb_params, /* Exported parameters */
mod_init, /* module initialization function */
0, /* RPC methods */
0, /* pseudo-variables exports */
0, /* response function */
mod_deinit, /* destroy function */
0, /* oncancel function */
0 /* child initialization function */
mod_init, /* module initialization function */
0, /* child initialization function */
mod_deinit /* destroy function */
};


Expand Down

0 comments on commit bab6d46

Please sign in to comment.