diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-03-15 16:05:42 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-03-15 16:05:42 +0100 |
commit | 6dd0fc685b7149f67a5fe17a5bce55c446aa563c (patch) | |
tree | 6ed3b6b84b1f0a09345b6d051ffb66dca52fc748 /openbsc/src/libcommon/oap_client.c | |
parent | c103c64e7da55cbbf6e1d299ad030ef28424a9a1 (diff) |
oap tests: fix after SQN scheme changes from libosmocore
In change-id Iadf43f21e0605e9e85f7e8026c40985f7ceff1a3, libosmocore changes
from incrementing SQN after tuple generation to incrementing SQN before tuple
generation. Thus we now need to pass desired_sqn - 1 to get the same tuples.
Change-Id: Ifeda71e713bb60dcd31ac651f461b714cfa39b5c
Related: OS#1968 OS#1969
Diffstat (limited to 'openbsc/src/libcommon/oap_client.c')
-rw-r--r-- | openbsc/src/libcommon/oap_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libcommon/oap_client.c b/openbsc/src/libcommon/oap_client.c index 54b71e442..5128ac119 100644 --- a/openbsc/src/libcommon/oap_client.c +++ b/openbsc/src/libcommon/oap_client.c @@ -99,7 +99,7 @@ static int oap_evaluate_challenge(const struct oap_client_state *state, memcpy(auth.u.umts.k, state->secret_k, sizeof(auth.u.umts.k)); memcpy(auth.u.umts.opc, state->secret_opc, sizeof(auth.u.umts.opc)); memset(auth.u.umts.amf, '\0', sizeof(auth.u.umts.amf)); - auth.u.umts.sqn = 42; /* TODO use incrementing sequence nr */ + auth.u.umts.sqn = 41; /* TODO use incrementing sequence nr */ memset(&vec, 0, sizeof(vec)); osmo_auth_gen_vec(&vec, &auth, rx_random); |