Hello Neels Hofmeyr, Jenkins Builder,

I'd like you to reexamine a change.  Please visit

    https://gerrit.osmocom.org/5096

to look at the new patch set (#2).

auth: remove obsolete VTY commands

authentication (optional|required) is no longer needed, the
related decisions are now made in the HLR.

Change-Id: Ib6c6331cc86004c4862067031e4fcb12a6975b63
---
M doc/examples/osmo-bsc/osmo-bsc.cfg
M doc/examples/osmo-bsc/osmo-bsc_custom-sccp.cfg
M include/osmocom/bsc/gsm_data.h
M src/libbsc/bsc_vty.c
M src/libcommon-cs/common_cs_vty.c
5 files changed, 0 insertions(+), 21 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/96/5096/2

diff --git a/doc/examples/osmo-bsc/osmo-bsc.cfg 
b/doc/examples/osmo-bsc/osmo-bsc.cfg
index 60338d2..64c3abd 100644
--- a/doc/examples/osmo-bsc/osmo-bsc.cfg
+++ b/doc/examples/osmo-bsc/osmo-bsc.cfg
@@ -10,7 +10,6 @@
  long name OsmoBSC
  location updating reject cause 13
  encryption a5 0
- authentication optional
  neci 0
  paging any use tch 0
  rrlp mode none
diff --git a/doc/examples/osmo-bsc/osmo-bsc_custom-sccp.cfg 
b/doc/examples/osmo-bsc/osmo-bsc_custom-sccp.cfg
index f9f5ba6..7697481 100644
--- a/doc/examples/osmo-bsc/osmo-bsc_custom-sccp.cfg
+++ b/doc/examples/osmo-bsc/osmo-bsc_custom-sccp.cfg
@@ -9,7 +9,6 @@
  long name OsmoBSC
  location updating reject cause 13
  encryption a5 0
- authentication optional
  neci 0
  paging any use tch 0
  rrlp mode none
diff --git a/include/osmocom/bsc/gsm_data.h b/include/osmocom/bsc/gsm_data.h
index 5190a27..91aee43 100644
--- a/include/osmocom/bsc/gsm_data.h
+++ b/include/osmocom/bsc/gsm_data.h
@@ -335,7 +335,6 @@
        char *name_short;
        enum gsm48_reject_value reject_cause;
        int a5_encryption;
-       bool authentication_required;
        int neci;
        int send_mm_info;
        struct {
diff --git a/src/libbsc/bsc_vty.c b/src/libbsc/bsc_vty.c
index c5dedb3..3f3935c 100644
--- a/src/libbsc/bsc_vty.c
+++ b/src/libbsc/bsc_vty.c
@@ -802,9 +802,6 @@
        vty_out(vty, " location updating reject cause %u%s",
                gsmnet->reject_cause, VTY_NEWLINE);
        vty_out(vty, " encryption a5 %u%s", gsmnet->a5_encryption, VTY_NEWLINE);
-       vty_out(vty, " authentication %s%s",
-               gsmnet->authentication_required ?  "required" : "optional",
-               VTY_NEWLINE);
        vty_out(vty, " neci %u%s", gsmnet->neci, VTY_NEWLINE);
        vty_out(vty, " paging any use tch %d%s", gsmnet->pag_any_tch, 
VTY_NEWLINE);
        vty_out(vty, " rrlp mode %s%s", rrlp_mode_name(gsmnet->rrlp.mode),
diff --git a/src/libcommon-cs/common_cs_vty.c b/src/libcommon-cs/common_cs_vty.c
index 51f16c4..74b1a93 100644
--- a/src/libcommon-cs/common_cs_vty.c
+++ b/src/libcommon-cs/common_cs_vty.c
@@ -134,20 +134,6 @@
        return CMD_SUCCESS;
 }
 
-DEFUN(cfg_net_authentication,
-      cfg_net_authentication_cmd,
-      "authentication (optional|required)",
-       "Whether to enforce MS authentication in 2G\n"
-       "Allow MS to attach via 2G BSC without authentication\n"
-       "Always do authentication\n")
-{
-       struct gsm_network *gsmnet = gsmnet_from_vty(vty);
-
-       gsmnet->authentication_required = (argv[0][0] == 'r') ? true : false;
-
-       return CMD_SUCCESS;
-}
-
 DEFUN(cfg_net_rrlp_mode, cfg_net_rrlp_mode_cmd,
       "rrlp mode (none|ms-based|ms-preferred|ass-preferred)",
        "Radio Resource Location Protocol\n"
@@ -297,7 +283,6 @@
        install_element(GSMNET_NODE, &cfg_net_name_long_cmd);
        install_element(GSMNET_NODE, &cfg_net_reject_cause_cmd);
        install_element(GSMNET_NODE, &cfg_net_encryption_cmd);
-       install_element(GSMNET_NODE, &cfg_net_authentication_cmd);
        install_element(GSMNET_NODE, &cfg_net_rrlp_mode_cmd);
        install_element(GSMNET_NODE, &cfg_net_mm_info_cmd);
        install_element(GSMNET_NODE, &cfg_net_timezone_cmd);

-- 
To view, visit https://gerrit.osmocom.org/5096
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ib6c6331cc86004c4862067031e4fcb12a6975b63
Gerrit-PatchSet: 2
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: dexter <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <[email protected]>

Reply via email to