aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/vty_interface_layer3.c
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2010-06-09 11:32:51 +0200
committerHarald Welte <laforge@gnumonks.org>2010-06-14 20:43:50 +0200
commit92b2ff50810159c2e05152c4ecfd70cfd549f208 (patch)
tree5f9f9a7c8469d4e7e55f19007edd09e5a6098069 /openbsc/src/vty_interface_layer3.c
parent10bf812a6ada275c2066079a29e1f995915c9d3f (diff)
db: Change naming convention for auth info functions
- exported function have a 'db_' prefix - use 'sync' vs 'set' - use 'for' vs 'by' Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'openbsc/src/vty_interface_layer3.c')
-rw-r--r--openbsc/src/vty_interface_layer3.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/src/vty_interface_layer3.c b/openbsc/src/vty_interface_layer3.c
index 0b6da042f..bf88fc093 100644
--- a/openbsc/src/vty_interface_layer3.c
+++ b/openbsc/src/vty_interface_layer3.c
@@ -91,7 +91,7 @@ static void subscr_dump_full_vty(struct vty *vty, struct gsm_subscriber *subscr)
vty_out(vty, " TMSI: %08X%s", subscr->tmsi,
VTY_NEWLINE);
- rc = get_authinfo_by_subscr(&ainfo, subscr);
+ rc = db_get_authinfo_for_subscr(&ainfo, subscr);
if (!rc) {
vty_out(vty, " A3A8 algorithm id: %d%s",
ainfo.auth_algo, VTY_NEWLINE);
@@ -100,7 +100,7 @@ static void subscr_dump_full_vty(struct vty *vty, struct gsm_subscriber *subscr)
VTY_NEWLINE);
}
- rc = get_lastauthtuple_by_subscr(&atuple, subscr);
+ rc = db_get_lastauthtuple_for_subscr(&atuple, subscr);
if (!rc) {
vty_out(vty, " A3A8 last tuple (used %d times):%s",
atuple.use_count, VTY_NEWLINE);
@@ -469,7 +469,7 @@ DEFUN(ena_subscr_a3a8,
if (!strcasecmp(alg_str, "none")) {
/* Just erase */
- rc = set_authinfo_for_subscr(NULL, subscr);
+ rc = db_sync_authinfo_for_subscr(NULL, subscr);
} else if (!strcasecmp(alg_str, "comp128v1")) {
/* Parse hex string Ki */
rc = hexparse(ki_str, ainfo.a3a8_ki, sizeof(ainfo.a3a8_ki));
@@ -479,7 +479,7 @@ DEFUN(ena_subscr_a3a8,
/* Set the infos */
ainfo.auth_algo = AUTH_ALGO_COMP128v1;
ainfo.a3a8_ki_len = rc;
- rc = set_authinfo_for_subscr(&ainfo, subscr);
+ rc = db_sync_authinfo_for_subscr(&ainfo, subscr);
} else {
/* Unknown method */
return CMD_WARNING;