Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
5ae7ebc1
提交
5ae7ebc1
authored
2月 22, 2010
作者:
Viktor Krikun
提交者:
Travis Cross
3月 31, 2012
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix mistaken NO_ZRTP_QUICK events after Hello received
(closes #20)
上级
5a61e580
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
10 行增加
和
5 行删除
+10
-5
zrtp_config_user.h
include/zrtp_config_user.h
+1
-1
zrtp_types.h
include/zrtp_types.h
+3
-0
zrtp_version.h
include/zrtp_version.h
+3
-3
zrtp.c
src/zrtp.c
+1
-0
zrtp_engine.c
src/zrtp_engine.c
+2
-1
没有找到文件。
include/zrtp_config_user.h
浏览文件 @
5ae7ebc1
...
...
@@ -129,7 +129,7 @@
* over CSD channels. This option affect enterprise version of the library only.
*/
#ifndef ZRTP_BUILD_FOR_CSD
#define ZRTP_BUILD_FOR_CSD
1
#define ZRTP_BUILD_FOR_CSD
0
#endif
/**
...
...
include/zrtp_types.h
浏览文件 @
5ae7ebc1
...
...
@@ -698,6 +698,9 @@ struct zrtp_stream_t
*/
zrtp_state_t
prev_state
;
/** 1 means that peer Hello have been raceived within current ZRTP session */
uint8_t
is_hello_received
;
/*!< Reflects current state of ZRTP protocol */
zrtp_state_t
state
;
...
...
include/zrtp_version.h
浏览文件 @
5ae7ebc1
...
...
@@ -12,8 +12,8 @@
#define LIBZRTP_VERSION_MAJOR 1
#define LIBZRTP_VERSION_MINOR 0
#define LIBZRTP_VERSION_BUILD 59
1
#define LIBZRTP_VERSION_STR "v1.
00 590
"
#define LIBZRTP_VERSION_MINOR
1
0
#define LIBZRTP_VERSION_BUILD 59
3
#define LIBZRTP_VERSION_STR "v1.
10 593
"
#endif
/*__ZRTP_VERSION_H__*/
src/zrtp.c
浏览文件 @
5ae7ebc1
...
...
@@ -428,6 +428,7 @@ zrtp_status_t zrtp_stream_attach(zrtp_session_t *session, zrtp_stream_t** stream
new_stream
->
session
=
session
;
new_stream
->
zrtp
=
session
->
zrtp
;
new_stream
->
mitm_mode
=
ZRTP_MITM_MODE_UNKN
;
new_stream
->
is_hello_received
=
0
;
ZSTR_SET_EMPTY
(
new_stream
->
cc
.
hmackey
);
ZSTR_SET_EMPTY
(
new_stream
->
cc
.
peer_hmackey
);
...
...
src/zrtp_engine.c
浏览文件 @
5ae7ebc1
...
...
@@ -1226,6 +1226,7 @@ zrtp_status_t _zrtp_machine_process_hello(zrtp_stream_t* stream, zrtp_rtp_info_t
/* Copy packet for future hashing */
zrtp_memcpy
(
&
stream
->
messages
.
peer_hello
,
peer_hello
,
zrtp_ntoh16
(
peer_hello
->
hdr
.
length
)
*
4
);
stream
->
is_hello_received
=
1
;
/*
* Choose PK exchange scheme and PK mode.
...
...
@@ -1250,7 +1251,7 @@ zrtp_status_t _zrtp_machine_process_hello(zrtp_stream_t* stream, zrtp_rtp_info_t
/*---------------------------------------------------------------------------*/
static
void
_send_and_resend_hello
(
zrtp_stream_t
*
stream
,
zrtp_retry_task_t
*
task
)
{
if
(
task
->
_retrys
==
ZRTP_NO_ZRTP_FAST_COUNT
)
{
if
(
(
task
->
_retrys
==
ZRTP_NO_ZRTP_FAST_COUNT
)
&&
!
stream
->
is_hello_received
)
{
ZRTP_LOG
(
2
,(
_ZTU_
,
"WARNING! HELLO have been resent %d times without a response."
" Raising ZRTP_EVENT_NO_ZRTP_QUICK event. ID=%u
\n
"
,
task
->
_retrys
,
stream
->
id
));
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论