aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test-helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/test-helpers.c')
-rw-r--r--src/tests/test-helpers.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/test-helpers.c b/src/tests/test-helpers.c
index 60f3d3b..b514d10 100644
--- a/src/tests/test-helpers.c
+++ b/src/tests/test-helpers.c
@@ -27,6 +27,7 @@
#include <osmocom/core/utils.h>
+int asn1_xer_print = 0;
void *talloc_asn1_ctx;
/* use odd number of digits */
@@ -43,13 +44,13 @@ void test_iu_helpers(void)
printf("pre-encoded: %s\n", osmo_hexdump_nospc(imsi_encoded,
sizeof(imsi_encoded)));
- rc = decode_iu_bcd(outstr, sizeof(outstr), imsi_encoded,
+ rc = ranap_bcd_decode(outstr, sizeof(outstr), imsi_encoded,
sizeof(imsi_encoded));
ASSERT(rc >= 0);
printf("decoded: %s\n", outstr);
ASSERT(!strcmp(outstr, imsi_decoded));
- rc = encode_iu_imsi(outbuf, sizeof(outbuf), imsi_decoded);
+ rc = ranap_imsi_encode(outbuf, sizeof(outbuf), imsi_decoded);
ASSERT(rc >= 0);
printf("re-encoded: %s\n", osmo_hexdump_nospc(outbuf, rc));
ASSERT(!memcmp(outbuf, imsi_encoded, sizeof(imsi_encoded)));