diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-12-14 05:16:10 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2017-12-14 21:39:49 +0100 |
commit | 7abe7ae2d003627df48bbe295cd51c417532a669 (patch) | |
tree | 6ea1d46cf45668ae012a608ff00d2853d2dea18a /tests | |
parent | 8c6301cf0d6405d13cdb426bfea2ddb13ca64b70 (diff) |
fix bssmap_handle_cipher_mode()'s encryption decision
Properly match up any A5/N with the MSC's list of permitted algos.
Properly set the reject cause in case of mismatching algorithm choices.
Actually allow choosing A5/1 thru 3 as configured on the VTY, by passing
a5_encryption through to gsm0808_cipher_mode() (instead of a hardcoded 1).
Properly handle failure rc of gsm0808_cipher_mode() by sending a reject
message.
Cosmetically clarify which GSM0808_IE_ENCRYPTION_INFORMATION bits mean what by
means of local variables; add some comments on expected encryption formats; add
comment that the BSC should be able to have more than one a5_encryption.
Related: OS#2745 OS#2755
Change-Id: Ide8a615905555e35be4584b458d4d40345686175
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions