Browse code

auth_identity: converted to the new module interface

Federico Cabiddu authored on 27/09/2018 15:22:49 • Victor Seva committed on 28/09/2018 11:03:26
Showing 2 changed files
... ...
@@ -42,7 +42,5 @@ LIBS+= $(TLS_EXTRA_LIBS)
42 42
 #
43 43
 #LIBS+= /usr/lib/libcurl.a /usr/lib/libssl.a /usr/lib/libcrypto.a -lkrb5 -lidn -lz -lgssapi_krb5 -lrt -lldap
44 44
 
45
-DEFS+=-DSER_MOD_INTERFACE
46
-
47 45
 include ../../Makefile.modules
48 46
 
... ...
@@ -119,14 +119,14 @@ ttimeparams glb_ttimeparams={0,0,0};
119 119
  * Exported functions
120 120
  */
121 121
 static cmd_export_t glb_cmds[] = {
122
-	{"auth_date_proc", date_proc, 0, 0, REQUEST_ROUTE},
123
-	{"auth_add_identity", add_identity, 0, 0, REQUEST_ROUTE},
124
-	{"vrfy_get_certificate", get_certificate, 0, 0, REQUEST_ROUTE},
125
-	{"vrfy_check_msgvalidity", check_validity, 0, 0, REQUEST_ROUTE},
126
-	{"vrfy_check_certificate", check_certificate, 0, 0, REQUEST_ROUTE},
127
-	{"vrfy_check_date", check_date, 0, 0, REQUEST_ROUTE},
128
-	{"vrfy_check_callid", check_callid, 0, 0, REQUEST_ROUTE},
129
-	{0, 0, 0, 0, 0}
122
+	{"auth_date_proc", date_proc, 0, 0, 0, REQUEST_ROUTE},
123
+	{"auth_add_identity", add_identity, 0, 0, 0, REQUEST_ROUTE},
124
+	{"vrfy_get_certificate", get_certificate, 0, 0, 0, REQUEST_ROUTE},
125
+	{"vrfy_check_msgvalidity", check_validity, 0, 0, 0, REQUEST_ROUTE},
126
+	{"vrfy_check_certificate", check_certificate, 0, 0, 0, REQUEST_ROUTE},
127
+	{"vrfy_check_date", check_date, 0, 0, 0, REQUEST_ROUTE},
128
+	{"vrfy_check_callid", check_callid, 0, 0, 0, REQUEST_ROUTE},
129
+	{0, 0, 0, 0, 0, 0}
130 130
 };
131 131
 
132 132
 
... ...
@@ -152,14 +152,15 @@ static param_export_t glb_params[] = {
152 152
  */
153 153
 struct module_exports exports = {
154 154
 	"auth_identity",
155
+        DEFAULT_DLFLAGS, /* dlopen flags */
155 156
 	glb_cmds,   /* Exported functions */
156
-	0,          /* RPC methods */
157 157
 	glb_params, /* Exported parameters */
158
-	mod_init,   /* module initialization function */
158
+	0,          /* RPC methods */
159
+        0,          /* pseudo-variables exports */
159 160
 	0,          /* response function */
160
-	mod_deinit, /* destroy function */
161
-	0,          /* oncancel function */
162
-	0			/* child initialization function */
161
+	mod_init,   /* module initialization function */
162
+	0,	    /* child initialization function */
163
+	mod_deinit  /* destroy function */
163 164
 };
164 165
 
165 166