Commit Graph

24036 Commits

Author SHA1 Message Date
Anthony Minessale f510fa8c3a FS-5089 --resolve 2013-02-11 14:38:11 -06:00
Eliot Gable 10b8145497 Add cJSON_Duplicate() function from upstream source. 2013-02-11 18:53:37 +00:00
Travis Cross 89980756c4 Merge libzrtp fixes and improvements
This brings FS's libzrtp up to date with upstream with the exception
of the changes to the cache API, the new SQLite cache backend, and
SDES support.

In particular, this merge brings in support for elliptic curve (ECC)
algorithms.
2013-02-11 16:44:19 +00:00
Travis Cross e5a1b54e9e Adjust build for libzrtp changes
libzrtp now builds from its root directory rather from projects/gnu.
2013-02-11 16:42:10 +00:00
Travis Cross b03636f0cf Always build with ECC support 2013-02-11 16:42:10 +00:00
Philip Zimmermann 18273e5f3b Relicense ECC code under APGLv3 with exception for FreeSWITCH
Thanks to Travis Cross for pushing for this to happen.

Signed-off-by: Philip Zimmermann <prz@mit.edu>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:42:09 +00:00
Travis Cross 8843819ce5 Add back the elliptic curve (ECC) files
Signed-off-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Philip Zimmermann <prz@mit.edu>
2013-02-11 16:42:08 +00:00
Travis Cross fafd8f337c Optimize -O2 2013-02-11 16:42:08 +00:00
Travis Cross b3cfc73e13 Include debugging symbols 2013-02-11 16:42:07 +00:00
Travis Cross 25ca19218b Target C99 2013-02-11 16:42:07 +00:00
Travis Cross dcf7fff0f4 Set default CFLAGS to catch more issues 2013-02-11 16:42:06 +00:00
Werner Dittmann 85a35d67b1 Prepend to LIBS rather than replacing
Modified-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:42:06 +00:00
Travis Cross e09a6a3579 Make libzrtp build non-recursive
This eliminates the recursive makefiles for libzrtp (we still
recurse to build bnlib).  Object files, library files, and
executables (including tests) are now produced in the root
directory.
2013-02-11 16:42:05 +00:00
Travis Cross 49346a57f4 Reduce indirection in makefiles 2013-02-11 16:42:04 +00:00
Viktor Krykun 63cd37a2c4 Remove beta label
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:42:04 +00:00
Viktor Krykun 91c855a2ed Remove outdated credit
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:42:03 +00:00
Viktor Krykun 02b3b8060a Refactor test cases
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:42:02 +00:00
Viktor Krykun 521e673b5f Cleanup whitespace
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:42:02 +00:00
Viktor Krykun 7503d8aafa Fix bug with libzrtp zrtp_signaling_hash_set()
The function would silently not accept the imported zrtp-hash-value
with "buffer too small" in the debug output.

Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:42:01 +00:00
Viktor Krykun f311f81b8d Cleanup whitespace and comments
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:42:01 +00:00
Viktor Krykun ab4543d94f Improve some autoconf minutia
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:42:00 +00:00
Viktor Krykun 1b642cae39 Build ZRTP docs with automake
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:42:00 +00:00
Viktor Krykun 46ecb6f90b Update libzrtp version
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:59 +00:00
Viktor Krykun 5af0af90ed Add zrtp_randstr2
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:58 +00:00
Viktor Krykun 4ba74ad38a Cleanup the go secure test
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:58 +00:00
Viktor Krykun 5f0b30cd7c Fix typo in comment
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:57 +00:00
Viktor Krykun c78a4dc221 Remove superfluous include
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:57 +00:00
Viktor Krykun 2cfadc6d8e Remove unused variable
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:56 +00:00
Viktor Krykun 5f19e3f1f7 Add test for zrtp_register_with_trusted_mitm
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:56 +00:00
Viktor Krykun b544076505 Rename changelog page
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:55 +00:00
Travis Cross b7fd94a53e Fix build of cmockery
cmockery.h was trying to redefine uintptr_t, but this is already
defined in stdint.h.
2013-02-11 16:41:55 +00:00
Viktor Krykun d938a6da6d Add test for some minor bugs
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:54 +00:00
Viktor Krykun 95519659b9 Clean up in libzrtp tests
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:53 +00:00
Viktor Krykun cc134b8cbe Update pointer to changelog
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:53 +00:00
Viktor Krykun e5caa9e196 Bump libzrp version
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:52 +00:00
Viktor Krykun be9e71a5e2 Log number of dirty cache entries flushed
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:52 +00:00
Viktor Krykun e4daefbadc Flush zrtp cache automatically
Add option to flush zrtp cache to persistent storage automatically
immediately after the cache is modified. See
zrtp_config_t#cache_auto_store.

Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:51 +00:00
Viktor Krykun 551938b89b Add preventative breaks to case statement
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:50 +00:00
Viktor Krykun 272b36d04b Improve whitespace and formatting
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:50 +00:00
Viktor Krykun fc98238dd6 Condense formatting of struct
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:49 +00:00
Viktor Krykun a7d0c274ab Fix spelling
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:49 +00:00
Viktor Krykun 1b15973f02 Bump libzrtp version
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:48 +00:00
Viktor Krykun 656669d241 Fix bug with sasrelay
libzrtp was forcing a new SAS rendering even when SasRelay
sashash was zero.

Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:48 +00:00
Viktor Krykun 2bfb3e7408 Update libzrtp version
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:47 +00:00
Viktor Krykun 326370ba48 Pass through void* arg in zrtp_thread_create
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:47 +00:00
Viktor Krykun 2664e0ee70 Add high-level test engine
Remove some old tests and implement a few test-cases to emulate zrtp
enrollment and sasrelay logic

Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:46 +00:00
Travis Cross a7286bff1a Improve .gitignore 2013-02-11 16:41:45 +00:00
Viktor Krykun 73fabdfea5 Refactor libzrtp unit tests
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:45 +00:00
Viktor Krykun 7bca61ff0c Remove empty README file
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:44 +00:00
Viktor Krykun 5176df4615 Remove old Windows CE tests
Modified-by: Travis Cross <tc@traviscross.com>
Signed-off-by: Travis Cross <tc@traviscross.com>
2013-02-11 16:41:44 +00:00