mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-17 06:48:33 +00:00
[Build-System] Update libsrtp to 2.4.0
This commit is contained in:
1 parent
641fcd2b26
commit
bddff9a2f1
95 files changed
+5998
-3870
No files matched your search
@@ -52,6 +52,8 @@
|
||||
#include "rdb.h"
|
||||
#include "ut_sim.h"
|
||||
|
||||
#include "cipher_priv.h"
|
||||
|
||||
/*
|
||||
* num_trials defines the number of trials that are used in the
|
||||
* validation functions below
|
||||
@@ -80,12 +82,6 @@ int main(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void print_rdb(srtp_rdb_t *rdb)
|
||||
{
|
||||
printf("rdb: {%u, %s}\n", rdb->window_start,
|
||||
v128_bit_string(&rdb->bitmask));
|
||||
}
|
||||
|
||||
srtp_err_status_t rdb_check_add(srtp_rdb_t *rdb, uint32_t idx)
|
||||
{
|
||||
if (srtp_rdb_check(rdb, idx) != srtp_err_status_ok) {
|
||||
@@ -189,7 +185,7 @@ srtp_err_status_t test_rdb_db()
|
||||
|
||||
/* test insertion with large gaps */
|
||||
for (idx = 0, ircvd = 0; idx < num_trials;
|
||||
idx++, ircvd += (1 << (rand() % 10))) {
|
||||
idx++, ircvd += (1 << (srtp_cipher_rand_u32_for_tests() % 10))) {
|
||||
err = rdb_check_add(&rdb, ircvd);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
Reference in new issue
Block a user