diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-10-07 04:44:08 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2017-10-09 16:30:45 +0200 |
commit | 1a02e36c4c940d7b326fa58a9f8080f79b558bba (patch) | |
tree | 706aa29bb373aa17734b3d4ed367aae6c52f5718 /src/gsm | |
parent | 26e30b1309517183db0ae56620195707f748ced4 (diff) |
auth: add OSMO_MILENAGE_IND_BITLEN_MAX
Will be used by OsmoHLR to validate VTY and CTRL input.
Change-Id: Ic39f3404d1a49ffd06070aa9897b36f219eacf4d
Diffstat (limited to 'src/gsm')
-rw-r--r-- | src/gsm/auth_milenage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsm/auth_milenage.c b/src/gsm/auth_milenage.c index e1a1dfba..2ddf712b 100644 --- a/src/gsm/auth_milenage.c +++ b/src/gsm/auth_milenage.c @@ -112,7 +112,7 @@ static int milenage_gen_vec(struct osmo_auth_vector *vec, * { .ind_bitlen = 0, .ind = 0, .sqn = (desired_sqn - 1) } */ - if (aud->u.umts.ind_bitlen > 28) + if (aud->u.umts.ind_bitlen > OSMO_MILENAGE_IND_BITLEN_MAX) return -2; seq_1 = 1LL << aud->u.umts.ind_bitlen; |