diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2016-03-15 03:57:39 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2016-03-15 03:57:39 +0000 |
commit | 26d978a556ae9099f6610ace9834991636e4a71b (patch) | |
tree | d8789c5afbe3920f3f7ef46ad73aa34f48173591 /third_party/srtp/test/roc_driver.c | |
parent | 8b9358503884ec1901d807ff56c2fc588be896a2 (diff) |
Close #1847: Upgraded libsrtp version to 1.5.4 and added support for AES-CM-256 crypto.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5261 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'third_party/srtp/test/roc_driver.c')
-rw-r--r-- | third_party/srtp/test/roc_driver.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/third_party/srtp/test/roc_driver.c b/third_party/srtp/test/roc_driver.c index 396c9a79..6fdc6f19 100644 --- a/third_party/srtp/test/roc_driver.c +++ b/third_party/srtp/test/roc_driver.c @@ -44,6 +44,10 @@ */ +#ifdef HAVE_CONFIG_H + #include <config.h> +#endif + #include <stdio.h> /* @@ -138,6 +142,12 @@ roc_test(int num_trials) { ref, local, est, ircvd, delta); #endif + if (local + delta != est) { + printf(" *bad delta*: local %llu + delta %d != est %llu\n", + (unsigned long long)local, delta, (unsigned long long)est); + return err_status_algo_fail; + } + /* now update local xtd_seq_num_t as necessary */ if (delta > 0) index_advance(&local, delta); |