diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-04-25 19:01:26 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-04-29 13:10:37 +0200 |
commit | 50f1c0af567423b6ade9a84aaa5197ecf6237819 (patch) | |
tree | 7f3ae0ca3ff35d790c29eac8b83f543feae0a59b /openbsc/src/gprs/oap.c | |
parent | eff215a8bb766e62a02bcc0f4334470a53475001 (diff) |
move utils.h functions to libosmocore
This needs the corresponding commit in libosmocore which imports
the related functions
Diffstat (limited to 'openbsc/src/gprs/oap.c')
-rw-r--r-- | openbsc/src/gprs/oap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/gprs/oap.c b/openbsc/src/gprs/oap.c index 1426702dd..f5d7a9570 100644 --- a/openbsc/src/gprs/oap.c +++ b/openbsc/src/gprs/oap.c @@ -20,10 +20,10 @@ * */ +#include <osmocom/core/utils.h> #include <osmocom/crypt/auth.h> #include <openbsc/oap.h> -#include <openbsc/utils.h> #include <openbsc/debug.h> #include <openbsc/oap_messages.h> @@ -103,7 +103,7 @@ static int oap_evaluate_challenge(const struct oap_state *state, return -3; } - if (constant_time_cmp(vec.autn, rx_autn, sizeof(vec.autn)) != 0) { + if (osmo_constant_time_cmp(vec.autn, rx_autn, sizeof(vec.autn)) != 0) { LOGP(DGPRS, LOGL_ERROR, "OAP: AUTN mismatch!\n"); LOGP(DGPRS, LOGL_INFO, "OAP: AUTN from server: %s\n", osmo_hexdump_nospc(rx_autn, sizeof(vec.autn))); |