diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-12-23 17:30:18 +0100 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2018-02-19 11:43:07 +0100 |
commit | 51e4bf329844b8daa20239f77bb90cf04ce6dbb9 (patch) | |
tree | 714824807233bc013977d51adf5b266e72c616be /include | |
parent | 86a8031e9cf0b8660d4c34079d0aec1505b4823f (diff) |
Permit set of multiple different A5 ciphers
So far, the administrator had to pick one particular cipher which
would then be used throughout all subscribers/phones. This is a bit
impractical, as e.g. not all phones support A5/3. Extend the VTY
command syntax in a backwards-compatible way to permit for multiple
ciphers.
The bit-mask of permitted ciphers from the MSC (sent in ASSIGNMENT
COMMAND) is intersected with the vty-configured mask a the BSC.
Finally, the best (highest) possible cipher is chosen.
Change-Id: I1d1c8131855bcab2392b4f27f6216bdb2fae10e0
Closes: OS#2461
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/bsc/gsm_data.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/osmocom/bsc/gsm_data.h b/include/osmocom/bsc/gsm_data.h index 04dc69673..77fda0045 100644 --- a/include/osmocom/bsc/gsm_data.h +++ b/include/osmocom/bsc/gsm_data.h @@ -1191,7 +1191,8 @@ struct gsm_network { /* global parameters */ uint16_t country_code; uint16_t network_code; - int a5_encryption; + /* bit-mask of permitted encryption algorithms. LSB=A5/0, MSB=A5/7 */ + uint8_t a5_encryption_mask; int neci; struct handover_cfg *ho; |