Module: sip-router
Branch: master
Commit: eda5ea9fb78e2b442407ab4f31662b9e30d38c01
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=eda5ea9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sat Sep 13 16:46:07 2014 +0200
auth_db: load_credentials defaults now to empty list (null value)
- it was 'rpid', but is not a common use case these days
- you can get it back via config with:
modparam("auth_db", "load_credentials", "rpid")
---
modules/auth_db/authdb_mod.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/modules/auth_db/authdb_mod.c b/modules/auth_db/authdb_mod.c
index 30a20b9..c21d36b 100644
--- a/modules/auth_db/authdb_mod.c
+++ b/modules/auth_db/authdb_mod.c
@@ -80,8 +80,6 @@ int parse_aaa_pvs(char *definition, pv_elem_t **pv_def, int *cnt);
#define PASS_COL "ha1"
#define PASS_COL_2 "ha1b"
-#define DEFAULT_CRED_LIST "rpid"
-
/*
* Module parameter variables
*/
@@ -100,7 +98,7 @@ db1_con_t* auth_db_handle = 0; /* database connection handle */
db_func_t auth_dbf;
auth_api_s_t auth_api;
-char *credentials_list = DEFAULT_CRED_LIST;
+char *credentials_list = 0;
pv_elem_t *credentials = 0; /* Parsed list of credentials to load */
int credentials_n = 0; /* Number of credentials in the list */
@@ -353,12 +351,12 @@ int parse_aaa_pvs(char *definition, pv_elem_t **pv_def, int *cnt)
char *sep;
p = definition;
- *pv_def = 0;
- *cnt = 0;
-
if (p==0 || *p==0)
return 0;
+ *pv_def = 0;
+ *cnt = 0;
+
/* get element by element */
while ( (end=strchr(p,';'))!=0 || (end=p+strlen(p))!=p ) {
/* new pv_elem_t */