diff options
author | Max <msuraev@sysmocom.de> | 2017-12-21 14:50:44 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2017-12-27 11:11:14 +0000 |
commit | 753c15de2f00e24f76ac9b01a20e1e2ff0f86ce2 (patch) | |
tree | 1e40251af3eba274251606a02523da21aaa5853d /tests/msc_vlr/msc_vlr_tests.c | |
parent | 629c479eddfc8995117eaee56ef330ae705bba5f (diff) |
Migrate from OpenSSL to osmo_get_rand_id()
This avoids potential licensing incompatibility and makes integration of
Debian packaging patches easier.
Related: OS#1694
Change-Id: I71cd631704a4dc155c6c752fee2a42cd6e2fa336
Diffstat (limited to 'tests/msc_vlr/msc_vlr_tests.c')
-rw-r--r-- | tests/msc_vlr/msc_vlr_tests.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/msc_vlr/msc_vlr_tests.c b/tests/msc_vlr/msc_vlr_tests.c index 9cc61b156..ac850b303 100644 --- a/tests/msc_vlr/msc_vlr_tests.c +++ b/tests/msc_vlr/msc_vlr_tests.c @@ -257,11 +257,11 @@ void send_sms(struct vlr_subscr *receiver, } unsigned char next_rand_byte = 0; -/* override, requires '-Wl,--wrap=RAND_bytes' */ -int __real_RAND_bytes(unsigned char *buf, int num); -int __wrap_RAND_bytes(unsigned char *buf, int num) +/* override, requires '-Wl,--wrap=osmo_get_rand_id' */ +int __real_osmo_get_rand_id(uint8_t *buf, size_t num); +int __wrap_osmo_get_rand_id(uint8_t *buf, size_t num) { - int i; + size_t i; for (i = 0; i < num; i++) buf[i] = next_rand_byte++; return 1; |