Browse code

Switch to the openser module interface version

We need to switch the tls module to the openser version of module
interface in order to make all the tls related pseudo-variables
available.

This comes with a price, we won't be able to use the TLS rpc
commands temporarily because they can only be exported through
the SER version of the module interface. But there are only two
functions available through the rpc interface anyway and not
having them harms less than not having the pseudo-variables.

Jan Janak authored on 27/03/2009 17:36:18
Showing 2 changed files
... ...
@@ -17,6 +17,6 @@ LIBS+= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib -lssl  -lcrypto \
17 17
 #       E.g.: make TLS_HOOKS=1 TLS_EXTRA_LIBS="-lz -lkrb5"
18 18
 
19 19
 
20
-DEFS+=-DSER_MOD_INTERFACE
20
+DEFS+=-DOPENSER_MOD_INTERFACE
21 21
 
22 22
 include ../../Makefile.modules
... ...
@@ -220,15 +220,18 @@ static param_export_t params[] = {
220 220
  * Module interface
221 221
  */
222 222
 struct module_exports exports = {
223
-	"tls",
224
-	cmds,       /* Exported functions */
225
-	tls_rpc,    /* RPC methods */
226
-	params,     /* Exported parameters */
227
-	mod_init,   /* module initialization function */
228
-	0,          /* response function*/
229
-	destroy,    /* destroy function */
230
-	0,          /* cancel function */
231
-	mod_child   /* per-child init function */
223
+	"tlsops", 
224
+	DEFAULT_DLFLAGS, /* dlopen flags */
225
+	cmds,        /* Exported functions */
226
+	params,      /* Exported parameters */
227
+	0,           /* exported statistics */
228
+	0,           /* exported MI functions */
229
+	tls_pv,      /* exported pseudo-variables */
230
+	0,           /* extra processes */
231
+	mod_init,    /* module initialization function */
232
+	0,           /* response function */
233
+	destroy,     /* destroy function */
234
+	mod_child    /* child initialization function */
232 235
 };
233 236
 
234 237