summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-08-26 21:40:11 +0200
committerHarald Welte <laforge@gnumonks.org>2017-08-29 12:46:45 +0000
commit4315e01f5a8658399fedfb68d0647624666a86e0 (patch)
tree70b3e49b66ec7f06d388a2ec774957ae08779c14 /utils
parentd157bbb46f5fcf305b0e4710030ecd795432d444 (diff)
osmo-auc-gen: umts: use default of ind_bitlen = 5 instead of 0
Most USIM out there seem to use IND-length = 5 bits, so do sysmousim-sjs1. Currently from initialization we are using an IND length of zero in osmo-auc-gen, which produces confusing SQN results after AUTS: Where want SQN to be incremented to the next IND array, usually +32, an IND-len of 0 makes for only +1. As result, the osmo-auc-gen_test.sh produces SQN 32 instead of 24 after receiving SQN.MS = 23 from AUTS: adjust test expectations. Related: OS#2465 Change-Id: I9fcc11fa2b5816302dcc6b72249b1ee40d5a61f5
Diffstat (limited to 'utils')
-rw-r--r--utils/osmo-auc-gen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/osmo-auc-gen.c b/utils/osmo-auc-gen.c
index 87960aed..4e07fa74 100644
--- a/utils/osmo-auc-gen.c
+++ b/utils/osmo-auc-gen.c
@@ -138,6 +138,7 @@ int main(int argc, char **argv)
break;
case '3':
test_aud.type = OSMO_AUTH_TYPE_UMTS;
+ test_aud.u.umts.ind_bitlen = 5;
break;
case 'a':
rc = osmo_auth_alg_parse(optarg);