2
0

changelog.dox 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. #
  2. # Copyright (c) 2006-2009 Philip R. Zimmermann. All rights reserved.
  3. # Contact: http://philzimmermann.com
  4. # For licensing and other legal details, see the file zrtp_legal.c.
  5. #
  6. # Viktor Krykun <v.krikun at zfoneproject.com>
  7. /**
  8. * \file changelog.dox
  9. * \brief libzrtp ChangeLog
  10. */
  11. /*!
  12. \page changelog ChangeLog
  13. ****************************************************************************************************
  14. \section v120 libzrtp v1.20 build XXX (ZRTP RFC 6189, protocol 1.1)
  15. ****************************************************************************************************
  16. <b>This release is focused</b> on better ZRTP cache management.
  17. ***\subsection v120_changes API changes and Upgrade Instructions:
  18. *- Starting from v120 libzrtp uses global ZID for all outgoing connections. Local ZID should be
  19. specified in zrtp_global_t#zid and provided to zrtp_init(). App doesn't need to pass local ZID
  20. each time it creates new session via zrtp_session_init().
  21. *- Added zrtp_randstr2() which allow to generate random string before libzrtp being initialized.
  22. Can be handy to generate initial ZID. In normal circumstances, use zrtp_randstr() whenever possible.
  23. *- ZRTP cache API was completely redesigned. Look at zrtp_cache.h for more details.
  24. ***\subsection v120_feature New features and improvements.
  25. *- new better cache management API.
  26. ***\subsection v120_bugs Bug fixes
  27. *- fixed bug when ZRTP forces enrolled endpoints to re-render SAS when sashash is empty.
  28. *- other minor bug fixes and improvements
  29. *- fixed bug when zrtp_signaling_hash_set() silently not accepted imported zrtp-hash-value with
  30. "buffer too small" debug output.
  31. ****************************************************************************************************
  32. \section v091 DEVELOPERS BUILD Release Notes - libzrtp - Version 0.91 build XXX (ZRTP ID v16x, protocol 1.X)
  33. ****************************************************************************************************
  34. \note To build Libzrtp Enterprise with Elliptic Cure Diffie-Hellman support on Unix platform, use
  35. <c>"./configure --enable-enterprise".</c> By default libzrtp will be build with no ECDH support.
  36. <HR>
  37. ***\subsection v091_feature New features and improvements.
  38. ***\subsection v091_bugs Bug fixes
  39. *- [LZRTP-179] Fixed bug in build scripts when commercial version of libzrtp v0.90 was built
  40. with ZRTP_ENABLE_EC set to 1 by default.
  41. *- [LZRTP-181] Fixed zrtp_init() crash on Mac OSX 10.6
  42. *- [LZRTP-182] Fixed libzrtp build issue on Free-BSD
  43. ****************************************************************************************************
  44. \section v090 Release Notes - libzrtp - Version 0.90 build 577 (ZRTP ID v15x, protocol 1.1)
  45. ****************************************************************************************************
  46. <HR>
  47. ***\subsection v090_feature New features and improvements.
  48. *- [LZRTP-178] After the cache mismatch don't update the cache automatically, wait for the SAS verification. More details at this feature could be found in ZRTP ID section 4.6.1.1
  49. *- [LZRTP-151] Add secrets flags to \ref zrtp_info_t to allow user monitor secrets state
  50. *- [LZRTP-169] Check and optimize build process on Windows mingw and msys.
  51. ***\subsection v090_bugs Bug fixes
  52. *- [LZRTP-176] Added -fPIC flag to Linux and Mac builds to be able to link the library into 64bit applications.
  53. *- [LZRTP-175] Change SHA1 definition name to SRTP_SHA1 and move to private part of the API to eliminate ambiguity.
  54. *- [LZRTP-155] Session info should display current, updated value of the TTL, not the old one from previous negotiation.
  55. *- [LZRTP-177] Diffie-Hellman secret exponent for DH2K should be 256bits instead of 128.
  56. ****************************************************************************************************
  57. \section v082 Release Notes - libzrtp - Version 0.82 build 540 (ZRTP ID v15, protocol 1.1)
  58. ****************************************************************************************************
  59. <HR>
  60. Minor improvements. Zfone and libZRTP projects moved to public bug-tracking and wiki system.
  61. ***\subsection v082_feature New features and improvements.
  62. *- Improved libzrtp resistance to long delays during DH calculations on slow hardware.
  63. *- Structures Members alignment in Microsoft Visual Studio projects was changed from 1 byte to "Default".
  64. *- Implemented entropy collection from dropped RTP messages. Don't forget to store RNG seed when you done with libzrtp and upload it agan on next session.
  65. *- Implement default entropy collector for Win32 platform. RtlGenRandom() system call is used. Together with the entropy collection from dropped RTP message, it should guaranty good enough entropy.
  66. *- zrtp_def_cache_reset_since() was implemented as call-back, similar to the rest of ZRTP cache interfaces.
  67. *- Eliminated secure logs from the public build.
  68. *- Public bug-tracker and wiki launched (in addition to our internal tools)
  69. *- libzrtp API documentation is available at developers.zfoneproject.com
  70. ****************************************************************************************************
  71. \section v081 Release Notes - libzrtp - Version 0.81 build 514 (ZRTP ID v15, protocol 1.1)
  72. ****************************************************************************************************
  73. <HR>
  74. ***\subsection v081_bugs Bug
  75. *- [LZRTP-161] <b>Improvement in ZRTP state-machine</b>\n
  76. libzrtp state-machine didn't process incoming Hello message in StartInitiatingSecure state.
  77. In some situations this issue could cause libzrtp not responding on incoming HELLO messages and freeze the protocol.
  78. *- [LZRTP-166] <b>Fixed "Secure Since" logic.</b>\n
  79. Previous version of libzrtp computed secure since in a wrong way. libzrtp 0.81 remembers secure since date when new RS1 secret is generated and keep it unchanged while RS secrets are matched for all next calls.
  80. \n
  81. Use zrtp_def_cache_get_since() to get secure since for the particular pair of ZIDs.
  82. \warning Secure since function is available for the build-in implementation of ZRTP cache.
  83. ***\subsection v081_feature New Feature
  84. *- [LZRTP-157] <b>Implement algorithms negotiation according to ZRTP ID v15 section 4.1.2</b>\n
  85. This method is provided to allow the two parties to mutually and deterministically choose the same DH key size and algorithm before a Commit message is sent. No API changes required.
  86. *- [LZRTP-158] <b>Zfone Ping response implemented.</b>\n
  87. New Zfone3 software uses specific VoIp calls detection algorithms and uses ZRTP Ping to discover the call topology. Each ZRTP endpoint may response with PingAck to be compatible with Zfone3. libzrtp based products don't need to do anything more to support Zfone3. The library handles this automatically. Ping-Response doesn't affect res of ZRTP logic.
  88. \n
  89. \sa Check ZRTP RFC sec 5.16 for more information.
  90. ***\subsection v081_improv Improvement
  91. *- [LZRTP-164] <b>New ZRTP security event was added.</b>\n
  92. Libzrtp rises special event when after switching to secure state, the secrets are not expired, cached, but don't match. In other words: it is typical condition for the MitM attacks. Developer should use this event to notify user about the situation. Check zrtp_security_event_t#ZRTP_EVENT_MITM_WARNING for more detail information.
  93. *- [LZRTP-153] <b>New Project files to build libzrtp on Windows CE.</b>\n
  94. Check ./projects/win_ce directory to find appropriate Microsoft Visual Studio projects.
  95. ****************************************************************************************************
  96. \section v080 Release Notes - libzrtp - Version 0.80
  97. ****************************************************************************************************
  98. <HR>
  99. ***\subsection v080_bugs Bug
  100. - [LZRTP-97] <b>zrtp_hex2str and zrtp_st2hex don't work correct.</b>\n
  101. Fixed bug in str2hex() providing wrong converting. Previous versions of libzrtp were affect,
  102. but str2hex wasn't used in crypto logic and there was no security weakness.
  103. - [LZRTP-154] zrtp_register_with_trusted_mitm() on storing MiTM secret didn't set the "matches" flag for ZRTP_BIT_PBX. In result, zrtp_is_user_enrolled() returned false right after ZRTP_STATE_SECURE event. This issue affected ZRTP MitM endpoints only and for the very first enrollment stream with the endpoint. In all next calls with the endpoint zrtp_is_user_enrolled() worked correct.
  104. ***\subsection v080_improv Improvement
  105. *- [LZRTP-26] <b>Refactoring in the test-unite</b>\n
  106. Test-unite was redesigned: platform independent test-core and UI parts, specific for every
  107. target platform. test-core has cleaner API and internal structure. UI part allow to simplify
  108. application and separate business logic from UI routine.
  109. *- [LZRTP-46] <b>Change zrtp_time_t to literal integer type.</b>\n
  110. zrtp_tim_now() just returns current time in milliseconds instead of zrtp_time_t structure.
  111. *- [LZRTP-83] <b>Refactoring in libzrtp debug logging.</b>\n
  112. Made logs easy to read and analyze. Used indention.
  113. *- [LZRTP-84] <b>Refactoring in libzrtp terms.</b>\n
  114. Following changes in functions names and data structures were made:
  115. zrtp_stream_ctx_t - zrtp_stream_t\n
  116. zrtp_conn_ctx_t - zrtp_session_t\n
  117. zrtp_global_ctx_t - zrtp_global_t\n
  118. (in zrtp.h more explicitly reflect meaning of data types)\n
  119. \n
  120. ZSTR_GET_VALUE/P - ZRTP_GV/P\n
  121. SET_EMPTY_ZRTP_STRING - ZSTR_SET_EMPTY\n
  122. (in zrtp_string.h just cleaner and shorter names)\n
  123. \n
  124. zrtp_init() (Allocates memory)\n
  125. zrtp_init_session_ctx() - zrtp_session_init(). (Allocates memory)\n
  126. zrtp_add_entropy() - zrtp_entropy_add() \n
  127. zrtp_secure_stream() - zrtp_stream_secure()\n
  128. zrtp_clear_stream() - zrtp_stream_clear()\n
  129. zrtp_done_session_ctx - zrtp_session_down()\n
  130. zrtp_attach_stream - zrtp_stream_attach()\n
  131. zrtp_start_stream() - zrtp_stream_start()\n
  132. zrtp_stop_stream() - zrtp_stream_stop()\n
  133. zrtp_set_verified - zrtp_verified_set()\n
  134. zrtp_check_profile - zrtp_profile_check()\n
  135. (in zrtp.h used following approach: zrtp prefix; module name; action name)
  136. *- [LZRTP-85] <b>Hide private fields in zrtp_session_ctx and zrtp_stream_ctx.</b>\n
  137. zrtp_stream_t and zrtp_session_t structures were hidden inside libzrtp internal data-types. General libzrtp-based application shouldn't use these structures directly. zrtp_stream_info_t and zrtp_session_info_t structures should be used instead. To implement data encapsulation, libzrtp provides following functions:
  138. zrtp_stream_get(), zrtp_session_get()\n
  139. zrtp_stream_set_userdata(), zrtp_stream_get_userdata()\n
  140. zrtp_session_set_userdata(), zrtp_session_get_userdata()\n
  141. \n
  142. Advanced zrtp products may access zrtp_stream_t and zrtp_session_t directly but implementer can avoid this in most of the cases.
  143. *- [LZRTP-88] <b>Create a macro for UNALIGNED constructions on mobile platforms.</b>\n
  144. *- [LZRTP-89] <b>Code style for crypto components sources.</b>\n
  145. Public API not affected. Internal changes:
  146. - more compact code because fo using more general crypto functions
  147. - code stayle and comments
  148. - test-vectors were moved inside c-files fof appropriate crypto components.
  149. *- [LZRTP-99] <b>zrtp_session_init should allocate memory for zrtp_session_t.</b>\n
  150. *- [LZRTP-112] <b>Modify zrtp logger to be able write \\n and NON \\n logs.</b>\n
  151. ZRTP_LOG by default doesn't add \\n at the end of the log string. ZRTP_LOGC print plain log message without header and any formatting.
  152. *- [LZRTP-116] <b>Review synchronization objects in libzrtp.</b>\n
  153. - zrtp_global_t#comp_protector was removed. This mutex protected crypto components list. Since v0.80 libzrtp doesn't allow users to manage list of crypto components. libzrtp loads all available components at zrtp_init() and destroys them on zrtp_down(). Any modification with the list performed between these two call - don't need mutex.
  154. - zrtp_secrets_t#protector was removed, just unused in the code
  155. - zrtp_global_t#cache_protector was removed. Third-party ZRTP cache implementation should be thread-safe. It was made because it is simpler and more flexible solution.
  156. *- [LZRTP-120] <b>Add file with version number to identify builds.</b>\n
  157. zrtp_version.h have been added to the project.
  158. *- [LZRTP-128] <b>Eliminate Sound event from libzrtp.</b>\n
  159. zrtp_callback_misc_t::on_sound_event() was eliminated. This message was originally deigned for early versions of ZFone project. Event is supernumerary and duplicated other protocol and security events. Users, who need such event may perform the same actions using zrtp_callback_event_t events.
  160. *- [LZRTP-133] <b>Move ssrc parameter from stream_create() to stream_start()</b>\n
  161. SSRC parameter was moved from zrtp_stream_attach() to zrtp_stream_start(). Such improvement should allow users to create zrtp streams before media starts and ssrc is unknown. It may be useful for proxy products: ZFone, UM-Lab software and other.
  162. *- [LZRTP-143] <b>Speedup DH key exchange procedure.</b>\n
  163. DH crypto context data was moved directly to zrtp_stream_t and statically allocated. On creating protocol routine, libzrtp checks is DH context have been already initialized with the same type of key exchange scheme. If so - new DH value will not be recalculated.
  164. ***\subsection v080_feature New Feature
  165. - [LZRTP-14] <b>Add DH2K public key exchange scheme</b>\n
  166. DH2K public key exchange scheme was implemented and available for developers the same way as rest of crypto components.
  167. ***\subsection v080_tasks Task
  168. *- [LZRTP-24] <b>Implement Self-tests for DH and ECDH components.</b>\n
  169. Test cases for DH components were implemented and added to the libzrtp test-unite routine. DH checks algorithm correctness and performance as well. Besides test-vectors, it emulates DH exchange computing public and secret values for both endpoints.
  170. *- [LZRTP-122] <b>Print out all zrtp configuration settings and adjustments on initialization.</b>
  171. *- [LZRTP-123] <b>Create standard error codes and error text descriptions.</b>\n
  172. New functions zrtp_log_error2str() and zrtp_log_status2str() were added to convert status codes to text description. Some clean-up in zrtp_status_t was made, removed unused or ambiguous status codes.
  173. *- [LZRTP-132] <b>Replace HMAC with KDF function call.</b>\n
  174. Since ZRTP draft 12b defines ZRTP KDF to be in compliance with the recommendations in NIST SP 800-108. KDF function implemented as _zrtp_kdf() in zrtp_utils_proto.c. All KDF operations were replaced with from hmac to kdf function.
  175. */