提交 9cd14090 authored 作者: Viktor Krikun's avatar Viktor Krikun 提交者: Travis Cross

Add more unit-tests and bug-fixes for random-access ZRTP cache

(refs #24)
上级 e8a376a8
......@@ -136,7 +136,7 @@ void zrtp_def_cache_foreach( zrtp_global_t *global,
* May be used in server solutions for periodically flushing the cache to prevent data loss.
*
* @return
* - zrtp_status_ok - if operation complited successfully;
* - zrtp_status_ok - if operation completed successfully;
* - zrtp_status_wrong_state - if a call is performed from a routine which
* doesn't use the default cache.
*/
......
差异被折叠。
差异被折叠。
......@@ -424,13 +424,13 @@ static zrtp_status_t init_test_session( zrtp_test_session_t *session,
unsigned nstreams)
{
unsigned i = 0;
zrtp_zid_t zid;
g_zrtp_cfg zid;
zrtp_status_t s = zrtp_status_fail;
session->streams_count = nstreams;
/* Allocate ZRTP session */
zrtp_randstr(zrtp_global, (unsigned char*)&zid, sizeof(zrtp_zid_t));
zrtp_randstr(zrtp_global, (unsigned char*)&zid, sizeof(g_zrtp_cfg));
ZRTP_LOG(3, (_ZTU_,"INITIALIZE NEW SESSION ctx=%p:\n", session));
ZRTP_LOG(3, (_ZTU_,"---------------------------------------------------\n"));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论