[sr-dev] git:andrei/tcp_tls_changes: tls: fix unregistered rpc commands

Andrei Pelinescu-Onciul andrei at iptel.org
Thu May 27 12:17:44 CEST 2010


Module: sip-router
Branch: andrei/tcp_tls_changes
Commit: 577ccb71e7a1e113cacd74b19c8174ea2e9bacb6
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=577ccb71e7a1e113cacd74b19c8174ea2e9bacb6

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Wed May 26 15:48:59 2010 +0200

tls: fix unregistered rpc commands

In the process of merging the tls modules with some k tls PVs the
module interface was changed, leaving the rpc functions
un-registered (and hence unaccessible).

---

 modules/tls/tls_mod.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/modules/tls/tls_mod.c b/modules/tls/tls_mod.c
index 24dac2a..5923d30 100644
--- a/modules/tls/tls_mod.c
+++ b/modules/tls/tls_mod.c
@@ -56,6 +56,7 @@
 #include "../../timer.h" /* ticks_t */
 #include "../../tls_hooks.h"
 #include "../../ut.h"
+#include "../../rpc_lookup.h"
 #include "tls_init.h"
 #include "tls_server.h"
 #include "tls_domain.h"
@@ -376,6 +377,11 @@ static int mod_init(void)
 
 	register_tls_hooks(&tls_h);
 	register_select_table(tls_sel);
+	/* register the rpc interface */
+	if (rpc_register_array(tls_rpc)!=0) {
+		LOG(L_ERR, "failed to register RPC commands\n");
+		goto error;
+	}
 
 	 /* if (init_tls() < 0) return -1; */
 	




More information about the sr-dev mailing list