From b3fc1eb53c077b50e84439926683e334fd7f1d57 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 6 Jan 2010 09:43:08 +0100 Subject: [vty] Move db usage out of the libbsc (fork dumping of subscr) (2nd part) Follow up on 424c4f0e2927d5a7538b31c69113c6e4f861d2c9. As pointed out by Sylvain on the mailinglist I need to remove this here as well. Do not call db.c code from code that is located in libbsc.a --- openbsc/src/vty_interface.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/openbsc/src/vty_interface.c b/openbsc/src/vty_interface.c index 8301f7893..f978c27fc 100644 --- a/openbsc/src/vty_interface.c +++ b/openbsc/src/vty_interface.c @@ -531,32 +531,6 @@ static void subscr_dump_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); - if (!rc) { - vty_out(vty, " A3A8 algorithm id: %d%s", - ainfo.auth_algo, VTY_NEWLINE); - vty_out(vty, " A3A8 Ki: %s%s", - hexdump(ainfo.a3a8_ki, ainfo.a3a8_ki_len), - VTY_NEWLINE); - } - - rc = get_authtuple_by_subscr(&atuple, subscr); - if (!rc) { - vty_out(vty, " A3A8 last tuple (used %d times):%s", - atuple.use_count, VTY_NEWLINE); - vty_out(vty, " seq # : %d%s", - atuple.key_seq, VTY_NEWLINE); - vty_out(vty, " RAND : %s%s", - hexdump(atuple.rand, sizeof(atuple.rand)), - VTY_NEWLINE); - vty_out(vty, " SRES : %s%s", - hexdump(atuple.sres, sizeof(atuple.sres)), - VTY_NEWLINE); - vty_out(vty, " Kc : %s%s", - hexdump(atuple.kc, sizeof(atuple.kc)), - VTY_NEWLINE); - } - vty_out(vty, " Use count: %u%s", subscr->use_count, VTY_NEWLINE); } -- cgit v1.2.3